/* ============================================
   OTP Lead Capture Pro - Ultra Premium Popup
   Theme: Deep Navy #013B95 + Gold #D89410
   Version: 2.0 Premium
   ============================================ */

:root {
    --otp-primary: #013B95;
    --otp-primary-dark: #012d72;
    --otp-primary-light: #0148b8;
    --otp-gold: #D89410;
    --otp-gold-dark: #b57d0e;
    --otp-gold-light: #f0aa18;
    --otp-success: #16a34a;
    --otp-error: #dc2626;
    --otp-bg: #ffffff;
    --otp-text: #0f172a;
    --otp-text-light: #64748b;
    --otp-border: #e2e8f0;
    --otp-input-bg: #f8fafc;
    --otp-shadow: 0 40px 100px rgba(1, 59, 149, 0.3), 0 0 0 1px rgba(216, 148, 16, 0.15);
    --otp-radius: 20px;
    --otp-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Trigger Button ---- */
.otp-lead-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--otp-font);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
}

.otp-lead-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}
.otp-lead-trigger-btn:hover::before { left: 100%; }

.otp-btn-primary {
    background: linear-gradient(135deg, #013B95 0%, #0148b8 50%, #013B95 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 6px 24px rgba(1,59,149,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 2px solid rgba(216,148,16,0.35);
}
.otp-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 36px rgba(1,59,149,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    background-position: right center;
    color: white;
}
.otp-btn-primary:active { transform: translateY(-1px) scale(0.99); }

.otp-btn-secondary {
    background: transparent;
    color: var(--otp-primary);
    border: 2px solid var(--otp-primary);
}
.otp-btn-secondary:hover {
    background: var(--otp-primary);
    color: white;
    transform: translateY(-2px);
}

.otp-btn-small  { padding: 10px 22px; font-size: 13px; }
.otp-btn-medium { padding: 14px 32px; font-size: 15px; }
.otp-btn-large  { padding: 18px 40px; font-size: 17px; }
.otp-btn-icon   { display: flex; align-items: center; }

/* ---- Overlay ---- */
.otp-lead-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(1, 10, 30, 0.82);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.otp-lead-overlay.otp-active {
    display: flex;
    animation: otpOverlayIn 0.4s ease;
}

@keyframes otpOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal Container ---- */
.otp-lead-modal {
    background: var(--otp-bg);
    border-radius:5px;
    box-shadow: var(--otp-shadow);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: otpModalIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    border: 0px solid rgba(216,148,16,0.25);
}

@keyframes otpModalIn {
    from { transform: translateY(50px) scale(0.92); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---- Modal Header ---- */
.otp-modal-header {
    background: #003A94;
    padding: 28px 28px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative orbs */
.otp-modal-header::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(216,148,16,0.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.otp-modal-header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -30px;
    width: 130px; height: 130px;
    background: radial-gradient(circle, rgba(1,99,200,0.35) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* Shimmer line at top */
.otp-modal-header-top-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
   
}

.otp-header-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(216,148,16,0.18), rgba(216,148,16,0.06));
    border: 1.5px solid rgba(216,148,16,0.5);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(216,148,16,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}
.otp-lead-overlay.otp-active .otp-header-icon {
    transform: rotate(0deg);
}

.otp-modal-title {
    color: white !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 0 0px !important;
    padding: 0 !important;
    border: none !important;
    font-family: var(--otp-font) !important;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
	    font-family: "Poppins" !important;
}

.otp-modal-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 11.5px;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Gold divider */
.otp-modal-header-accent {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(216,148,16,0.4) 20%, #D89410 50%, rgba(216,148,16,0.4) 80%, transparent 100%);
}

/* ---- Close Button ---- */
.otp-modal-close {
   
    top: 14px; right: 14px;
    background: rgba(216,148,16,0.25) !important;
    border-color: rgba(216,148,16,0.5) !important;
    color: #f0aa18 !important;
    border-radius: 50%;
    width: 32px; height: 32px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
      margin-top: -15px;
    transition: all 0.25s;
    z-index: 10;
    font-size: 20px;
	float: right;
	margin-right: -15px;
    line-height: 1;
}
.otp-modal-close:hover {
    background: rgba(216,148,16,0.25);
    border-color: rgba(216,148,16,0.5);
    color: #f0aa18;
    transform: rotate(90deg);
}

/* ---- Step Dots ---- */
.otp-step-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0 0;
}
.otp-step-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #dde3ef;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.otp-step-dot.active {
    background: var(--otp-gold);
    width: 22px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(216,148,16,0.5);
}

/* ---- Steps ---- */
.otp-step { display: none; }
.otp-step.otp-step-active { display: block; animation: otpStepIn 0.35s ease; }

@keyframes otpStepIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Body ---- */
.otp-modal-body { padding: 22px 24px 26px; }

/* ---- Field Groups ---- */
.otp-field-group { margin-bottom: 14px; }

.otp-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--otp-text-light);
    margin-bottom: 4px;
    letter-spacing: 0.9px;
    
}

