/* ==========================================================================
   Contact Us v2 (21 Nov 2026): split layout. Navy hero + quick contact | form card | offices.
   Markup: resources/views/user/contact_us/contact_us.blade.php (.gwc)
   Colours/fonts only from gateway-theme.css. Gold text only on navy; gold-dark on light.
   Form hooks (ids / names / JS classes) are untouched: this file only restyles them.
   Input skin follows gw-modals.css: 48px, 12px radius, ice fill, gold focus ring.
   ========================================================================== */

.gwc {
    --gwc-radius: 24px;
    --gwc-border: rgba(var(--gw-navy-rgb), .12);
    --gwc-shadow: 0 18px 50px rgba(var(--gw-navy-rgb), .12);
    --gwc-ease: cubic-bezier(.2, .8, .2, 1);
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(var(--gw-gold-rgb), .14), transparent 60%),
        var(--gw-ice);
    color: var(--gw-slate);
    font-family: var(--gw-font);
    padding: 28px 0 72px;
    overflow-x: clip;
}
.gwc .gwc-wrap { max-width: 1200px; padding-left: 16px; padding-right: 16px; }
.gwc *, .gwc *::before, .gwc *::after { box-sizing: border-box; }
.gwc .visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---- Breadcrumb (shared partial: restyled here only) ---- */
.gwc .breadcrumb { gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 500; color: var(--gw-slate); }
.gwc .breadcrumb a { color: var(--gw-slate); text-decoration: none; }
.gwc .breadcrumb a:hover { color: var(--gw-navy); }
.gwc .breadcrumb i { font-size: 16px; color: var(--gw-slate); }
.gwc .breadcrumb .breadcrumb-active { color: var(--gw-gold-dark); font-weight: 600; }

/* ---- Layout ---- */
.gwc .gwc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "intro form" "offices offices";
    grid-template-rows: auto auto;
    gap: 24px;
    margin: 0;
    background: none;
}
.gwc .gwc-intro { grid-area: intro; }
.gwc .gwc-form-col { grid-area: form; align-self: stretch; }
.gwc .gwc-offices { grid-area: offices; align-self: start; }

/* ---- Shared type ---- */
.gwc .gwc-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
    background: rgba(var(--gw-gold-rgb), .14); color: var(--gw-gold); border: 1px solid rgba(var(--gw-gold-rgb), .35);
}
.gwc .gwc-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gw-gold); box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .2); }
.gwc .gwc-kicker--light { background: rgba(var(--gw-gold-rgb), .16); color: var(--gw-gold-dark); border-color: rgba(var(--gw-gold-dark-rgb), .25); }
.gwc .gwc-kicker--light::before { background: var(--gw-gold-dark); box-shadow: 0 0 0 4px rgba(var(--gw-gold-dark-rgb), .14); }

.gwc .gwc-h2 {
    margin: 0; font-family: var(--gw-font); font-size: clamp(22px, 2vw, 27px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em;
    color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); background: none; text-align: left;
}
.gwc .gwc-h2 span { color: var(--gw-gold-dark); -webkit-text-fill-color: var(--gw-gold-dark); }

/* ==========================================================================
   1. Intro (navy)
   ========================================================================== */
.gwc .gwc-intro {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 36px 36px 30px; border-radius: var(--gwc-radius);
    background:
        radial-gradient(520px 260px at 110% -10%, rgba(var(--gw-gold-rgb), .22), transparent 60%),
        radial-gradient(420px 300px at -20% 120%, rgba(var(--gw-navy-light-rgb), .9), transparent 65%),
        var(--gw-navy);
    color: var(--gw-white);
    box-shadow: 0 24px 60px rgba(var(--gw-navy-rgb), .28);
}
.gwc .gwc-intro::after {   /* thin gold strip on top, like the modal skin */
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gw-gold-shine); z-index: -1;
}
.gwc .gwc-title {
    margin: 18px 0 12px; font-family: var(--gw-font); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em;
    color: var(--gw-white); -webkit-text-fill-color: var(--gw-white); background: none; text-align: left;
}
.gwc .gwc-title span { color: var(--gw-gold); -webkit-text-fill-color: var(--gw-gold); white-space: nowrap; }
.gwc .gwc-sub { margin: 0 0 26px; max-width: 470px; font-size: 16px; line-height: 1.55; color: rgba(var(--gw-ice-rgb), .9); }

