/* ============================================================
   Contact Us page
   ------------------------------------------------------------
   Markup:    resources/views/frontend/contact_us.blade.php
   Behaviour: public/frontend/js/contact-page.js
   Shared sections have their own files: contact-channels.css, contact-form.css,
   steps-section.css and faq-section.css. Mobile-first.
   ============================================================ */

.ctp-hero,
.ctp-main,
.ctp-map { --ctp-ink: #0f172a; --ctp-text: #475569; --ctp-muted: #64748b; --ctp-line: #e6ebf3; --ctp-blue: #2563eb; }
.ctp-hero *, .ctp-hero *::before, .ctp-hero *::after,
.ctp-main *, .ctp-main *::before, .ctp-main *::after,
.ctp-map *, .ctp-map *::before, .ctp-map *::after { box-sizing: border-box; }
.ctp-hero a, .ctp-main a, .ctp-map a { text-decoration: none; }
.ctp-hero :focus-visible, .ctp-main :focus-visible, .ctp-map :focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 6px; }

/* ── Buttons ──────────────────────────────────────────────── */
.ctp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.ctp-btn--primary { background: #f97316; color: #fff !important; box-shadow: 0 12px 24px rgba(249, 115, 22, .3); }
.ctp-btn--primary:hover { background: #ea580c; transform: translateY(-1px); }
.ctp-btn--wa { background: #16a34a; color: #fff !important; }
.ctp-btn--wa:hover { background: #15803d; transform: translateY(-1px); }
.ctp-btn--ghost { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff !important; }
.ctp-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.ctp-btn--light { border-color: #dbe3ef; background: #fff; color: var(--ctp-ink) !important; }
.ctp-btn--light:hover { border-color: var(--ctp-blue); color: var(--ctp-blue) !important; }
.ctp-btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* ── Hero ─────────────────────────────────────────────────── */
.ctp-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 52px;
    color: #fff;
    background:
        radial-gradient(700px 380px at 90% 0%, rgba(37, 99, 235, .38), transparent 60%),
        radial-gradient(520px 320px at 0% 100%, rgba(249, 115, 22, .2), transparent 60%),
        linear-gradient(160deg, #061634 0%, #0b2a5b 100%);
}
.ctp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 85%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 85%);
    pointer-events: none;
}
.ctp-hero .container { position: relative; }
.ctp-hero__grid { display: grid; gap: 32px; align-items: center; }
.ctp-hero__copy { min-width: 0; }

.ctp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 700;
    color: #dbeafe;
}
.ctp-badge i { color: #fdba74; }
.ctp-hero h1 { margin: 16px 0 12px; font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.ctp-lead { margin: 0 0 10px; font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); font-weight: 700; line-height: 1.45; color: #bfdbfe; }
.ctp-intro { max-width: 600px; margin: 0 0 24px; font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.ctp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Lists are spaced with padding: the site resets list margins. */
.ctp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 28px 0 0; list-style: none; }
.ctp-stats li { padding: 12px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .05); text-align: center; }
.ctp-stats b { display: block; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 900; line-height: 1.1; color: #fff; }
.ctp-stats span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .72); }

/* Reach-us card */
.ctp-reach { min-width: 0; padding: 20px; border-radius: 20px; background: #fff; color: var(--ctp-text); box-shadow: 0 30px 60px rgba(2, 6, 23, .35); }
.ctp-reach__status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; }
.ctp-reach__status.is-open { background: #f0fdf4; }
.ctp-reach__status b { display: block; font-size: 15px; line-height: 1.3; color: var(--ctp-ink); }
.ctp-reach__status small { display: block; font-size: 13px; line-height: 1.4; color: var(--ctp-muted); }
.ctp-dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.is-open .ctp-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); animation: ctp-pulse 2s ease-in-out infinite; }

.ctp-reach__list { display: grid; margin: 0; padding: 10px 0 0; list-style: none; }
.ctp-reach__list li { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #eef2f7; }
.ctp-reach__list li:last-child { border-bottom: 0; }
.ctp-reach__list li > div { min-width: 0; }
.ctp-reach__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff5ff;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
    font-size: 16px;
}
.ctp-reach__list small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.ctp-reach__list li > div > a,
.ctp-reach__list li > div > span { display: block; font-size: 15px; font-weight: 800; line-height: 1.45; color: var(--ctp-ink); overflow-wrap: anywhere; }
.ctp-reach__list li > div > span { font-size: 14px; font-weight: 600; }
.ctp-reach__list li > div > a:hover { color: var(--ctp-blue); }
.ctp-reach__list .ctp-reach__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ctp-blue); }
.ctp-reach__more i { font-size: 10px; }
.ctp-reach__today { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #f7f9fd; font-size: 13.5px; line-height: 1.4; }
.ctp-reach__today i { color: var(--ctp-blue); }
.ctp-reach__today b { color: var(--ctp-ink); }

/* ── Section heads ────────────────────────────────────────── */
.ctp-head { max-width: 680px; margin: 0 auto; padding-bottom: 28px; text-align: center; }
.ctp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eff5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ctp-blue);
}
.ctp-head h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; color: var(--ctp-ink); }
.ctp-head p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ctp-text); }

