.otp-email-input {
    width: 100% !important;
    background: #f9fafb !important;
    border: 1px solid #e8eaed !important;
    border-radius: 10px;
    padding: 8px 0px 8px 25px !important;
    font-size: 14px;
    color: #111827;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    height:48px !important;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus, select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus
{
    color:#000 !important;
    -webkit-text-fill-color: #000 !important;
}
/* ═══════════════════════════════════════════════════════════
   checkout_otp_styles.css
   Flipkart-style OTP email verification modal
   Matches existing Mobec checkout light theme
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.otp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.otp-overlay.active {
    display: flex;
    animation: otpOverlayIn 0.22s ease;
}
@keyframes otpOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal Box ── */
.otp-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
    overflow: hidden;
    animation: otpModalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes otpModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Modal Header ── */
.otp-modal-header {
    background: #000;
    padding: 22px 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.otp-modal-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
}
.otp-modal-brand span { color: #05ff46; }
.otp-modal-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    /*width: 32px;*/
    /*height: 32px;*/
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    /*line-height: 1;*/
        padding: 5px 10px 5px 10px;
}
.otp-modal-close:hover { background: rgba(255,255,255,0.2); }

/* ── Step Indicator ── */
.otp-steps {
    display: flex;
    align-items: center;
    padding: 18px 28px 0;
    gap: 0;
}
.otp-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.3s;
    flex-shrink: 0;
}
.otp-step-dot.active {
    background: #000;
    border-color: #000;
    color: #05ff46;
    box-shadow: 0 0 0 4px rgba(5,255,70,0.15);
}
.otp-step-dot.done {
    background: #05ff46;
    border-color: #05ff46;
    color: #000;
}
.otp-step-dot.done::after {
    content: '✓';
    font-size: 13px;
    font-weight: 900;
}
.otp-step-dot:not(.done) .step-num { display: inline; }
.otp-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.4s;
}
.otp-step-line.done { background: #05ff46; }
.otp-step-labels {
    display: flex;
    padding: 6px 28px 0;
    gap: 0;
}
.otp-step-label {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    transition: color 0.3s;
}
.otp-step-label:first-child { text-align: left; }
.otp-step-label:last-child  { text-align: right; }
.otp-step-label.active { color: #000; }
.otp-step-label.done   { color: #05ff46; }

/* ── Modal Body ── */
.otp-modal-body {
    padding: 24px 28px 28px;
}

/* ── Section titles ── */
.otp-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.otp-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
    line-height: 1.5;
}
.otp-section-sub strong {
    color: #000;
    font-weight: 600;
}

/* ── Email Input ── */
.otp-email-field {
    position: relative;
    margin-bottom: 16px;
}
.otp-email-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.otp-email-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.otp-email-input-wrap .field-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

/*.otp-email-input:focus {*/
/*    border-color: #000;*/
/*    box-shadow: 0 0 0 3px rgba(5,255,70,0.12);*/
/*    background: #fff;*/
/*    color:#000;*/
/*}*/
.otp-email-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.otp-email-input.verified {
    border-color: #05ff46;
    background: #f0fff4;
    color: #111827;
    padding-right: 40px;
}
.otp-verified-tick {
    position: absolute;
    right: 14px;
    color: #05ff46;
    font-size: 16px;
    display: none;
}
.otp-email-input.verified + .otp-verified-tick { display: block; }

/* ── Error message ── */
.otp-field-error {
    font-size: 11.5px;
    color: #ef4444;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}
.otp-field-error.show { display: block; }

/* ── Send OTP Button ── */
.btn-send-otp {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-send-otp:hover:not(:disabled) {
    background: #fff;
    color: #000;
}
.btn-send-otp:active { transform: scale(0.98); }
.btn-send-otp:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner inside button */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    display: none;
    flex-shrink: 0;
}
.btn-spinner.dark {
    border-color: rgba(0,0,0,0.2);
    border-top-color: #000;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.loading .btn-spinner { display: block; }

/* ── OTP Panel (step 2) ── */
.otp-verify-panel {
    display: none;
}
.otp-verify-panel.show { display: block; }
.otp-email-panel { display: block; }
.otp-email-panel.hide { display: none; }

/* ── OTP Digit inputs ── */
.otp-digits-label {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}
.otp-digits-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}
.otp-digit {
    width: 52px;
    height: 58px;
    background: #f9fafb;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    font-family: 'Montserrat', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    caret-color: transparent;
}
.otp-digit:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(5,255,70,0.15);
    background: #fff;
}
.otp-digit.filled {
    border-color: #000;
    background: #fff;
    color: #000;
}
.otp-digit.error {
    border-color: #ef4444;
    background: #fff5f5;
    animation: otpShake 0.4s ease;
}
.otp-digit.success {
    border-color: #05ff46;
    background: #f0fff4;
}
@keyframes otpShake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

/* ── OTP Status message ── */
.otp-status-msg {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    min-height: 18px;
    transition: all 0.2s;
}
.otp-status-msg.error   { color: #ef4444; }
.otp-status-msg.success { color: #10b981; }
.otp-status-msg.info    { color: #6b7280; }

/* ── Verify Button ── */
.btn-verify-otp {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    margin-bottom: 14px;
}
.btn-verify-otp:hover:not(:disabled) { background: #fff; color: #000; }
.btn-verify-otp:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Resend row ── */
.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding-top: 4px;
}
.otp-resend-timer { font-weight: 600; color: #374151; }
.btn-resend-otp {
    background: none;
    border: none;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: underline;
    display: none;
    padding: 0;
    transition: color 0.2s;
}
.btn-resend-otp.show { display: inline; }
.btn-resend-otp:hover { color: #05ff46; }
.btn-change-email {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: underline;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.btn-change-email:hover { color: #000; }

/* ── Success state ── */
.otp-success-panel {
    display: none;
    text-align: center;
    padding: 20px 0 8px;
}
.otp-success-panel.show { display: block; }
.otp-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #05ff46 0%, #00cc38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 8px 24px rgba(5,255,70,0.3);
}
@keyframes successPop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.otp-success-icon i { font-size: 30px; color: #000; }
.otp-success-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.otp-success-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 22px;
}
.btn-proceed-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-proceed-checkout:hover { background: #fff; color: #000; }

/* ── Verified badge on checkout form email field ── */
.email-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fff4;
    border: 1px solid #05ff46;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}
.email-verify-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4ed;
    border: 1px solid rgba(0,0,0,0.15);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    cursor: pointer;
    transition: background 0.2s;
}
.email-verify-trigger:hover { background: #000; color: #fff; border-color: #000; }

/* ── Checkout form email row ── */
.email-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.email-field-row input { flex: 1; min-width: 0; }

/* ── Divider in modal ── */
.otp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #d1d5db;
    font-size: 11px;
}
.otp-divider::before, .otp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eaed;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
    .otp-modal { border-radius: 16px 16px 0 0; align-self: flex-end; margin-bottom: 0; }
    .otp-overlay { align-items: flex-end; padding: 0; }
    .otp-modal-body { padding: 20px 20px 28px; }
    .otp-modal-header { padding: 18px 20px; }
    .otp-digit { width: 44px; height: 52px; font-size: 20px; }
    .otp-digits-row { gap: 8px; }
}
