/* Contact page: quick-action opening, office postcards with map, chat-thread steps and page skin. Prefix ct-. */
:root { --ct-ink: #0d1b33; --ct-navy: #0b2a52; --ct-blue: #1a6fd1; --ct-muted: #566381; --ct-line: rgba(13, 27, 51, .12); --ct-soft: #f3f7fd; --ct-wa: #1fa855; }

/* ---- Opening ---- */
.ct-hero-sec { position: relative; overflow: hidden; padding: 64px 0 56px; background: radial-gradient(800px 380px at 12% 0%, #e3efff 0%, transparent 65%), radial-gradient(700px 360px at 95% 20%, #e4f8ec 0%, transparent 60%), #fff; }
.ct-hero-top { max-width: 820px; margin: 0 auto; text-align: center; }
.ct-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--ct-line); box-shadow: 0 10px 24px -18px rgba(13, 27, 51, .5); font-size: 14px; color: var(--ct-ink); }
.ct-status i { width: 10px; height: 10px; border-radius: 50%; background: #9aa5b8; }
.ct-status.open i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ct-ping 2s infinite; }
.ct-status.closed i { background: #f59e0b; }
.ct-status span { color: var(--ct-muted); font-variant-numeric: tabular-nums; }
@keyframes ct-ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.ct-hero-top h1 { margin: 22px 0 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; color: var(--ct-ink); }
.ct-hero-top h1 span { background: linear-gradient(90deg, var(--ct-blue), var(--ct-wa)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ct-hero-text { max-width: 640px; margin: 18px auto 0; font-size: 17px; line-height: 1.7; color: var(--ct-muted); }
.ct-actions { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct-actions a { --c: var(--ct-blue); position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ct-line); color: var(--ct-ink); text-decoration: none; box-shadow: 0 18px 36px -30px rgba(13, 27, 51, .6); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.a1 a { --c: var(--ct-wa); } .a2 a { --c: #7a5af5; } .a3 a { --c: #f26b1d; }
.ct-actions a::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .4s; }
.ct-actions a:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 26px 44px -28px color-mix(in srgb, var(--c) 70%, #000); }
.ct-actions a:hover::before { transform: scale(1.4); }
.ct-actions a:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.ct-ic { position: relative; width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.ct-ic img { width: 26px; height: 26px; }
.ct-actions small { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.ct-actions b { position: relative; font-size: 18px; line-height: 1.3; word-break: break-word; }
.ct-note { position: relative; font-size: 14px; color: var(--ct-muted); }
.ct-arrow { position: absolute; right: 18px; top: 22px; font-style: normal; font-size: 18px; color: var(--c); transition: transform .25s; }
.ct-actions a:hover .ct-arrow { transform: translateX(4px); }
.ct-foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--ct-muted); }

/* ---- Office postcards ---- */
.ct-offices { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: stretch; margin-top: 28px; }
.ct-cards { display: grid; gap: 14px; align-content: start; }
.ct-card { position: relative; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1.5px solid var(--ct-line); transition: border-color .25s, box-shadow .25s; }
.ct-card[aria-current="true"] { border-color: var(--ct-blue); box-shadow: 0 20px 40px -30px rgba(26, 111, 209, .8); }
.ct-card::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: transparent; transition: background .25s; }
.ct-card[aria-current="true"]::after { background: var(--ct-blue); }
.ct-card-pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ct-ink); }
.ct-stamp { grid-row: span 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; border: 2px dashed color-mix(in srgb, var(--ct-blue) 45%, transparent); color: var(--ct-blue); font-weight: 800; font-size: 14px; letter-spacing: .06em; transform: rotate(-4deg); }
.ct-card-pick small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-muted); }
.ct-card-pick b { font-size: 22px; }
.ct-card p { margin: 14px 0 10px; font-size: 15px; line-height: 1.6; color: var(--ct-muted); }
.ct-card-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14.5px; }
.ct-card-links a { font-weight: 600; color: var(--ct-ink); text-decoration: none; }
.ct-card-links a:hover { color: var(--ct-blue); }
.ct-card-links .ct-dir { color: var(--ct-blue); }
.ct-map { position: relative; min-height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--ct-line); box-shadow: 0 26px 50px -36px rgba(13, 27, 51, .6); background: var(--ct-soft); }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Chat-thread steps ---- */
.ct-chat { max-width: 680px; margin: 28px auto 0; border-radius: 24px; background: #eef3f8; border: 1px solid var(--ct-line); box-shadow: 0 30px 54px -36px rgba(13, 27, 51, .6); overflow: hidden; }
.ct-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ct-navy); color: #fff; }
.ct-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ct-navy); font-weight: 800; font-size: 14px; }
.ct-chat-head b { display: block; font-size: 15px; }
.ct-chat-head small { font-size: 12.5px; color: #b9cbe3; }
.ct-thread { list-style: none; margin: 0; padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.ct-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .35s, transform .35s; }
.ct-msg.in { opacity: 1; transform: none; }
.ct-msg.me { align-self: flex-end; background: var(--ct-blue); color: #fff; border-bottom-right-radius: 6px; }
.ct-msg.me p { margin: 0; }
.ct-msg.them { align-self: flex-start; background: #fff; color: var(--ct-ink); border-bottom-left-radius: 6px; box-shadow: 0 6px 14px -12px rgba(13, 27, 51, .5); }
.ct-msg.them small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-blue); }
.ct-msg.them b { display: block; margin: 2px 0 2px; font-size: 16px; }
.ct-msg.them p { margin: 0; color: var(--ct-muted); }
.ct-typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 16px; border-radius: 18px; background: #fff; }
.ct-typing.on { display: inline-flex; }
.ct-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b8; animation: ct-dot 1s infinite; }
.ct-typing i:nth-child(2) { animation-delay: .15s; } .ct-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ct-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---- Page skin ---- */
body:has(.ct-hero-sec) main .sv-intro { background: var(--ct-soft) !important; color: var(--ct-ink) !important; border-color: #d8e5f6 !important; }

@media (max-width: 960px) {
    .ct-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-offices { grid-template-columns: minmax(0, 1fr); }
    .ct-map { min-height: 300px; }
}
@media (max-width: 560px) {
    .ct-hero-sec { padding: 36px 0 40px; }
    .ct-status { font-size: 12.5px; }
    .ct-status span { display: none; }
    .ct-actions { gap: 10px; margin-top: 28px; }
    .ct-actions a { padding: 16px 14px 18px; border-radius: 16px; }
    .ct-ic { width: 40px; height: 40px; margin-bottom: 8px; }
    .ct-actions b { font-size: 15px; }
    .ct-note { font-size: 12.5px; }
    .ct-arrow { right: 12px; top: 16px; }
    .ct-msg { max-width: 92%; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-status.open i, .ct-typing i { animation: none; }
    .ct-msg { transition: none; }
}

/* Desktop: "Send Us a Message" heading sits above the form, both centred, instead of title-left / form-right. */
@media (min-width: 901px) {
  body:has(.ct-hero-sec) main .sv-contact { grid-template-columns: 1fr; gap: 28px; max-width: 760px; margin-inline: auto; }
  body:has(.ct-hero-sec) main .sv-contact > div:first-child { text-align: center; }
  body:has(.ct-hero-sec) main .sv-contact > div:first-child p { margin-inline: auto; max-width: 560px; }
  body:has(.ct-hero-sec) main .sv-contact-big { margin-bottom: 12px; }
}