/* ── Form + details ───────────────────────────────────────── */
.ctp-main { padding: 56px 0; background: #fff; color: var(--ctp-text); }
.ctp-main__grid { display: grid; gap: 20px; align-items: start; }
.ctp-form-card {
    min-width: 0;
    padding: 22px 18px;
    border: 1px solid var(--ctp-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 44px rgba(15, 23, 42, .08);
}
.ctp-aside { display: grid; gap: 16px; min-width: 0; }
.ctp-card { min-width: 0; padding: 20px; border: 1px solid var(--ctp-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05); }
.ctp-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ctp-ink); }
.ctp-card h3 i { color: var(--ctp-blue); }
.ctp-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.ctp-card__head h3 { margin: 0; }
.ctp-card__text { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.ctp-card__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ctp-muted); }

.ctp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ctp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ctp-pill--green { background: #dcfce7; color: #15803d; }
.ctp-pill--orange { background: #ffedd5; color: #c2410c; }

.ctp-hours { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ctp-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.ctp-hours li b { font-weight: 700; text-align: right; color: var(--ctp-ink); }
.ctp-hours li.is-closed b { font-weight: 600; color: #94a3b8; }
.ctp-hours li.is-today { background: #eff5ff; }
.ctp-hours li.is-today span,
.ctp-hours li.is-today b { font-weight: 800; color: #1d4ed8; }
.ctp-hours em { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ctp-blue); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }

.ctp-talk { display: grid; gap: 8px; }
.ctp-talk__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--ctp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ctp-ink);
    transition: border-color .2s, background-color .2s;
}
.ctp-talk__link > i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eff5ff;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
}
.ctp-talk__link span { min-width: 0; font-size: 14.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.ctp-talk__link small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.ctp-talk__link:hover { border-color: var(--c); background: #fbfdff; color: var(--ctp-ink); }

.ctp-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ctp-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--ctp-line); border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ctp-ink); transition: border-color .2s, color .2s; }
.ctp-social a:hover { border-color: var(--ctp-blue); color: var(--ctp-blue); }

/* ── Map ──────────────────────────────────────────────────── */
.ctp-map { padding: 56px 0; background: #fff; color: var(--ctp-text); }
.ctp-map__stage { position: relative; }
.ctp-map__frame { display: block; width: 100%; height: 320px; border: 0; background: #e2e8f0; }
.ctp-map__card {
    position: relative;
    max-width: 440px;
    margin: -44px auto 0;
    padding: 30px 20px 20px;
    border: 1px solid var(--ctp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .16);
}
.ctp-map__icon { position: absolute; top: -22px; left: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #7c3aed; color: #fff; font-size: 18px; box-shadow: 0 10px 20px rgba(124, 58, 237, .35); }
.ctp-map__card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--ctp-ink); }
.ctp-map__address { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; line-height: 1.55; color: #334155; }
.ctp-map__hours { display: flex; gap: 8px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ctp-muted); }
.ctp-map__hours i { margin-top: 3px; color: var(--ctp-blue); }
.ctp-map__actions { display: flex; flex-wrap: wrap; gap: 8px; }

@keyframes ctp-pulse { 50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, .06); } }

/* ── <576px ───────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ctp-actions .ctp-btn { flex: 1 1 140px; }
    .ctp-stats li { padding: 10px 6px; }
    .ctp-map__actions .ctp-btn { flex: 1 1 auto; }
}

/* ── ≥768px ───────────────────────────────────────────────── */
@media (min-width: 768px) {
    .ctp-hero { padding: 64px 0 72px; }
    .ctp-reach { padding: 24px; }
    .ctp-main { padding: 72px 0; }
    .ctp-form-card { padding: 32px; }
    .ctp-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ctp-aside > .ctp-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ctp-map { padding: 72px 0 0; }
    .ctp-map__frame { height: 460px; }
    .ctp-map__layer { position: absolute; left: 0; right: 0; bottom: 32px; pointer-events: none; }
    .ctp-map__card { margin: 0; pointer-events: auto; }
}

/* ── ≥992px ───────────────────────────────────────────────── */
@media (min-width: 992px) {
    .ctp-hero { padding: 80px 0 88px; }
    .ctp-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
    .ctp-main { padding: 88px 0; }
    .ctp-main__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
    .ctp-form-card { padding: 36px; }
    .ctp-aside { grid-template-columns: minmax(0, 1fr); }
    .ctp-aside > .ctp-card:last-child:nth-child(odd) { grid-column: auto; }
    .ctp-map { padding-top: 88px; }
    .ctp-map__frame { height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
    .ctp-hero *, .ctp-main *, .ctp-map * { transition: none !important; animation: none !important; }
}
