/* Scoped to Contact; existing site typography/palette are unchanged. */
.contact-page { --contact-border: rgba(206, 147, 185, .32); }
.contact-page .contact-phrase { display: inline-block; }
.contact-page-hero { padding-bottom: 80px; }
.contact-page-hero .contact-hero-note { margin-top: 18px; font-size: 15px; color: var(--ink-light); }
.contact-options-section { padding: 76px 0 96px; background: var(--white); }
.contact-section-heading { margin-bottom: 36px; text-align: center; }
.contact-section-heading .section-kicker { margin-bottom: 12px; }
.contact-section-heading h2 { margin: 0; font-size: 32px; line-height: 1.65; }
.contact-options-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.contact-option { display: flex; flex-direction: column; min-width: 0; padding: 30px 26px; background: var(--cream); border: 1px solid var(--contact-border); border-radius: 24px; }
.contact-option-line { background: linear-gradient(145deg, var(--sage-light), #f4f8f1); border-color: rgba(107, 143, 113, .38); }
.contact-option-top { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 12px; min-height: 48px; margin-bottom: 24px; }
/* Keep both digits together even when serif font metrics differ by browser. */
.contact-option-number { display: block; min-width: 2.5ch; color: var(--berry); font-family: Georgia, serif; font-style: italic; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.4; letter-spacing: 0; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.contact-option-badge { width: fit-content; max-width: 100%; padding: 5px 12px; color: #fff; background: var(--sage); border-radius: 999px; font-size: 13px; font-weight: 700; }
.contact-option-caption { color: var(--ink-light); font-size: 14px; line-height: 1.7; }
.contact-option-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; color: var(--berry); background: var(--pink-pale); border-radius: 20px; }
.contact-option-line .contact-option-icon { color: var(--sage); background: rgba(255, 253, 251, .9); }
.contact-option-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-option h3 { min-height: 77px; margin: 0 0 14px; font-family: var(--serif); font-size: 24px; line-height: 1.6; }
.contact-option > p { margin: 0 0 28px; color: var(--ink); font-size: 16px; line-height: 2; }
.contact-option .button { width: 100%; min-height: 58px; margin-top: auto; padding: 14px 16px; font-size: 16px; text-align: center; white-space: normal; }
.contact-page .button-secondary { color: var(--berry-dark); background: var(--white); border-color: var(--berry); box-shadow: none; }
.contact-page .button-secondary:hover { background: var(--pink-pale); }
.contact-form-section { padding: 96px 0; background: var(--cream); scroll-margin-top: 120px; }
.contact-form-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 34px; align-items: start; }
.contact-form-intro { grid-column: 1; grid-row: 1; }
.contact-form-panel { grid-column: 2; grid-row: 1 / span 2; }
.contact-form-intro .section-kicker { margin-bottom: 14px; }
.contact-form-intro h2 { margin-bottom: 24px; font-size: 36px; line-height: 1.65; }
.contact-form-intro > p, .contact-reply-note p { margin: 0; color: var(--ink); font-size: 16px; line-height: 2; }
.contact-reply-note { grid-column: 1; grid-row: 2; margin: 0; padding-top: 26px; border-top: 1px solid var(--contact-border); }
.contact-reply-note h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.contact-reply-note p + p { margin-top: 14px; }
.contact-form-panel { min-width: 0; padding: 40px; background: var(--white); border: 1px solid var(--contact-border); border-radius: 24px; box-shadow: 0 16px 45px rgba(74, 59, 50, .04); }
.contact-required-note { margin: 0 0 28px; color: var(--ink-light); font-size: 14px; line-height: 1.8; }
.contact-required, .contact-form-panel .CF7_req { display: inline-block; margin: 0 8px 0 0; padding: 2px 9px; border-radius: 6px; color: var(--berry-dark); background: var(--pink-pale); font-size: 12px; font-weight: 700; line-height: 1.7; }
.contact-optional { margin-left: 10px; color: var(--ink-light); font-size: 12px; font-weight: 400; }
.contact-form-panel .wpcf7 { width: 100%; margin: 0; }
.contact-form-panel .contact-field { margin-bottom: 26px; }
.contact-form-panel .contact-field > label, .contact-form-panel .contact-field > .contact-field-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.8; }
.contact-form-panel .contact-field > label .contact-required { margin: 0; }
.contact-form-panel .contact-field p { margin: 0; }
.contact-form-panel .contact-topic-group { min-width: 0; padding: 0; border: 0; }
.contact-form-panel .contact-topic-group legend { width: 100%; margin-bottom: 12px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.8; }
.contact-form-panel .contact-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-form-panel .contact-topics .wpcf7-list-item { min-width: 0; margin: 0; }
.contact-form-panel .contact-topics label { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 14px 12px; border: 1px solid var(--contact-border); border-radius: 10px; background: var(--cream); font-size: 16px; line-height: 1.8; cursor: pointer; }
.contact-form-panel .contact-topics label:has(input:checked) { border-color: var(--berry); background: var(--pink-pale); }
.contact-form-panel .contact-topics .wpcf7-list-item-label { word-break: keep-all; overflow-wrap: normal; }
.contact-form-panel .contact-topic-help { margin-top: 14px !important; color: var(--ink-light); font-size: 15px; line-height: 1.9; }
.contact-form-panel .wpcf7-form-control-wrap { display: block; min-width: 0; }
.contact-form-panel input[type="text"], .contact-form-panel input[type="email"], .contact-form-panel textarea, .contact-form-panel select { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid rgba(74, 59, 50, .25); border-radius: 10px; color: var(--ink); background: #fff; font-family: var(--sans); font-size: 16px; line-height: 1.8; box-shadow: none; }
.contact-form-panel textarea { min-height: 200px; resize: vertical; }
.contact-form-panel input::placeholder, .contact-form-panel textarea::placeholder { color: #85796f; opacity: 1; }
.contact-form-panel input:focus-visible, .contact-form-panel textarea:focus-visible, .contact-form-panel select:focus-visible, .contact-form-panel .wpcf7-submit:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.contact-form-panel .wpcf7-not-valid { border-color: #b13a4b; }
.contact-form-panel .wpcf7-not-valid-tip { margin-top: 8px; color: #a12c3e; font-size: 14px; line-height: 1.8; }
.contact-form-panel .contact-consent { margin: 30px 0 24px; font-size: 15px; line-height: 1.9; }
.contact-form-panel .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact-form-panel .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.contact-form-panel input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--berry); }
.contact-form-panel .contact-submit { margin: 24px 0 0; text-align: center; }
.contact-form-panel .wpcf7-submit { display: inline-flex; justify-content: center; width: 100%; min-height: 60px; padding: 16px 24px; border: 0; border-radius: 999px; color: #fff; background: var(--berry); font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.7; cursor: pointer; }
.contact-form-panel .wpcf7-submit:hover:not(:disabled) { background: var(--berry-dark); }
.contact-form-panel .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.contact-form-panel .wpcf7-response-output { margin: 24px 0 0 !important; padding: 16px !important; border-radius: 10px; font-size: 15px; line-height: 1.9; }
.contact-privacy-note { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--contact-border); color: var(--ink-light); font-size: 14px; line-height: 1.9; }
.contact-form-panel a { color: var(--berry-dark); text-decoration: underline; text-underline-offset: 4px; }
.contact-form-panel a.button { color: #fff; text-decoration: none; }
.contact-form-unavailable h3 { margin-bottom: 16px; font-size: 22px; line-height: 1.8; }
.contact-form-unavailable p { margin-bottom: 24px; font-size: 16px; line-height: 1.9; }
.contact-page .booking-section { scroll-margin-top: 120px; background: var(--white); }
/* Style the existing legacy form as well; no database changes are made. */
.contact-form-panel .CF7_table { display: block; width: 100%; margin: 0; border: 0; background: transparent; }
.contact-form-panel .CF7_table tbody, .contact-form-panel .CF7_table tr, .contact-form-panel .CF7_table th, .contact-form-panel .CF7_table td { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.contact-form-panel .CF7_table tr { margin-bottom: 26px; }
.contact-form-panel .CF7_table th { margin-bottom: 10px; color: var(--ink); font-size: 16px; font-weight: 700; }
.contact-form-panel .CF7_table p { margin: 0; }
.contact-form-panel .CF7_table .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 16px; line-height: 1.9; }
.contact-form-panel .CF7_table .wpcf7-list-item { margin: 0; }
.contact-form-panel .CF7_table .wpcf7-list-item-label { margin-left: 8px; }
.contact-form-panel .CF7_btn { margin: 24px 0 0; }
@media (max-width: 1000px) {
  .contact-options-grid { gap: 16px; }
  .contact-option { padding: 28px 20px; }
  .contact-option-top { min-height: 48px; }
  .contact-form-layout { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); column-gap: 36px; }
  .contact-form-panel { padding: 32px; }
}
@media (max-width: 820px) {
  .contact-options-grid { grid-template-columns: 1fr; }
  .contact-option { padding: 30px; }
  .contact-option h3 { min-height: 0; }
  .contact-option .button { width: min(100%, 360px); }
  .contact-form-layout { grid-template-columns: 1fr; grid-template-rows: none; gap: 32px; }
  .contact-form-intro, .contact-form-panel, .contact-reply-note { grid-column: auto; grid-row: auto; }
  .contact-form-intro h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page *, .contact-page *::before, .contact-page *::after { transition: none !important; }
}
@media (max-width: 480px) {
  .contact-form-panel .contact-topics { grid-template-columns: 1fr; }
  .contact-page-hero { padding-bottom: 56px; }
  .contact-options-section, .contact-form-section { padding-block: 64px; }
  .contact-section-heading h2 { font-size: 28px; }
  .contact-option { padding: 26px 22px; }
  .contact-form-intro h2 { font-size: 32px; }
  .contact-form-panel { padding: 28px 20px; border-radius: 20px; }
  .contact-option .button { width: 100%; }
  .contact-form-panel .wpcf7-submit { padding-inline: 16px; }
}
