/* ============================================================
   ELARIS — CONTACT PAGE  (contact-page.css)
   Self-contained. Prefix ct-. Desktop first, separate mobile design (<= 820px).
   ============================================================ */

.ct-hero { position: relative; isolation: isolate; overflow: clip; background: #fff; padding-block: clamp(30px, 4.5vw, 64px) clamp(40px, 6vw, 80px); }
.ct-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(620px, calc(100svh - var(--x-nav) - 60px)); }
.ct-crumbs { display: flex; align-items: center; gap: 9px; font: 600 13px/1 var(--font-body); color: var(--x-text); margin-bottom: 24px; }
.ct-crumbs a:hover { color: var(--x-navy); } .ct-crumbs i { font-size: 9px; opacity: .5; } .ct-crumbs span { color: var(--x-navy); }
.ct-h1 { font: 800 clamp(2.6rem, 5.6vw, 4.7rem)/1.03 var(--font-heading); letter-spacing: -.042em; color: var(--x-ink); margin: 0; }
.ct-h1 em { font-style: normal; color: var(--x-teal); }
.ct-hero .x-lead { margin-top: 22px; }
.ct-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.x-anim [data-intro] { opacity: 0; } .x-static [data-intro] { opacity: 1 !important; }

/* 3D phone */
.ct-art { display: grid; place-items: center; perspective: 1400px; min-height: 440px; }
.ct-stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; }
.ct-halo { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(31, 184, 85, .2), rgba(253, 197, 0, .14) 50%, transparent 70%); }
.ct-phone { width: min(300px, 74%); border-radius: 36px; background: #0b1d3d; padding: 12px; box-shadow: 0 60px 90px -40px rgba(0, 41, 107, .75), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotateY(-9deg) rotateX(4deg) rotateZ(1.5deg); transform-style: preserve-3d; animation: ct-float 7s ease-in-out infinite; }
@keyframes ct-float { 50% { translate: 0 -12px; } }
.ct-phone__bar { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 24px 24px 0 0; background: #0f7a4a; color: #fff; }
.ct-phone__bar b { display: block; font: 700 14px/1.1 var(--font-heading); } .ct-phone__bar small { display: block; font-size: 11px; opacity: .8; margin-top: 3px; }
.ct-phone__bar > i { margin-left: auto; opacity: .7; }
.ct-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--font-heading); background: var(--x-gold); color: var(--x-navy); }
.ct-chat { min-height: 270px; padding: 18px 14px; border-radius: 0 0 24px 24px; background: #e7ddd0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='3' cy='3' r='1.2' fill='%23b7a98f' fill-opacity='.35'/%3E%3C/svg%3E"); display: flex; flex-direction: column; gap: 10px; }
.ct-chat p { max-width: 82%; padding: 10px 13px; border-radius: 14px; font: 500 13px/1.4 var(--font-body); color: #1b2a41; box-shadow: 0 2px 4px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(10px) scale(.96); animation: ct-pop .5s var(--x-ease) forwards; }
.ct-chat .in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; } .ct-chat .out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.ct-chat .m1 { animation-delay: 1.4s; } .ct-chat .m2 { animation-delay: 2.8s; } .ct-chat .m3 { animation-delay: 4.4s; }
.ct-typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 11px 14px; border-radius: 14px; background: #d9fdd3; opacity: 0; animation: ct-pop .4s var(--x-ease) 5.6s forwards; }
.ct-typing i { width: 6px; height: 6px; border-radius: 50%; background: #5d8a6a; animation: ct-dot 1.2s infinite; } .ct-typing i:nth-child(2) { animation-delay: .15s; } .ct-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-pop { to { opacity: 1; transform: none; } } @keyframes ct-dot { 50% { translate: 0 -4px; opacity: .45; } }
.ct-chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 99px; background: #fff; font: 800 13.5px/1 var(--font-heading); color: var(--x-navy); box-shadow: 0 18px 34px -14px rgba(0, 41, 107, .5); animation: ct-bob 6s ease-in-out infinite; }
.ct-chip i { color: var(--x-teal); } .ct-chip.c2 i { color: #1fb855; }
.ct-chip.c1 { left: 0; top: 18%; } .ct-chip.c2 { right: -2%; top: 34%; animation-delay: -2s; } .ct-chip.c3 { left: 6%; bottom: 14%; animation-delay: -4s; }
@keyframes ct-bob { 50% { margin-top: -12px; } }

/* methods + form */
.ct-main { background: var(--x-paper); }
.ct-main__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.ct-cards { display: grid; gap: 12px; margin-top: 8px; }
.ct-m { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.ct-m b { display: block; font: 700 17px/1.2 var(--font-heading); color: var(--x-ink); word-break: break-word; }
.ct-m small { display: block; font-size: 13px; margin-top: 4px; color: var(--x-text); }
.ct-go { margin-left: auto; font-size: 12px; opacity: .4; transition: opacity .3s, translate .3s var(--x-ease); }
.ct-m:hover .ct-go { opacity: 1; translate: 3px -3px; }
.ct-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--x-line); background: #fff; font-size: 13.5px; line-height: 1.65; }
.ct-note i { color: var(--x-teal); margin-top: 3px; }

.ct-formcard { padding: clamp(22px, 3vw, 38px); border-radius: 30px; box-shadow: 0 40px 70px -40px rgba(0, 41, 107, .55); position: relative; scroll-margin-top: calc(var(--x-nav) + 20px); }
.ct-formcard:hover { translate: 0 0; }
.ct-flash { margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font: 600 14px/1.4 var(--font-body); }
.ct-flash.is-success { background: #e6f7ee; color: #14663a; } .ct-flash.is-error { background: #fdecef; color: #a3213a; }
.ct-form__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ct-form__head h2 { font: 800 1.5rem/1.1 var(--font-heading); color: var(--x-ink); letter-spacing: -.02em; }
.ct-form__head p { font-size: 14px; margin-top: 6px; }
.ct-formcard form { display: grid; gap: 15px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.ct-l { position: relative; display: grid; gap: 7px; font: 700 12.5px/1 var(--font-body); color: var(--x-navy); }
.ct-f { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--x-line); background: #fbfcff; font: 500 15px/1.4 var(--font-body); color: var(--x-ink); transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical; }
.ct-f::placeholder { color: #94a0b5; }
.ct-f:focus { outline: none; border-color: var(--x-navy); box-shadow: 0 0 0 4px rgba(0, 41, 107, .1); background: #fff; }
.ct-l.is-bad .ct-f { border-color: #d0364f; background: #fff8f9; }
.ct-err { display: none; font: 600 12px/1.3 var(--font-body); font-style: normal; color: #c0263c; }
.ct-l.is-bad .ct-err { display: block; }
.ct-count { position: absolute; right: 4px; bottom: -18px; font: 500 11px/1 var(--font-body); color: #94a0b5; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-formcard .x-btn { margin-top: 8px; }
.ct-formcard .x-btn.is-busy { pointer-events: none; opacity: .75; }
.ct-status { min-height: 18px; text-align: center; font: 600 13px/1.4 var(--font-body); color: var(--x-text); }
.ct-status.is-bad { color: #c0263c; }

/* success */
.ct-done { text-align: center; padding: 10px 6px 4px; }
.ct-done[hidden], .ct-form[hidden] { display: none; }
.ct-tick { width: 92px; height: 92px; margin-bottom: 10px; }
.ct-tick circle { fill: #e6f7ee; stroke: #1fb855; stroke-width: 3; stroke-dasharray: 214; stroke-dashoffset: 214; animation: ct-draw .8s ease forwards; }
.ct-tick path { fill: none; stroke: #1fb855; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: ct-draw .5s .7s ease forwards; }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-done h2 { font: 800 1.9rem/1.1 var(--font-heading); color: var(--x-ink); letter-spacing: -.025em; }
.ct-done > p { margin: 10px auto 0; max-width: 38ch; font-size: 15px; line-height: 1.7; }
.ct-ref { display: inline-block; margin: 22px 0; padding: 14px 30px; border-radius: 16px; border: 2px dashed var(--x-line); background: var(--x-paper); }
.ct-ref small { display: block; font: 800 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--x-teal); margin-bottom: 8px; }
.ct-ref b { font: 800 1.6rem/1 var(--font-heading); letter-spacing: .04em; color: var(--x-navy); }
.ct-done__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .ct-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .ct-art { order: -1; min-height: 360px; }
  .ct-main__grid { grid-template-columns: 1fr; }
}
/* ---- mobile: its own design ---- */
@media (max-width: 820px) {
  .ct-art { min-height: 330px; } .ct-stage { width: min(340px, 100%); } .ct-phone { width: 62%; } .ct-chat { min-height: 220px; padding: 12px 10px; } .ct-chat p { font-size: 11.5px; padding: 8px 10px; }
  .ct-chip { padding: 9px 13px; font-size: 12px; } .ct-chip.c3 { display: none; }
  .ct-h1 { font-size: clamp(2.4rem, 11.5vw, 3.3rem); }
  .ct-hero__btns { flex-direction: column; }
  /* form comes first on phones; contact cards become a swipe row */
  .ct-main__grid { display: flex; flex-direction: column; }
  .ct-formcard { order: -1; margin-top: -4px; padding: 20px 16px; border-radius: 26px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-cards { gap: 12px; }
  .ct-m { padding: 14px 16px; }
  .ct-done__btns { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .ct-phone, .ct-chip { animation: none; } .ct-chat p, .ct-typing { animation: none; opacity: 1; transform: none; } }

/* ---- map (Find us) ---- */
.ct-mapsec { background: #fff; padding-top: 0; }
.ct-mapsec .x-lead i { color: var(--x-teal); margin-right: 8px; }
.ct-map { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--x-line); box-shadow: 0 40px 70px -44px rgba(0, 41, 107, .55); background: linear-gradient(100deg, #e6ecf6 30%, #f6f9fe 50%, #e6ecf6 70%) 0 0 / 220% 100%; animation: x-shimmer 1.35s linear infinite; }
.ct-map iframe { position: relative; z-index: 1; display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; }
.ct-map__btn { position: absolute; z-index: 2; left: 20px; bottom: 20px; box-shadow: 0 18px 34px -14px rgba(0, 41, 107, .55); }
@media (max-width: 820px) {
  .ct-map { border-radius: 24px; }
  .ct-map iframe { height: 340px; }
  .ct-map__btn { left: 12px; right: 12px; bottom: 12px; }
}

/* ---- map (Find us) ---- */
.ct-mapsec { background: #fff; padding-top: 0; }
.ct-mapsec .x-lead i { color: var(--x-teal); margin-right: 8px; }
.ct-map { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--x-line); box-shadow: 0 40px 70px -44px rgba(0, 41, 107, .55); background: linear-gradient(100deg, #e6ecf6 30%, #f6f9fe 50%, #e6ecf6 70%) 0 0 / 220% 100%; animation: x-shimmer 1.35s linear infinite; }
.ct-map iframe { position: relative; z-index: 1; display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; }
.ct-map__btn { position: absolute; z-index: 2; left: 20px; bottom: 20px; box-shadow: 0 18px 34px -14px rgba(0, 41, 107, .55); }
@media (max-width: 820px) {
  .ct-map { border-radius: 24px; }
  .ct-map iframe { height: 340px; }
  .ct-map__btn { left: 12px; right: 12px; bottom: 12px; }
}


.ct-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--x-text); }
.ct-consent i { color: var(--x-teal); margin-top: 2px; }
.ct-consent a { color: var(--x-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }


