/* ============================================
   CONTACT PAGE STYLES (Optimized)
   CoreClasses - Performance & A11y Ready
   ============================================ */

/* ===== CONTACT HERO ===== */
.contact-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Methods Sidebar */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px; /* Sticky effect on desktop */
}

.contact-method-card {
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform; /* Performance Hint */
}

.contact-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* WhatsApp Card */
.whatsapp-card {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
}
.whatsapp-card .method-icon { background-color: #25d366; }

/* Email Card */
.email-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}
.email-card .method-icon { background-color: #3b82f6; }

/* Hours Card */
.hours-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}
.hours-card .method-icon { background-color: #f59e0b; }

/* Shy Card */
.shy-card {
  background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
  border: 1px solid #fda4af;
  text-align: center;
}

.method-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.method-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.method-description {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.method-link {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.method-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Hours List */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.hours-item strong { color: var(--color-dark); }

/* Shy Card */
.shy-emoji { font-size: 3rem; margin-bottom: 0.5rem; }

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background-color: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.required { color: #ef4444; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-dark);
  background-color: white;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(31, 60, 136, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* Submit Button */
.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: none; /* Hidden by default */
}

.form-message.success { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }

.form-privacy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-gray-500);
  text-align: center;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.faq-header { text-align: center; margin-bottom: 3rem; }

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--color-primary); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
  color: var(--color-gray-400);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Sufficient height */
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--color-gray-600);
  line-height: 1.6;
  margin: 0;
}

.faq-cta { text-align: center; margin-top: 3rem; }

.btn-primary-faq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #25d366;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-primary-faq:hover { transform: translateY(-2px); background-color: #128c7e; }

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 3rem;
  }
  
  .contact-methods {
    position: static; /* Remove sticky on mobile */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .shy-card { grid-column: 1 / -1; } /* Full width */
}

@media (max-width: 768px) {
  .page-title { font-size: 2.5rem; }
  
  .contact-methods { grid-template-columns: 1fr; } /* 1 column */
  
  .form-row {
    grid-template-columns: 1fr; /* Stack form fields */
    gap: 0;
  }
  
  .contact-form-wrapper { padding: 1.5rem; }
  
  .faq-title { font-size: 2rem; }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}