/* PF-CONTACT-03 — Scoped Styles for PCOS Ferticure Contact Page */
.contact-page {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #2a2228);
  background: var(--background, #fff);
  box-sizing: border-box;
  overflow-x: clip;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.contact-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Screen reader / accessible H1 to prevent visual duplication with embedded banner text */
.contact-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Typography */
.contact-page h2 {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--plum, #431932);
  margin: 0 0 12px;
}

.contact-page h3 {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--plum, #431932);
  margin: 0 0 10px;
}

.contact-page p {
  margin: 0 0 16px;
}

.contact-page p:last-child {
  margin-bottom: 0;
}

.contact-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pink, #b84d72);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.contact-page a:not(.button) {
  color: var(--pink-dark, #963558);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.contact-page a:not(.button):hover {
  color: var(--plum, #431932);
}

.contact-page :is(a, button, summary):focus-visible {
  outline: 3px solid var(--plum, #431932);
  outline-offset: 4px;
}

/* Breadcrumb */
.contact-breadcrumb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #6f5f69);
  margin: 20px 0 16px;
}

.contact-breadcrumb a {
  text-decoration: none !important;
  color: var(--muted, #6f5f69) !important;
}

.contact-breadcrumb a:hover {
  color: var(--plum, #431932) !important;
  text-decoration: underline !important;
}

/* Hero Section & Banner */
.contact-hero {
  padding: 10px 0 32px;
  background: linear-gradient(180deg, var(--ivory, #fdfaf6) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line, #e8d7e0);
}

.contact-banner-wrap {
  width: 100%;
  margin: 0 0 20px;
}

.contact-hero-figure {
  margin: 0;
  width: 100%;
}

.contact-banner-img {
  width: 100%;
  max-width: 1160px;
  height: auto;
  aspect-ratio: 1774 / 887;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line, #e8d7e0);
  box-shadow: 0 10px 30px rgba(67, 25, 50, 0.08);
  display: block;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Buttons & Icons */
.contact-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--pink, #b84d72);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  border: 1px solid var(--pink, #b84d72);
  transition: all 0.15s ease;
  cursor: pointer;
}

.contact-page .button:hover {
  background: var(--pink-dark, #963558);
  border-color: var(--pink-dark, #963558);
}

.contact-page .button-outline {
  background: #ffffff;
  color: var(--pink-dark, #963558) !important;
  border-color: var(--pink, #b84d72);
}

.contact-page .button-outline:hover {
  background: var(--blush, #f7eaef);
  color: var(--plum, #431932) !important;
}

.contact-wa-accent {
  border-color: #25D366 !important;
  color: #128C7E !important;
}

.contact-wa-accent:hover {
  background: #f0faf4 !important;
  color: #075E54 !important;
}

.contact-btn-icon,
.contact-inline-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main Grid: Visit & Call Cards */
.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  margin: 40px 0 32px;
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(67, 25, 50, 0.04);
  display: flex;
  flex-direction: column;
}

.contact-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink, #b84d72);
  flex-shrink: 0;
}

.contact-badge-icon svg {
  width: 24px;
  height: 24px;
}

.contact-address-box {
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.clinic-facility-name {
  font-size: 1.15rem;
  color: var(--plum, #431932);
  margin-bottom: 6px;
}

.clinic-address-lines {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink, #2a2228);
  margin: 0;
}

.contact-visit-note {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-card-actions {
  margin-bottom: 24px;
}

/* Map Display Box */
.contact-map-wrap {
  margin-top: auto;
  border-top: 1px solid var(--line, #e8d7e0);
  padding-top: 20px;
}

.contact-map-header h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-map-header p {
  font-size: 14px;
  color: var(--muted, #6f5f69);
  margin-bottom: 14px;
}

.contact-map-frame-box {
  width: 100%;
}

.contact-map-direct-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fdf8fb 0%, #f7eaef 100%);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none !important;
  color: var(--ink, #2a2228) !important;
  transition: all 0.2s ease;
}

.contact-map-direct-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(67, 25, 50, 0.08);
  border-color: var(--pink, #b84d72);
}

.contact-map-pin-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink, #b84d72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-map-pin-pulse svg {
  width: 22px;
  height: 22px;
}

.contact-map-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-map-info strong {
  font-size: 16px;
  color: var(--plum, #431932);
}

.contact-map-info span {
  font-size: 14px;
  color: var(--muted, #6f5f69);
}

.contact-map-click-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-dark, #963558) !important;
  margin-top: 4px;
}

/* Call & WhatsApp Channels */
.contact-card-intro {
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-channel-item {
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-phone-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pink-dark, #963558);
  margin: 4px 0 6px;
}

.contact-phone-number a {
  color: var(--pink-dark, #963558) !important;
  text-decoration: none !important;
}

.contact-phone-number a:hover {
  text-decoration: underline !important;
}

.contact-channel-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #6f5f69);
  margin: 0;
}

.contact-btn-channel {
  width: 100%;
}

.contact-disclaimer-note {
  font-size: 13px;
  color: var(--muted, #6f5f69);
  margin-top: auto;
}

/* Section Containers */
.contact-section {
  padding: 36px 0;
  border-top: 1px solid var(--line, #e8d7e0);
}

.section-heading-wrap {
  margin-bottom: 24px;
}

/* Consultation Options Grid */
.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.contact-option-card {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(67, 25, 50, 0.03);
}

.contact-option-card.highlight {
  background: var(--ivory, #fdfaf6);
  border: 2px solid var(--pink, #b84d72);
  box-shadow: 0 4px 16px rgba(184, 77, 114, 0.08);
}

.contact-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink, #b84d72);
  margin-bottom: 14px;
}

.contact-option-card.highlight .contact-option-icon {
  background: #ffffff;
}

.contact-option-icon svg {
  width: 20px;
  height: 20px;
}

.contact-option-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-option-actions {
  margin-top: auto;
}

.contact-option-actions .button {
  width: 100%;
  font-size: 15px;
}

/* Doctor Trust Card */
.contact-doctor-trust {
  padding: 36px 0;
  border-top: 1px solid var(--line, #e8d7e0);
}

.contact-doctor-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 28px 32px;
}

.contact-doctor-figure {
  margin: 0;
  text-align: center;
}

.contact-doctor-img {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(67, 25, 50, 0.1);
  display: inline-block;
}

.contact-doctor-copy {
  min-width: 0;
}

.contact-doctor-copy p {
  font-size: 16px;
  line-height: 1.6;
}

/* Before You Visit Notice */
.contact-notice-box {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-left: 4px solid var(--pink, #b84d72);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 2px 8px rgba(67, 25, 50, 0.03);
}

.contact-notice-box h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.contact-notice-box p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted, #6f5f69);
  margin: 0;
}

/* FAQ Accordion */
.contact-faq-accordion {
  border-top: 1px solid var(--line, #e8d7e0);
}

.contact-faq-accordion details {
  border-bottom: 1px solid var(--line, #e8d7e0);
}

.contact-faq-accordion summary {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum, #431932);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.contact-faq-accordion summary::-webkit-details-marker {
  display: none;
}

.contact-faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--pink, #b84d72);
  transition: transform 0.2s ease;
}

.contact-faq-accordion details[open] summary::after {
  content: "−";
  transform: translateY(-50%);
}

.contact-faq-accordion p {
  padding-bottom: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink, #2a2228);
}

/* Final Contact Panel */
.contact-final-panel {
  padding: 36px 0 60px;
  border-top: 1px solid var(--line, #e8d7e0);
}

.contact-final-card {
  background: linear-gradient(120deg, var(--ivory, #fdfaf6) 0%, #fae8f0 100%);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}

.contact-final-card h3 {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-final-card p {
  max-width: 65ch;
  margin: 0 auto 24px;
  font-size: 16px;
}

.contact-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-options-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }
  .contact-doctor-img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .contact-shell {
    width: calc(100% - 30px);
  }
  .contact-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-final-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-page .button {
    width: 100%;
  }
  .contact-card {
    padding: 22px 18px;
  }
  .contact-final-card {
    padding: 26px 18px;
  }
}

@media (max-width: 480px) {
  .contact-banner-img {
    border-radius: 12px;
  }
  .contact-badge-icon {
    width: 40px;
    height: 40px;
  }
  .contact-badge-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page * {
    transition: none !important;
    animation: none !important;
  }
}
