:root {
    --bg: #081326;
    --panel: #10213e;
    --panel-2: #11284d;
    --text: #ecf3ff;
    --muted: #bfd2f2;
    --accent: #00d4ff;
    --accent-2: #8a5bff;
    --success: #20d69c;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 0%, #12346a 0%, var(--bg) 45%);
}
.container { width: min(1120px, 92%); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 19, 38, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    width: 270px;
}
.brand img {
    width: 100%;
    max-width: 270px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    padding: 0;
    box-shadow: none;
}

.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: .45rem .65rem;
    border-radius: 999px;
    font-weight: 500;
}
.main-nav a.active,
.main-nav a:hover { color: #031020; background: linear-gradient(120deg, var(--accent), #80e7ff); }

.login-dropdown { position: relative; }
.login-dropdown::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    min-width: 180px;
    height: 10px;
}
.login-btn {
    border: 1px solid rgba(255,255,255,.2);
    background: #0f2446;
    color: #fff;
    border-radius: 999px;
    padding: .55rem .9rem;
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    display: none;
    overflow: hidden;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.login-dropdown:hover .dropdown-menu,
.login-dropdown.is-open .dropdown-menu,
.login-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: .7rem .85rem;
    color: #e3efff;
    text-decoration: none;
}
.dropdown-menu a:hover { background: #1a3766; }

.hero { padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 1.5rem; align-items: center; }
h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
p { color: var(--muted); line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    color: #031020;
    background: linear-gradient(120deg, var(--accent), #7ae8ff);
    border-radius: 10px;
    padding: .7rem 1rem;
    font-weight: 700;
}
.btn.alt { background: linear-gradient(120deg, var(--accent-2), #b28fff); color: #fff; }

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    padding: 1.1rem;
}
.hero-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: .8rem;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.stats strong { display: block; color: #fff; font-size: 1.35rem; }

.section { padding: 3rem 0; }
.section h2 { margin-top: 0; font-size: 1.8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.service i { color: var(--accent); font-size: 1.4rem; margin-bottom: .4rem; }
.service img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: .65rem;
    border: 1px solid rgba(255,255,255,.15);
}

form { display: grid; gap: .8rem; }
input, textarea, select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
    padding: .72rem .8rem;
    background: #0b1b35;
    color: #fff;
}
textarea { min-height: 130px; resize: vertical; }

.tracking-status { margin-top: 1rem; border-left: 4px solid var(--success); }
.status-pill {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .3px;
    color: #042117;
    background: #7cf2ca;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-weight: 700;
}
.timeline { margin: .8rem 0 0; padding-left: 1rem; }
.timeline li { margin-bottom: .45rem; color: #d6e6ff; }

.site-footer { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.1); background: #071325; }
.footer-grid { padding: 2rem 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.footer-grid p { margin: .4rem 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: .8rem 0 1rem; }

.account-opening .account-intro { max-width: 52rem; margin-bottom: 0; }
.account-opening .account-form-card { margin-top: 1.25rem; padding: 1.5rem; }
.account-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 12, 24, 0.72);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.account-overlay.is-visible { display: flex; }
.account-loader {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: account-spin .8s linear infinite;
}
@keyframes account-spin { to { transform: rotate(360deg); } }

.registration-mode {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .35rem;
    background: rgba(0,0,0,.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
}
.mode-tab {
    flex: 1 1 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.mode-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.mode-tab.active {
    color: #031020;
    background: linear-gradient(120deg, var(--accent), #7ae8ff);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 4px 14px rgba(0, 212, 255, .25);
}

.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.field-group.full, .otp-row.full, .flow-gst.full, .flow-aadhar.full { width: 100%; }

.form-columns-header {
    padding: .55rem .85rem;
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .2);
    border-radius: 10px;
    margin-bottom: .15rem;
}
.form-columns-header span {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}

.otp-row {
    display: grid;
    gap: 1rem;
    align-items: end;
}
.otp-row.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.otp-row .field-group.field-span-2 {
    grid-column: span 2;
}

.field-label-spacer {
    display: block;
    margin-bottom: .4rem;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    min-height: 1.25rem;
    line-height: 1.25rem;
}
.field-label-spacer[aria-hidden="true"] {
    visibility: hidden;
}

.field-group.field-col-status .status-col-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
    min-height: 46px;
}
.field-group.field-col-status .field-success,
.field-group.field-col-status .field-error,
.field-group.field-col-status .verified-badge {
    margin-top: 0;
    display: flex;
    align-items: center;
    line-height: 1.35;
}

.whatsapp-resend-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    width: 100%;
}
.whatsapp-resend-cell[hidden] { display: none !important; }
.whatsapp-resend-cell .whatsapp-resend-text {
    margin: 0;
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.3;
}
.whatsapp-resend-cell .btn {
    white-space: nowrap;
}
.field-group { display: flex; flex-direction: column; min-width: 0; }
.field-group label {
    display: block;
    margin-bottom: .4rem;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
}
.field-group.field-action .btn { margin-top: 0; min-height: 46px; }
.field-group.field-empty {
    visibility: hidden;
    pointer-events: none;
    min-height: 0;
}
.field-group.field-empty .field-label-spacer {
    visibility: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.hint-text { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; line-height: 1.5; }
.gst-status-row { margin-top: -.5rem; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.form-actions { padding-top: .25rem; border-top: 1px solid rgba(255,255,255,.08); }
.form-actions .btn { min-width: 200px; }

.checkbox-label {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    cursor: pointer;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}
.checkbox-label input { width: auto; margin-top: .25rem; flex-shrink: 0; }
.checkbox-label a { color: var(--accent); }
.field-error { color: #ff9a9a; display: block; margin-top: .3rem; font-size: .8rem; }
.field-success { color: var(--success); display: block; margin-top: .3rem; font-size: .8rem; }
.field-error[hidden], .field-success[hidden], .flow-aadhar[hidden] { display: none !important; }
.error-field { border-color: #ff6b6b !important; box-shadow: 0 0 0 1px rgba(255,107,107,.35); }
.btn-block { width: 100%; justify-content: center; }
.auth-row { margin-top: .25rem; }
.disabled-btn { opacity: .55; cursor: not-allowed; pointer-events: none; }

@media (max-width: 1100px) {
    .otp-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .form-columns-header.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .otp-row .field-group.field-span-2 { grid-column: span 2; }
}
@media (max-width: 900px) {
    .otp-row.cols-4,
    .form-columns-header.cols-4 { grid-template-columns: 1fr; }
    .otp-row .field-group.field-span-2 { grid-column: span 1; }
    .field-group.field-action .btn { width: 100%; }
    .mode-tab { flex: 1 1 100%; }
    .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .brand { width: 200px; }
    .brand img {
        max-width: 200px;
    }
}
