
/* contact.css - Enhanced mobile-responsive styles for the Contact page */

/* Enhanced Brand Styling */
.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #06b6d4;
  font-weight: 600;
  margin-left: -0.5rem;
  transform: rotate(-3deg);
  opacity: 0.95;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.08) rotate(3deg);
}

/* Page Header */
.page-header {
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ocean-gradient);
  opacity: 0.1;
  z-index: 0;
}

.section-header {
  position: relative;
  z-index: 1;
}

.section-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form-section {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-light);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form button {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* Contact Info */
.contact-info {
  padding: var(--spacing-3xl) 0;
  text-align: center;
  background: var(--bg);
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-lg);
}

.contact-info p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-md);
}

.contact-info i {
  color: var(--blue-accent);
  margin-right: var(--spacing-xs);
}

/* Modal for Confirmation */
#modalRoot {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  overflow: auto;
}

#modalRoot[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--z-modal-backdrop);
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  z-index: var(--z-modal);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-normal);
}

.modal-close:hover {
  color: var(--blue-accent);
  transform: scale(1.1);
}

.modal-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--spacing-md);
}

.modal-body p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .brand-text {
    font-size: 1.3rem;
  }
  .brand-subtitle {
    font-size: 0.85rem;
  }
  .page-header {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }

  .contact-form-section, .contact-info {
    padding: var(--spacing-2xl) 0;
  }

  .contact-form {
    padding: 0 var(--spacing-sm);
  }

  .modal-content {
    max-width: 95%;
  }
}

@media (max-width: 576px) {
  .brand-text {
    font-size: 1.2rem;
  }
  .brand-subtitle {
    font-size: 0.8rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .contact-info h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  }

  .contact-info p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-content {
    transition: none;
  }
}
