:root {
    --brand: #1e5758;
    --brand-d: #eae61c;
    --brand-lt: #EBF5FD;
    --brand2: #141628;
    --slate: #2C2E50;
    --muted: #6E7190;
    --border: #DDE0F5;
    --surface: #F4F6FE;
    --white: #FFFFFF;
    --success: rgb(4, 129, 87);
    --error: #EF4444;
    --fh: 'Sora', sans-serif;
    --fb: 'DM Sans', sans-serif;
    --sh: 0 2px 12px rgba(15, 23, 42, .07);
    --shm: 0 8px 32px rgba(15, 23, 42, .10);
    --shl: 0 20px 60px rgba(15, 23, 42, .14);
    --r: 12px;
    --rl: 20px;
    --rx: 28px;
    --tr: all .22s cubic-bezier(.4, 0, .2, 1);
}


.form-card {
    background: #fff;
    border-radius: var(--rx);
    box-shadow: var(--shl);
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 0;
}

.form-card-head {
    background: linear-gradient(135deg, #1e5758 0%, #eae61c 100%);
    padding: 15px 32px;
    position: relative;
    overflow: hidden;
}

.form-card-head::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(79, 165, 220, .10);
    pointer-events: none;
}

.form-card-head h3 {
    font-family: var(--fh);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    /*     margin-bottom: 5px;*/
    position: relative;
    z-index: 1;
    line-height: 30px;
}

.form-card-head p {
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
}

/* step progress bar */
.step-progress {
    display: flex;
    align-items: flex-start;
    padding: 14px 28px 10px;
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 0;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(28px + 22px);
    right: calc(28px + 22px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.sp-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.sp-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: var(--tr);
}

.sp-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    text-align: center;
}

.sp-item.active .sp-circle {
    background: linear-gradient(135deg, #eae61c, #1e5758);
    border-color: var(--brand-d);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(79, 165, 220, .18);
}

.sp-item.active .sp-label {
    color: var(--brand);
    font-weight: 600;
}

.sp-item.done .sp-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.sp-item.done .sp-label {
    color: var(--success);
}

/* step panels */
.steps-wrap {
    padding: 10px 32px 15px;
}

.step-panel {
    display: none;
    animation: apFade .28s ease;
}

.step-panel.active {
    display: block;
}

@keyframes apFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-section .step-heading {
    font-family: var(--fh);
    font-size: 16px !important;
    font-weight: 700;
    color: var(--brand) !important;
    margin-bottom: 10px !important;
}

.banner-section .steps-wrap .step-sub {
    font-size: 16px !important;
    color: var(--muted);
    margin-bottom: 10px !important;
}

/* ════════════════════════════════════════════════════════════ 5. FORM FIELDS & BUTTONS ════════════════════════════════════════════════════════════ */
.fg {
    margin-bottom: 0px;
    margin-top: 5px;
}

.fg label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 7px;
    letter-spacing: .1px;
}

.fg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fg-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fg.full {
    grid-column: 1 / -1;
}

.input-wrap {
    position: relative;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: var(--fb);
    font-size: 15px;
    color: var(--brand);
    background: var(--surface);
    outline: none;
    transition: var(--tr);
    appearance: none;
    -webkit-appearance: none;
}

.input-wrap input::placeholder {
    color: #94A3B8;
}

.input-wrap input:focus,
.input-wrap select:focus {
    border-color: var(--brand-d);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 165, 220, .12);
}

.input-wrap .ic {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

.input-wrap input.has-icon {
    padding-left: 42px;
}

.input-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    pointer-events: none;
}

.input-wrap:not(:has(select))::after {
    display: none;
}

.error-msg {
    font-size: 16px;
    color: var(--error);
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.error-msg.show {
    display: block;
}

.nice-select::before {
    display: none;
}

/* ── OTP Step Styles ── */
.otp-mobile-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F6FE;
    border: 1px solid #DDE0F5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    color: #2C2E50;
    margin-bottom: 20px;
    font-weight: 400;
}

.otp-mobile-display i {
    color: #1e5758;
    font-size: 18px;
}

.otp-edit-num {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #1e5758;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* 4-box OTP */
.otp-boxes-wrap {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 10px 0 6px;
}

.otp-box {
    width: 62px;
    height: 66px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #1A1C3A;
    background: #F4F6FE;
    border: 2px solid #DDE0F5;
    border-radius: 12px;
    outline: none;
    transition: all .22s ease;
    font-family: inherit;
}

.otp-box:focus {
    background: #fff;
    border-color: var(--brand-d);
    box-shadow: 0 0 0 4px rgba(97, 98, 219, .12);
    transform: scale(1.05);
}

.otp-box.otp-filled {
    background: #fff;
    border-color: var(--brand-d);
}

.otp-box.otp-error {
    border-color: #EF4444;
    background: #fff5f5;
}

/* Timer */
.otp-timer-wrap {
    text-align: center;
    font-size: 16px;
    color: #6E7190;
    margin: 10px 0 4px;
}

#step5 .fg-grid .fg {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}


.otp-timer-wrap strong {
    color: var(--brand);
    font-size: 17px;
}

/* Resend */
.otp-resend-wrap {
    text-align: center;
    font-size: 16px;
    color: #6E7190;
    margin: 6px 0;
}

.otp-resend-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-d);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* Demo hint */
.otp-demo-hint {
    text-align: center;
    font-size: 16px;
    color: #6E7190;
    background: rgba(79, 165, 220, .07);
    border: 1px dashed rgba(79, 165, 220, .35);
    border-radius: 10px;
    padding: 9px 16px;
    margin: 10px 0 4px;
}