/* Quick contact cards */
.gwc .gwc-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gwc .gwc-q {
    display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px 12px 12px;
    border-radius: 16px; text-decoration: none; color: var(--gw-white);
    background: rgba(var(--gw-navy-light-rgb), .75); border: 1px solid rgba(255, 255, 255, .1);
    transition: transform 200ms var(--gwc-ease), border-color 200ms ease, background-color 200ms ease;
}
.gwc .gwc-q:hover { color: var(--gw-white); transform: translateY(-2px); border-color: rgba(var(--gw-gold-rgb), .6); background: var(--gw-navy-light); }
.gwc .gwc-q:focus-visible { outline: 2px solid var(--gw-gold); outline-offset: 3px; }
.gwc .gwc-q-ico {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow); color: var(--gw-navy);
}
.gwc .gwc-q-ico .fa { font-size: 22px; line-height: 1; color: var(--gw-navy); }
.gwc .gwc-q-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.gwc .gwc-q-txt b { font-size: 15px; font-weight: 600; color: var(--gw-white); }
.gwc .gwc-q-txt span { font-size: 14px; color: rgba(var(--gw-ice-rgb), .88); overflow-wrap: anywhere; }
.gwc .gwc-q-go { flex: 0 0 auto; font-size: 18px; color: var(--gw-gold); transition: transform 200ms var(--gwc-ease); }
.gwc .gwc-q:hover .gwc-q-go { transform: translateX(4px); }

.gwc .gwc-promise {
    display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, .18); font-size: 14px; color: rgba(var(--gw-ice-rgb), .9);
}
.gwc .gwc-promise b { color: var(--gw-gold); font-weight: 600; }
.gwc .gwc-promise-ico { display: inline-flex; color: var(--gw-gold); }

/* ==========================================================================
   2. Form card (white, shiny gold edge)
   ========================================================================== */
.gwc .gwc-card.contact-form-div {
    position: relative; padding: 32px 30px 26px;
    border: 1.5px solid transparent; border-radius: var(--gwc-radius);
    background:
        var(--gw-gold-shine) top center / 100% 4px no-repeat padding-box,
        linear-gradient(var(--gw-white), var(--gw-white)) padding-box,
        var(--gw-gold-shine) border-box;
    box-shadow: 0 0 36px rgba(var(--gw-gold-rgb), .18), var(--gwc-shadow);
    color: var(--gw-navy);
}
.gwc .gwc-form-head p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--gw-slate); }

/* AJAX error box (.offer-not-found-box toggled by JS) */
.gwc .offer-not-found-box {
    margin: 16px 0 0; padding: 10px 14px; border-radius: 12px;
    background: rgba(var(--gw-danger-rgb), .07); border: 1px solid rgba(var(--gw-danger-rgb), .3);
}
.gwc .offer-not-found-box .ajaxErrorMessage { font-size: 14px; font-weight: 500; color: var(--gw-danger); }

.gwc .contact-form { margin-top: 18px !important; }
.gwc #ContactUsDetails .form-group { margin: 0 0 16px; }
.gwc #ContactUsDetails .input-gro { position: relative; }
.gwc #ContactUsDetails label {
    display: block; height: 20px; margin: 0 0 7px; font-size: 13.5px; line-height: 20px; font-weight: 600; letter-spacing: 0;
    color: var(--gw-navy);
}
.gwc #ContactUsDetails label small { font-weight: 400; font-size: 12.5px; color: var(--gw-slate); margin-left: 4px; }

.gwc #ContactUsDetails .form-control {
    height: 48px; min-height: 48px; width: 100%; padding: 0 14px;
    border: 1px solid rgba(var(--gw-navy-rgb), .15); border-radius: 12px;
    background-color: var(--gw-ice); color: var(--gw-navy);
    font-family: var(--gw-font); font-size: 15px; font-weight: 400;
    box-shadow: none; outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.gwc #ContactUsDetails .form-control::placeholder { color: rgba(var(--gw-slate-rgb), .6); opacity: 1; }
