/* Dedicated Contact Form 7 page. Loaded only on the configured contact page. */
.contact-page-main { min-height: 72vh; background: var(--paper); }
.contact-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(138px, 12vw, 180px) 0 clamp(92px, 8vw, 122px);
  border-bottom: 1px solid var(--line);
  background-color: var(--ice);
  background-image: linear-gradient(rgba(7,24,44,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(7,24,44,.045) 1px, transparent 1px);
  background-size: 42px 42px;
}
.contact-page-hero-inner { position: relative; z-index: 2; max-width: 980px; }
.contact-page-hero-glow { position: absolute; border-radius: 50%; filter: blur(82px); pointer-events: none; }
.contact-page-hero-glow-one { width: 380px; height: 380px; left: -210px; top: 45px; background: rgba(4,148,166,.25); }
.contact-page-hero-glow-two { width: 390px; height: 390px; right: -175px; bottom: -240px; background: rgba(255,93,80,.23); }
.page-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.page-breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.page-breadcrumbs a:hover { color: var(--coral-dark); text-decoration-color: currentColor; }
.page-breadcrumb-separator { opacity: .5; }
.contact-page-kicker { margin-bottom: 20px; }
.contact-page-title { max-width: 900px; margin: 0; font-size: clamp(54px, 7vw, 96px); line-height: .96; letter-spacing: -.06em; text-wrap: balance; }
.contact-page-intro { max-width: 760px; margin: 26px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; text-wrap: pretty; }

