/* =================================================================
   NVN Registration — Multistep Form Styles
   Primary color from style.css (--primary-color: #0071A9)
   Modern minimalist field redesign + responsive
================================================================= */

/* ----------------------------------------------------------------
   1. Form container & rhythm
---------------------------------------------------------------- */
.nvn-multistep-form {
    --nvn-field-radius: 10px;
    --nvn-field-border: #d6dde6;
    --nvn-field-border-hover: #b9c4d0;
    --nvn-field-border-focus: var(--primary-color, #0071A9);
    --nvn-field-bg: #fff;
    --nvn-label-color: #364150;
    --nvn-muted: #6b7785;
    --nvn-error: #d8000c;
    --nvn-error-bg: #fdecee;
    --nvn-error-border: #f5c2c7;
    --nvn-success: #2EAE49;
    --nvn-step-gap: 22px;

    color: #2a3340;
    font-size: 15px;
    line-height: 1.55;
}

.nvn-multistep-form .row > [class*="col-"] {
    margin-top: 0;
}

/* Spacing between rows that hold inputs */
.nvn-multistep-form .nvn-ms-step-inner > [class*="col-"] {
    margin-bottom: var(--nvn-step-gap);
}

/* ----------------------------------------------------------------
   2. Labels
---------------------------------------------------------------- */
.nvn-multistep-form label {
    color: var(--nvn-label-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 0;
    line-height: 1.35;
}

.nvn-multistep-form label .text-danger {
    color: var(--nvn-error) !important;
    font-size: 14px !important;
    font-weight: 700;
    margin-left: 2px;
}

/* Inline labels for radios/checkboxes */
.nvn-multistep-form label.d-flex {
    margin-bottom: 0;
    font-weight: 500;
    color: #2a3340;
}

/* ----------------------------------------------------------------
   3. Inputs / Selects / Textareas — minimalist style
---------------------------------------------------------------- */
.nvn-multistep-form input[type="text"],
.nvn-multistep-form input[type="email"],
.nvn-multistep-form input[type="password"],
.nvn-multistep-form input[type="tel"],
.nvn-multistep-form input[type="number"],
.nvn-multistep-form input[type="date"],
.nvn-multistep-form input[type="url"],
.nvn-multistep-form select,
.nvn-multistep-form textarea {
    width: 100%;
    background: var(--nvn-field-bg);
    border: 1.5px solid var(--nvn-field-border);
    border-radius: var(--nvn-field-radius);
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0;
}

.nvn-multistep-form input::placeholder,
.nvn-multistep-form textarea::placeholder {
    color: #9aa3af;
    opacity: 1;
}

.nvn-multistep-form input:hover,
.nvn-multistep-form select:hover,
.nvn-multistep-form textarea:hover {
    border-color: var(--nvn-field-border-hover);
}

.nvn-multistep-form input:focus,
.nvn-multistep-form select:focus,
.nvn-multistep-form textarea:focus {
    border-color: var(--nvn-field-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 169, 0.12);
}

/* Date field consistency (height differs across browsers) */
.nvn-multistep-form input[type="date"] {
    padding: 10px 14px;
    min-height: 44px;
}

/* Selects: chevron arrow */
.nvn-multistep-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
    background-color: var(--nvn-field-bg);
}

.nvn-multistep-form.rtl select,
.rtl .nvn-multistep-form select {
    background-position: left 14px center;
    padding-right: 14px;
    padding-left: 38px;
}

.nvn-multistep-form select.bg-silver {
    background-color: var(--nvn-field-bg) !important;
}

/* Ensure select2 widgets visually match the input fields */
.nvn-multistep-form .select2-container .select2-selection--single {
    height: 44px;
    border: 1.5px solid var(--nvn-field-border) !important;
    border-radius: var(--nvn-field-radius) !important;
    background: var(--nvn-field-bg) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none !important;
}
.nvn-multistep-form .select2-container .select2-selection--single:hover {
    border-color: var(--nvn-field-border-hover) !important;
}
.nvn-multistep-form .select2-container--open .select2-selection--single,
.nvn-multistep-form .select2-container--focus .select2-selection--single {
    border-color: var(--nvn-field-border-focus) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 169, 0.12) !important;
    outline: none;
}
.nvn-multistep-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    padding-left: 14px;
    padding-right: 28px;
    color: #1f2937;
    font-size: 15px;
}
.nvn-multistep-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}
.nvn-multistep-form .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #000;
}