.gwc #ContactUsDetails .form-control:hover { border-color: rgba(var(--gw-navy-rgb), .3); }
.gwc #ContactUsDetails .form-control:focus {
    border-color: var(--gw-gold); background-color: var(--gw-white); color: var(--gw-navy);
    box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .3); outline: none;
}

/* +91 prefix (label is a fixed 27px row, so the chip sits exactly on the input) */
.gwc #ContactUsDetails .gwc-has-prefix .form-control { padding-left: 60px; }
.gwc #ContactUsDetails .gwc-prefix {
    position: absolute; left: 1px; top: 28px; height: 46px; width: 48px; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; color: var(--gw-navy); border-right: 1px solid rgba(var(--gw-navy-rgb), .12);
    pointer-events: none; z-index: 1;
}
.gwc #ContactUsDetails .otp_code { font-size: 20px; font-weight: 700; letter-spacing: .35em; }

/* Inline errors (appended by the page scripts as p/span.errorMessage) */
.gwc #ContactUsDetails .errorMessage {
    display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--gw-danger);
}
.gwc #ContactUsDetails .errorMessage:empty { display: none; }
.gwc #ContactUsDetails .errorMessage:not(:empty)::before { content: "! "; font-weight: 700; }
.gwc #ContactUsDetails :is(.input-gro, .form-group):has(.errorMessage:not(:empty)) .form-control {
    border-color: var(--gw-danger); background-color: var(--gw-white);
}
.gwc #ContactUsDetails :is(.input-gro, .form-group):has(.errorMessage:not(:empty)) .form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--gw-danger-rgb), .18);
}

/* OTP block appears with a short rise */
.gwc #ContactUsDetails .otpBlock:not(.d-none) { animation: gwc-rise 220ms var(--gwc-ease) both; }

/* Submit: gold shine, navy text (hover fill + gold text come from style.css / gateway-theme.css) */
.gwc #ContactUsDetails .ContactUsBtn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 6px 0 0 !important;
    padding: 12px 24px; border-radius: 14px; font-size: 15px; font-weight: 600; letter-spacing: .08em;
    background: var(--gw-gold-shine); color: var(--gw-navy); box-shadow: var(--gw-gold-glow);
}
.gwc #ContactUsDetails .ContactUsBtn::before { content: none; }
.gwc #ContactUsDetails .ContactUsBtn .contactUsSubmitLabel::after { content: " \2192"; display: inline-block; margin-left: 6px; transition: transform 200ms var(--gwc-ease); }
.gwc #ContactUsDetails .ContactUsBtn:hover .contactUsSubmitLabel::after { transform: translateX(4px); }
.gwc #ContactUsDetails .ContactUsBtn:focus-visible { outline: 2px solid var(--gw-navy); outline-offset: 3px; }
.gwc #ContactUsDetails .ContactUsBtn:disabled,
.gwc #ContactUsDetails .ContactUsBtn[disabled] { opacity: .75; cursor: progress; }
.gwc #ContactUsDetails .ContactUsBtn .spinner-border { color: currentColor; }

.gwc .gwc-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.gwc .gwc-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--gw-slate); }
.gwc .gwc-trust li::before {
    content: ""; flex: 0 0 auto; width: 5px; height: 9px; margin: 0 3px 3px 2px;
    border-right: 2px solid var(--gw-success); border-bottom: 2px solid var(--gw-success); transform: rotate(45deg);
}

/* Success state (.book-consulting-done shown by JS) */
.gwc .book-consulting-done { padding: 12px 0 4px; animation: gwc-rise 260ms var(--gwc-ease) both; }
.gwc .book-consulting-done .complete-img { margin-bottom: 16px !important; }
.gwc .book-consulting-done .complete-img img { height: 120px !important; padding-right: 0 !important; object-fit: contain !important; }
.gwc .book-consulting-done h5 {
    margin: 0; font-family: var(--gw-font); font-size: 21px; line-height: 1.3; font-weight: 700;
    color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); background: none;
}
.gwc .gwc-done-sub { margin: 8px 0 16px; font-size: 14.5px; color: var(--gw-slate); }
.gwc .gwc-done-wa {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
    background: var(--gw-navy); color: var(--gw-white); font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease;
}
.gwc .gwc-done-wa .fa { font-size: 18px; color: var(--gw-gold); }
.gwc .gwc-done-wa:hover { background: var(--gw-navy-light); color: var(--gw-white); }
.gwc .gwc-done-wa:focus-visible { outline: 2px solid var(--gw-gold-dark); outline-offset: 3px; }