.otp-demo-hint i {
    color: var(--brand-d);
    margin-right: 4px;
}

.otp-demo-hint strong {
    color: var(--brand);
    font-size: 17px;
}

/* step progress — 5 items need slightly smaller labels */
@media (max-width: 480px) {
    .otp-box {
        width: 50px;
        height: 56px;
        font-size: 20px;
    }

    .otp-boxes-wrap {
        gap: 8px;
    }
}


.consent-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    margin-top: 10px;
}

.consent-block label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

.consent-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--brand);
    cursor: pointer;
}

.consent-block span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 400;
}

.consent-block a {
    color: var(--brand-d);
    font-weight: 600;
}

.btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1e5758 0%, #eae61c 100%);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: var(--tr);
    box-shadow: 0 6px 22px rgba(97, 98, 219, .30);
    letter-spacing: .2px;
}

.btn-next:hover {
    background: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(97, 98, 219, .38);
}

.btn-next:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: var(--fb);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--tr);
}

.btn-back:hover {
    border-color: var(--slate);
    color: var(--brand);
}

/* ════════════════════════════════════════════════════════════ 6. REVIEW STEP & SUCCESS PANEL ════════════════════════════════════════════════════════════ */
#step5 .fg-grid .fg {
    margin-bottom: 0;
}

#step5 .fg label {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

#step5 .fg .input-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 11px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
    min-height: 46px;
    display: flex;
    align-items: center;
}

#step5 .fg .input-wrap::after {
    display: none;
}

#step5 .fg .input-wrap span {
    color: var(--brand);
    font-weight: 600;
}

.success-panel {
    display: none;
    text-align: center;
    padding: 48px 32px;
    animation: apFade .4s ease;
}

.success-panel.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(16, 185, 129, .30);
    animation: apPop .4s cubic-bezier(.4, 0, .2, 1);
}

@keyframes apPop {
    0% {
        transform: scale(.4);
        opacity: 0;
    }

    80% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-panel h3 {
    font-family: var(--fh);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 10px;
}

.success-panel p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 28px;
}

.success-ref {
    display: inline-block;
    background: #EBF5FD;
    border: 1px solid rgba(97, 98, 219, .25);
    border-radius: var(--r);
    padding: 14px 28px;
    font-family: var(--fh);
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-d);
    letter-spacing: 2px;
}

/* ── Step Progress — 5 steps responsive fix ── */

/* Desktop: 5 items, labels wrap allowed */
.sp-label {
    white-space: normal !important;
    text-align: center;
    font-size: 12px !important;
    line-height: 1.3;
    max-width: 70px;
}

/* The connector line spans full width correctly */
.step-progress::before {
    top: 22px !important;
}

/* Tablet (≤ 768px): smaller circles, shorter labels */
@media (max-width: 768px) {
    .step-progress {
        padding: 12px 10px 10px !important;
        gap: 0 !important;
        overflow: visible;
    }

    .step-progress::before {
        left: 18px !important;
        right: 18px !important;
        top: 22px !important;
    }

    .sp-item {
        flex: 1;
        min-width: 0;
    }

    .sp-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }

    .sp-label {
        font-size: 11px !important;
        white-space: normal !important;
        max-width: 58px;
        text-align: center;
        line-height: 1.3;
        word-break: break-word;
    }
}

/* Mobile (≤ 480px): even more compact */
@media (max-width: 480px) {
    .step-progress {
        padding: 10px 8px 8px !important;
    }

    .step-progress::before {
        left: 12px !important;
        right: 12px !important;
        top: 22px !important;
    }

    .sp-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        box-shadow: none !important;
    }

    .sp-item.active .sp-circle {
        box-shadow: 0 0 0 3px rgba(79, 165, 220, .18) !important;
    }

    .sp-label {
        font-size: 9px !important;
        max-width: 48px;
    }
    .banner-section.banner-style-two .outer-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Very small (≤ 360px): hide labels, show only circles */
@media (max-width: 360px) {
    .sp-label {
        display: none !important;
    }

    .step-progress {
        padding: 14px 8px !important;
    }
}