/* Error-state mirror for select2 wrappers (set by JS sync()) */
.nvn-multistep-form .select2-container.has-error .select2-selection--single {
    border-color: var(--nvn-error) !important;
    background: #fff7f8 !important;
}
.nvn-multistep-form .select2-container.is-valid .select2-selection--single {
    border-color: var(--nvn-success) !important;
}

/* Dropdown panel — match radius & subtle shadow */
.select2-container--default .select2-dropdown {
    border: 1.5px solid var(--primary-color, #0071A9) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(15, 35, 55, 0.12);
    overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e2eaf1 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color, #0071A9) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 169, 0.10) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary-color, #0071A9) !important;
    color: #fff !important;
}
.nvn-multistep-form.rtl .select2-container .select2-selection--single .select2-selection__rendered,
.rtl .nvn-multistep-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 28px;
    padding-right: 14px;
}
.nvn-multistep-form.rtl .select2-container .select2-selection--single .select2-selection__arrow,
.rtl .nvn-multistep-form .select2-container .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 8px;
}

/* ----------------------------------------------------------------
   4. Radio / Checkbox — modern accent
---------------------------------------------------------------- */
.nvn-multistep-form input[type="radio"],
.nvn-multistep-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #0071A9);
    border-radius: 4px;
    cursor: pointer;
    margin-right: 6px;
    flex-shrink: 0;
}