.contact-page-body { padding: clamp(74px, 8vw, 120px) 0 clamp(96px, 9vw, 140px); }
.contact-page-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-details-card,
.ig-contact-form-card { border: 1px solid rgba(7,24,44,.11); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 62px rgba(7,24,44,.09); }
.contact-details-card { position: sticky; top: calc(var(--header-offset, 86px) + 22px); overflow: hidden; padding: clamp(28px, 4vw, 42px); }
.contact-details-heading h2 { margin: 9px 0 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.contact-detail-list { display: grid; gap: 10px; margin-top: 32px; }
.contact-detail-item { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 14px; align-items: center; min-height: 70px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contact-detail-item:hover { transform: translateY(-2px); border-color: rgba(7,24,44,.2); box-shadow: 0 10px 24px rgba(7,24,44,.07); }
.contact-detail-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); }
.contact-detail-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-item strong { display: block; color: var(--ink); font-size: 13px; }
.contact-detail-item small { display: block; margin-top: 2px; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.contact-meta-card { display: grid; gap: 18px; margin-top: 24px; padding: 22px; border-radius: 18px; color: #fff; background: var(--ink); }
.contact-meta-card span { display: block; margin-bottom: 5px; color: #c7d0da; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-meta-card p { margin: 0; color: #fff; font-size: 14px; line-height: 1.6; }
.contact-next-step { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-next-step h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.contact-next-step p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.ig-contact-form-card { position: relative; padding: clamp(30px, 5vw, 58px); }
.ig-contact-form-card::before { content: ""; position: absolute; inset: 0 auto auto clamp(30px, 5vw, 58px); width: 72px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--gold)); transform: translateY(-2px); }
.contact-form-heading { margin-bottom: 32px; }
.contact-form-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.02; letter-spacing: -.045em; }
.contact-form-heading p { max-width: 650px; margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }

/* Contact Form 7: intentionally scoped to this theme card. */
.ig-contact-form-card .wpcf7 { margin: 0; }
.ig-contact-form-card .wpcf7 form { margin: 0; }
.ig-contact-form-card .wpcf7 form > :first-child { margin-top: 0; }
.ig-contact-form-card .wpcf7 form > :last-child { margin-bottom: 0; }
.ig-contact-form-card .wpcf7 p { margin: 0 0 20px; }
.ig-contact-form-card .wpcf7 label { display: block; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.45; }
.ig-contact-form-card .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.ig-contact-form-card .wpcf7 :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
  width: 100%; min-height: 54px; padding: 13px 15px; border: 1px solid rgba(7,24,44,.2); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: inset 0 1px 2px rgba(7,24,44,.025); font: inherit; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ig-contact-form-card .wpcf7 textarea { min-height: 170px; resize: vertical; }
.ig-contact-form-card .wpcf7 select { appearance: auto; }
.ig-contact-form-card .wpcf7 :where(input, select, textarea)::placeholder { color: #667486; opacity: 1; }
.ig-contact-form-card .wpcf7 :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea):focus { outline: 3px solid rgba(4,148,166,.22); outline-offset: 2px; border-color: var(--teal-contrast); box-shadow: 0 0 0 1px var(--teal-contrast); }
.ig-contact-form-card .wpcf7 .wpcf7-not-valid { border-color: #a62d25; background: #fff9f8; }
.ig-contact-form-card .wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 7px; color: #9d2e26; font-size: 13px; font-weight: 700; }
.ig-contact-form-card .wpcf7 .wpcf7-acceptance label,
.ig-contact-form-card .wpcf7 .wpcf7-checkbox label,
.ig-contact-form-card .wpcf7 .wpcf7-radio label { display: inline-flex; gap: 9px; align-items: flex-start; font-weight: 600; }
.ig-contact-form-card .wpcf7 :where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; flex: 0 0 18px; margin: .15em 0 0; accent-color: var(--ink); }
.ig-contact-form-card .wpcf7 input[type="submit"] { min-height: 54px; padding: 13px 24px; border: 1px solid var(--ink); border-radius: var(--button-radius); color: #fff; background: var(--ink); font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ig-contact-form-card .wpcf7 input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,24,44,.14); }
.ig-contact-form-card .wpcf7 input[type="submit"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ig-contact-form-card .wpcf7 input[type="submit"]:disabled { opacity: .62; cursor: progress; transform: none; }
.ig-contact-form-card .wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.ig-contact-form-card .wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 16px; border: 2px solid var(--teal-contrast); border-radius: 14px; color: var(--ink); background: #f5ffff; font-size: 14px; font-weight: 650; line-height: 1.55; }
.ig-contact-form-card .wpcf7 form.invalid .wpcf7-response-output,
.ig-contact-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.ig-contact-form-card .wpcf7 form.payment-required .wpcf7-response-output { border-color: #9a6100; background: #fffaf0; }
.ig-contact-form-card .wpcf7 form.failed .wpcf7-response-output,
.ig-contact-form-card .wpcf7 form.aborted .wpcf7-response-output,
.ig-contact-form-card .wpcf7 form.spam .wpcf7-response-output { border-color: #9d2e26; background: #fff8f7; }
.ig-contact-form-card .wpcf7 form.sent .wpcf7-response-output { border-color: #087d65; background: #f3fffb; }
.ig-contact-form-card .ig-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.ig-contact-form-card .ig-form-grid > p { min-width: 0; }
.ig-contact-form-card .ig-form-full { grid-column: 1 / -1; }
.contact-privacy-link { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.contact-privacy-link a { color: var(--coral-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.contact-form-fallback { padding: 22px; border: 1px dashed rgba(7,24,44,.22); border-radius: 16px; background: var(--paper); }
.contact-form-fallback p { margin: 0 0 16px; color: var(--ink-soft); }

.contact-page-editor-section { padding: 0 0 clamp(90px, 8vw, 120px); }
.contact-page-editor-content { width: min(calc(100% - 40px), 900px); color: #344254; font-size: 18px; line-height: 1.8; }
.contact-page-editor-content > * { margin-top: 0; margin-bottom: 1.45em; }
.contact-page-editor-content > :where(h2,h3,h4) { margin-top: 1.7em; color: var(--ink); line-height: 1.12; letter-spacing: -.035em; }
.contact-page-editor-content h2 { font-size: clamp(30px,4vw,44px); }
.contact-page-editor-content h3 { font-size: clamp(24px,3vw,32px); }
.contact-page-editor-content a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-details-card { position: static; }
  .contact-detail-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .contact-page-hero { padding: 120px 0 78px; background-size: 32px 32px; }
  .page-breadcrumbs { margin-bottom: 22px; }
  .contact-page-title { font-size: clamp(48px,14vw,68px); }
  .contact-page-body { padding: 56px 0 86px; }
  .contact-details-card, .ig-contact-form-card { border-radius: 24px; }
  .contact-details-card, .ig-contact-form-card { padding: 28px 22px; }
  .ig-contact-form-card::before { left: 22px; }
  .contact-detail-list { grid-template-columns: 1fr; }
  .ig-contact-form-card .ig-form-grid { grid-template-columns: 1fr; }
  .ig-contact-form-card .ig-form-full { grid-column: auto; }
}
@media (forced-colors: active) {
  .contact-detail-item, .contact-details-card, .ig-contact-form-card, .contact-meta-card, .contact-form-fallback { border: 1px solid CanvasText; }
  .contact-detail-icon, .contact-meta-card { forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-detail-item, .ig-contact-form-card .wpcf7 input[type="submit"] { transition: none; }
}
@media print {
  .contact-page-hero-glow, .ig-contact-form-card { display: none !important; }
  .contact-page-hero, .contact-page-body { padding: 2rem 0; background: #fff !important; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-details-card { position: static; border: 0; box-shadow: none; }
}