/* ==========================================================================
   3. Offices (white card)
   ========================================================================== */
.gwc .gwc-offices {
    padding: 28px 30px; border-radius: var(--gwc-radius);
    background: var(--gw-white); border: 1px solid var(--gwc-border); box-shadow: var(--gwc-shadow);
}
.gwc .gwc-offices .gwc-h2 { margin-top: 12px; }
.gwc .gwc-office-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gwc .gwc-office {
    display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--gw-ice);
    border: 1px solid transparent; transition: border-color 200ms ease;
}
.gwc .gwc-office:hover { border-color: rgba(var(--gw-gold-dark-rgb), .35); }
.gwc .gwc-office-ico {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--gw-navy); color: var(--gw-gold);
}
.gwc .gwc-office-txt { min-width: 0; }
.gwc .gwc-office-txt b { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; color: var(--gw-navy); }
.gwc .gwc-office-txt em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-gold-dark); }
.gwc .gwc-office-txt address { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--gw-slate); font-style: normal; }
.gwc .gwc-office-txt a { display: inline-flex; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--gw-navy); text-decoration: none; border-bottom: 2px solid rgba(var(--gw-gold-rgb), .7); }
.gwc .gwc-office-txt a:hover { color: var(--gw-gold-dark); border-bottom-color: var(--gw-gold-dark); }
.gwc .gwc-office-txt a:focus-visible { outline: 2px solid var(--gw-gold-dark); outline-offset: 3px; border-radius: 4px; }

/* ---- Entrance (one soft rise, staggered) ---- */
.gwc .gwc-intro, .gwc .gwc-form-col, .gwc .gwc-offices { animation: gwc-rise 420ms var(--gwc-ease) both; }
.gwc .gwc-form-col { animation-delay: 80ms; }
.gwc .gwc-offices { animation-delay: 160ms; }
@keyframes gwc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .gwc { padding: 20px 0 56px; }
    .gwc .gwc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "offices"; grid-template-rows: auto; gap: 18px; }
    .gwc .gwc-form-col { position: static; }
    .gwc .gwc-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gwc .gwc-q { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .gwc .gwc-q-go { display: none; }
}
@media (max-width: 640px) {
    .gwc .gwc-intro { padding: 28px 20px 22px; }
    .gwc .gwc-card.contact-form-div { padding: 26px 18px 20px; }
    .gwc .gwc-offices { padding: 22px 18px; }
    .gwc .gwc-sub { font-size: 15px; margin-bottom: 20px; }
    .gwc .gwc-quick { grid-template-columns: minmax(0, 1fr); }
    .gwc .gwc-q { flex-direction: row; align-items: center; min-height: 60px; padding: 10px 14px 10px 10px; }
    .gwc .gwc-q-go { display: inline; }
    .gwc .gwc-office-list { grid-template-columns: minmax(0, 1fr); }
    .gwc .breadcrumb { margin-bottom: 16px; font-size: 13px; }
}
@media (max-width: 380px) {
    .gwc .gwc-title { font-size: 30px; }
    .gwc .gwc-q-txt span { font-size: 13px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .gwc *:not(.spinner-border), .gwc *::before, .gwc *::after { animation: none !important; transition: none !important; }
    .gwc .gwc-q:hover { transform: none; }
}

/* Top row: intro (navy) and form (white) always the same height, edges aligned */
@media (min-width: 992px) {
    .gwc .gwc-grid { align-items: stretch; }
    .gwc .gwc-intro, .gwc .gwc-form-col { align-self: stretch; height: 100%; }
    .gwc .gwc-intro { display: flex; flex-direction: column; }
    .gwc .gwc-intro .gwc-promise { margin-top: auto; }
    .gwc .gwc-intro .gwc-quick { margin-bottom: 22px; }
    .gwc .gwc-form-col { display: flex; flex-direction: column; }
    .gwc .gwc-form-col > .gwc-card.contact-form-div { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
}