.nvn-multistep-form .tutor-form-group.d-flex.gap-4 label {
    background: #fbfcfd;
    border: 1.5px solid var(--nvn-field-border);
    padding: 9px 16px;
    border-radius: var(--nvn-field-radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin: 0;
}

.nvn-multistep-form .tutor-form-group.d-flex.gap-4 label:hover {
    border-color: var(--nvn-field-border-hover);
    background: #f5f8fb;
}

.nvn-multistep-form .tutor-form-group.d-flex.gap-4 label:has(input:checked) {
    border-color: var(--primary-color, #0071A9);
    background: rgba(0, 113, 169, 0.06);
    color: var(--primary-color, #0071A9);
}

/* Password toggle button */
.nvn-multistep-form .password-wrapper {
    position: relative;
}
.nvn-multistep-form .password-wrapper .toggle-pwd {
    color: var(--nvn-muted);
    transition: color 0.15s;
}
.nvn-multistep-form .password-wrapper .toggle-pwd:hover {
    color: var(--primary-color, #0071A9);
}

/* ----------------------------------------------------------------
   5. Form group spacing
---------------------------------------------------------------- */
.nvn-multistep-form .tutor-form-group {
    margin-bottom: 0;
}

.nvn-multistep-form .tutor-form-group + .tutor-form-group {
    margin-top: 8px;
}

/* ----------------------------------------------------------------
   6. Section heading inside step
---------------------------------------------------------------- */
.nvn-multistep-form .nvn-ms-step > .nvn-ms-step-inner > .col-12 > h3.fw-bold,
.nvn-multistep-form .nvn-ms-step > .nvn-ms-step-inner > div > h3.fw-bold,
.nvn-multistep-form .nvn-ms-step > .col-12 > h3.fw-bold,
.nvn-multistep-form .nvn-ms-step > div > h3.fw-bold {
    /* Hide original section header — we render the active title in the
       progress header. Keep DOM intact for legacy. */
    display: none;
}

/* ----------------------------------------------------------------
   7. Progress header — sticky so it stays visible across all steps
---------------------------------------------------------------- */
.nvn-ms-progress {
    position: sticky;
    top: var(--nvn-progress-top-offset, 0px);
    z-index: 30;
    margin: 18px 0 28px;
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fb 100%);
    border: 1px solid #e2eaf1;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 35, 55, 0.04);
    backdrop-filter: saturate(160%);
    box-sizing: border-box;
}
/* When inserted OUTSIDE the form (default), the progress is a sibling
   of the form. Make sure it spans the full available width and doesn't
   inherit any column/row width constraints. */
.nvn-ms-progress--external {
    width: 100%;
    display: block;
    flex: none;
}
/* When the user has scrolled and the progress is pinned, deepen the
   shadow slightly so it visually separates from the form content. */
.nvn-ms-progress.is-pinned {
    box-shadow: 0 6px 18px rgba(15, 35, 55, 0.12);
    border-radius: 0 0 16px 16px;
    margin-top: 0;
}
.nvn-ms-progress-sentinel {
    /* Marker for IntersectionObserver — invisible. */
    height: 1px;
    margin: 0;
    padding: 0;
}

.nvn-ms-progress-bar-wrap {
    position: relative;
    margin-bottom: 16px;
    padding: 0 18px;
}

.nvn-ms-progress-track {
    position: relative;
    height: 5px;
    background: #e3eaf2;
    border-radius: 999px;
    overflow: hidden;
}

.nvn-ms-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(
        90deg,
        var(--primary-color, #0071A9),
        var(--secondary-color, #2EAE49)
    );
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nvn-ms-progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.nvn-ms-step-item {
    flex: 1 1 0;
    min-width: 80px;
    text-align: center;
    cursor: default;
    padding: 4px 2px;
    transition: opacity 0.25s;
    opacity: 0.65;
    user-select: none;
}

.nvn-ms-step-item.is-active,
.nvn-ms-step-item.is-completed {
    opacity: 1;
}

.nvn-ms-step-item.is-clickable {
    cursor: pointer;
}

.nvn-ms-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cfd8e0;
    color: #6b7785;
    font-weight: 700;
    font-size: 13px;
    margin: 0 auto 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nvn-ms-step-item.is-active .nvn-ms-step-circle {
    background: var(--primary-color, #0071A9);
    border-color: var(--primary-color, #0071A9);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 169, 0.18);
}

.nvn-ms-step-item.is-completed .nvn-ms-step-circle {
    background: var(--secondary-color, #2EAE49);
    border-color: var(--secondary-color, #2EAE49);
    color: #fff;
}

.nvn-ms-step-item.is-completed .nvn-ms-step-circle::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
}
.nvn-ms-step-item.is-completed .nvn-ms-step-num {
    display: none;
}

.nvn-ms-step-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7785;
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
}
.nvn-ms-step-item.is-active .nvn-ms-step-title {
    color: var(--primary-color, #0071A9);
}
.nvn-ms-step-item.is-completed .nvn-ms-step-title {
    color: var(--secondary-color, #2EAE49);
}

.nvn-ms-progress-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7785;
    flex-wrap: wrap;
    gap: 8px;
}
.nvn-ms-progress-counter strong {
    color: var(--primary-color, #0071A9);
}
.nvn-ms-progress-percent {
    font-weight: 700;
    color: var(--primary-color, #0071A9);
}

/* ----------------------------------------------------------------
   8. Step transitions
---------------------------------------------------------------- */
/* Hide every wrapped step by default; only the active one is shown.
   `!important` is necessary to defeat Bootstrap's d-flex / d-block
   utility classes that may live on the same element. */
.nvn-multistep-form .nvn-ms-step,
.nvn-ms-step {
    display: none !important;
    animation: nvnMsFade 0.32s ease;
}

.nvn-multistep-form .nvn-ms-step.is-active,
.nvn-ms-step.is-active {
    display: block !important;
}

@keyframes nvnMsFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   9. Field error / valid states (real-time)
   IMPORTANT: every error / availability message is forced to render
   on its OWN row directly UNDER the field — even when the parent is
   a flex container (radio groups, dial-code + phone, etc.).
---------------------------------------------------------------- */
.nvn-multistep-form .nvn-ms-error-msg {
    display: none;
    color: var(--nvn-error);
    background: var(--nvn-error-bg);
    border: 1px solid var(--nvn-error-border);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 6px;

    /* Force onto its own line in every layout context */
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    order: 99;
    box-sizing: border-box;
}
.nvn-multistep-form .has-error .nvn-ms-error-msg:not(:empty) {
    display: block;
}

.nvn-multistep-form .has-error input,
.nvn-multistep-form .has-error select,
.nvn-multistep-form .has-error textarea {
    border-color: var(--nvn-error) !important;
    background: #fff7f8;
}
.nvn-multistep-form .has-error input:focus,
.nvn-multistep-form .has-error select:focus,
.nvn-multistep-form .has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(216, 0, 12, 0.10) !important;
}
.nvn-multistep-form .has-error .select2-selection {
    border-color: var(--nvn-error) !important;
}

.nvn-multistep-form .is-valid input:not([type=radio]):not([type=checkbox]),
.nvn-multistep-form .is-valid select,
.nvn-multistep-form .is-valid textarea {
    border-color: var(--nvn-success) !important;
}

/* If a flex-row form group becomes errored, also turn it into a wrap
   container so the error message can break to a new line below the
   inputs (e.g. radio gender row, dial code + phone row). */
.nvn-multistep-form .has-error.d-flex,
.nvn-multistep-form .tutor-form-group.d-flex.has-error {
    flex-wrap: wrap;
}

/* Live availability messages (existing template ids) — same forced
   bottom-row layout. !important is needed to defeat the inline
   `style="display: none;"` already present in the templates. */
.nvn-multistep-form #email-notexist-msg,
.nvn-multistep-form #email-exist-msg,
.nvn-multistep-form #username-notexist-msg,
.nvn-multistep-form #username-exist-msg {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    border-width: 1px;
    border-style: solid;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    order: 99;
    box-sizing: border-box;
}
.nvn-multistep-form #email-notexist-msg.is-shown,
.nvn-multistep-form #username-notexist-msg.is-shown {
    display: block !important;
    color: var(--nvn-error);
    background: var(--nvn-error-bg);
    border-color: var(--nvn-error-border);
}
.nvn-multistep-form #email-exist-msg.is-shown,
.nvn-multistep-form #username-exist-msg.is-shown {
    display: block !important;
    color: var(--nvn-success);
    background: #e7f7ec;
    border-color: #b7e1c1;
}

/* ----------------------------------------------------------------
   10. Controls (Prev / Next / Submit)
---------------------------------------------------------------- */
.nvn-ms-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e3eaf2;
    flex-wrap: wrap;
}

.nvn-ms-controls .nvn-ms-btn {
    min-width: 130px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.18s, background 0.18s, color 0.18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.nvn-ms-controls .nvn-ms-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 113, 169, 0.18);
}

.nvn-ms-btn-prev {
    background: #fff;
    color: var(--primary-color, #0071A9);
    border-color: var(--primary-color, #0071A9);
}
.nvn-ms-btn-prev:hover {
    background: var(--primary-color, #0071A9);
    color: #fff;
}

.nvn-ms-btn-next {
    background: var(--primary-color, #0071A9);
    color: #fff;
}
.nvn-ms-btn-next:hover {
    background: #005a87;
}

.nvn-ms-btn-submit {
    background: var(--secondary-color, #2EAE49);
    color: #fff;
}
.nvn-ms-btn-submit:hover {
    background: #248d3a;
}

.nvn-ms-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nvn-ms-controls-spacer {
    flex: 1;
}

.nvn-multistep-form .nvn-original-submit {
    display: none !important;
}

/* ----------------------------------------------------------------
   11. Step error banner
---------------------------------------------------------------- */
.nvn-ms-step-banner {
    display: none;
    background: var(--nvn-error-bg);
    border: 1px solid var(--nvn-error-border);
    color: #842029;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.4;
}
.nvn-ms-step-banner.is-shown {
    display: block;
    animation: nvnMsFade 0.25s ease;
}

/* ----------------------------------------------------------------
   12. OTP modal
---------------------------------------------------------------- */
.nvn-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 55, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: nvnMsFade 0.18s ease;
}
.nvn-otp-modal {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 28px 26px 24px;
    text-align: center;
    position: relative;
    animation: nvnMsFade 0.25s ease;
}
.nvn-otp-modal h3 {
    color: var(--primary-color, #0071A9);
    margin: 8px 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.nvn-otp-modal p {
    color: var(--nvn-muted);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}
.nvn-otp-modal .nvn-otp-email {
    color: #1f2937;
    font-weight: 600;
    word-break: break-all;
}
.nvn-otp-modal .nvn-otp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 113, 169, 0.1);
    color: var(--primary-color, #0071A9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 8px;
}
.nvn-otp-input-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    direction: ltr;
}
.nvn-otp-digit {
    width: 46px;
    height: 54px;
    border: 1.5px solid var(--nvn-field-border);
    border-radius: 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    -moz-appearance: textfield;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    border-color: var(--primary-color, #0071A9);
    box-shadow: 0 0 0 4px rgba(0, 113, 169, 0.12);
}
.nvn-otp-digit::-webkit-outer-spin-button,
.nvn-otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nvn-otp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
    flex-wrap: wrap;
}
.nvn-otp-btn {
    padding: 11px 22px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: transform 0.12s, background 0.18s, color 0.18s;
    min-width: 130px;
}
.nvn-otp-btn-primary {
    background: var(--primary-color, #0071A9);
    color: #fff;
}
.nvn-otp-btn-primary:hover {
    background: #005a87;
}
.nvn-otp-btn-secondary {
    background: #fff;
    color: var(--primary-color, #0071A9);
    border-color: var(--primary-color, #0071A9);
}
.nvn-otp-btn-secondary:hover {
    background: rgba(0, 113, 169, 0.06);
}
.nvn-otp-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
.nvn-otp-resend {
    margin-top: 16px;
    font-size: 13px;
    color: var(--nvn-muted);
}
.nvn-otp-resend a {
    color: var(--primary-color, #0071A9);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}
.nvn-otp-resend a:hover {
    text-decoration: underline;
}
.nvn-otp-resend a[aria-disabled="true"] {
    color: var(--nvn-muted);
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
.nvn-otp-dev-banner {
    background: #fff8d6;
    border: 1px dashed #d4a017;
    color: #6b4f00;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
}
.nvn-otp-dev-banner strong { color: #6b4f00; }
.nvn-otp-dev-code {
    display: inline-block;
    margin-left: 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    color: #0071A9;
    letter-spacing: 2px;
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

.nvn-otp-error {
    display: none;
    color: var(--nvn-error);
    background: var(--nvn-error-bg);
    border: 1px solid var(--nvn-error-border);
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}
.nvn-otp-error.is-shown { display: block; }
.nvn-otp-success {
    display: none;
    color: var(--nvn-success);
    background: #e7f7ec;
    border: 1px solid #b7e1c1;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}
.nvn-otp-success.is-shown { display: block; }

.nvn-otp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--nvn-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.nvn-otp-close:hover { color: #1f2937; }
.nvn-multistep-form.rtl ~ .nvn-otp-overlay .nvn-otp-close,
.rtl .nvn-otp-modal .nvn-otp-close {
    right: auto;
    left: 12px;
}

/* ----------------------------------------------------------------
   13. Loading spinner inside buttons
---------------------------------------------------------------- */
.nvn-ms-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nvnSpin 0.8s linear infinite;
}
@keyframes nvnSpin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   14. Responsive
---------------------------------------------------------------- */
@media (max-width: 991px) {
    .nvn-ms-progress {
        padding: 16px 14px;
    }
}

@media (max-width: 767px) {
    .nvn-multistep-form {
        font-size: 14.5px;
        --nvn-step-gap: 16px;
    }

    .nvn-multistep-form input[type="text"],
    .nvn-multistep-form input[type="email"],
    .nvn-multistep-form input[type="password"],
    .nvn-multistep-form input[type="tel"],
    .nvn-multistep-form input[type="number"],
    .nvn-multistep-form input[type="date"],
    .nvn-multistep-form select,
    .nvn-multistep-form textarea {
        padding: 10px 12px;
        font-size: 15px; /* keep ≥16 on iOS to suppress zoom; we use 15 + transform if needed */
    }

    .nvn-multistep-form label {
        font-size: 13.5px;
    }

    .nvn-ms-progress {
        padding: 14px 10px;
        margin: 14px 0 22px;
    }
    .nvn-ms-progress-bar-wrap {
        padding: 0 4px;
    }
    .nvn-ms-step-title {
        font-size: 11px;
    }
    .nvn-ms-step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .nvn-ms-step-item {
        min-width: 60px;
    }

    .nvn-ms-controls .nvn-ms-btn {
        min-width: 0;
        flex: 1 1 calc(50% - 6px);
        padding: 11px 14px;
        font-size: 14px;
    }
    .nvn-ms-controls-spacer {
        display: none;
    }

    .nvn-otp-modal {
        padding: 22px 18px 18px;
    }
    .nvn-otp-digit {
        width: 38px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nvn-ms-step-title { display: none; }
    .nvn-ms-step-circle { margin-bottom: 0; }
    .nvn-ms-step-item { min-width: 36px; }
}

/* ----------------------------------------------------------------
   15. RTL adjustments
---------------------------------------------------------------- */
.nvn-multistep-form.rtl,
.rtl .nvn-multistep-form {
    direction: rtl;
    text-align: right;
}
.nvn-multistep-form.rtl label .text-danger,
.rtl .nvn-multistep-form label .text-danger {
    margin-left: 0;
    margin-right: 2px;
}
.nvn-multistep-form.rtl .nvn-ms-progress-fill,
.rtl .nvn-multistep-form .nvn-ms-progress-fill {
    inset: 0 0 0 auto;
}