/* ---- Inputs ---- */
.otp-input {
    width: 100%;
    padding: 5px 10px;
    border: 1.5px solid #e8edf5;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--otp-font);
    color: var(--otp-text);
    background: #fafbff;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
    font-weight: 500;
}
.otp-input:hover {
    border-color: #c8d5e8;
    background: #f5f8ff;
}
.otp-input:focus {
    border-color: var(--otp-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(1,59,149,0.08), 0 2px 8px rgba(1,59,149,0.06);
}
.otp-input::placeholder { color: #bbc6d6; font-weight: 400; }

/* ---- Phone Field ---- */
.otp-phone-wrapper { display: flex; gap: 8px; align-items: stretch; }

.otp-country-code {
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px;
    background: #f0f4fa;
    border: 1.5px solid #e8edf5;
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    color: var(--otp-text);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.otp-phone-input { flex: 1; }

/* ---- Primary CTA Button ---- */
.otp-primary-btn {
    width: 100%;
    padding: 5px;
    background: linear-gradient(135deg, #c4840e 0%, #D89410 40%, #f0aa18 60%, #D89410 80%, #c4840e 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--otp-font);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: "Poppins" !important;
}
.otp-primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.otp-primary-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.otp-primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Back Button ---- */
.otp-back-btn {
    width: 100%;
    padding: 0px;
    background: #161616;
    color: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    font-size: 12px;
    font-family: var(--otp-font);
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    font-weight: 500;
}
.otp-back-btn:hover {
    color: var(--otp-primary);
    border-color: rgba(1,59,149,0.3);
    background: #eff4ff;
}

/* ---- Spinner ---- */
.otp-spinner { animation: otpSpin 0.8s linear infinite; }
@keyframes otpSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Error Alert ---- */
.otp-alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    animation: otpShake 0.4s ease;
}
@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.otp-alert-error {
    background: #fff1f1;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ---- OTP Sent Info Box ---- */
.otp-sent-info {
    text-align: center;
    padding: 16px;
    background: #fffbeb;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(216,148,16,0.15);
    box-shadow: inset 0 1px 3px rgba(1,59,149,0.04);
}
.otp-sent-icon { font-size: 30px; margin-bottom: 6px; }
.otp-sent-info p { color: var(--otp-text-light); font-size: 13px; margin: 0 0 4px; }
.otp-sent-info strong { font-size: 17px; color: var(--otp-primary); font-weight: 800; letter-spacing: 0.5px; }

/* ---- OTP Boxes ---- */
.otp-boxes-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-box {
    width: 40px;
    height: 40px;
    border: 1.5px solid #e2eaf6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--otp-primary);
    background: #fafbff;
    transition: all 0.25s ease;
    outline: none;
    caret-color: var(--otp-gold);
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.otp-box:focus {
    border-color: var(--otp-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(1,59,149,0.1), 0 4px 12px rgba(1,59,149,0.08);
    transform: scale(1.08) translateY(-2px);
}
.otp-box.otp-box-filled {
    border-color: var(--otp-gold);
    background: linear-gradient(135deg, #fffbeb, #fff8d8);
    color: var(--otp-primary);
    box-shadow: 0 0 0 2px rgba(216,148,16,0.2), 0 4px 10px rgba(216,148,16,0.12);
}

/* ---- Timer ---- */
.otp-timer-wrapper {
    text-align: center;
    margin: 14px 0;
    font-size: 13px;
    color: var(--otp-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.otp-countdown {
    font-weight: 700;
    color: var(--otp-primary);
    background: rgba(1,59,149,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}
#otp-timer-text { cursor: pointer; font-weight: 500; }
#otp-timer-text.otp-resend-active {
    color: var(--otp-gold-dark);
    text-decoration: underline;
    text-decoration-color: rgba(216,148,16,0.4);
    font-weight: 700;
}

/* ---- Privacy Note ---- */
.otp-privacy-note {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ---- Success Step ---- */
.otp-success-body { text-align: center; padding: 30px 24px 28px; }

.otp-success-animation {
    margin-bottom: 20px;
    position: relative;
}

.otp-success-circle {
    display: inline-block;
    filter: drop-shadow(0 4px 16px rgba(216,148,16,0.3));
}

.otp-checkmark {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    fill: none;
    animation: otpCheckmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.otp-checkmark-circle {
    stroke: var(--otp-gold);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    animation: otpCheckmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.otp-checkmark-check {
    transform-origin: 50% 50%;
    stroke: var(--otp-primary);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: otpCheckmarkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes otpCheckmarkStroke { 100% { stroke-dashoffset: 0; } }

.otp-success-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--otp-text) !important;
    margin: 0 0 10px !important;
    border: none !important;
    font-family: var(--otp-font) !important;
    letter-spacing: -0.3px;
}
.otp-success-msg {
    color: var(--otp-text-light);
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 22px;
}
.otp-success-details {
    background: #f0f5ff;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(216,148,16,0.18);
    text-align: left;
}
.otp-detail-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600;
    color: var(--otp-text);
}
.otp-detail-icon { font-size: 18px; }

/* ---- reCAPTCHA ---- */
#recaptcha-container { margin: 8px 0; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .otp-lead-modal { border-radius: 5px; }
    .otp-modal-header { padding: 22px 20px 18px; }
    .otp-modal-body { padding: 18px 18px 22px; }
    .otp-box { width: 36px; height: 44px; font-size: 18px; }
    .otp-boxes-wrapper { gap: 5px; }
}
