/* =========================================
   1. LOGIN FORM STYLES (Keep Existing)
   ========================================= */

/* The hidden form container */
#bd-otp-login-form {
    display: none;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

/* The "Switch to OTP" Link */
.bd-otp-switch-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    cursor: pointer;
    color: #333; 
    text-decoration: underline;
    transition: opacity 0.3s;
}

.bd-otp-switch-link:hover {
    opacity: 0.8;
}

/* Global Messages */
.bd-otp-success-msg { color: #4caf50; font-size: 13px; margin-top: 5px; display: block; }
.bd-otp-error-msg { color: #e2401c; font-size: 13px; margin-top: 5px; display: block; }


/* =========================================
   2. CHECKOUT VERIFICATION STYLES (New)
   ========================================= */

/* Wrapper inside the Phone Field */
#bd_checkout_otp_wrapper {
    margin-top: 8px;
    clear: both;
    position: relative;
}

/* The Main "Verify Phone Number" Button (OPTICOBD BRAND BLUE GRADIENT) */
#bd_checkout_send_otp {
    background-image: linear-gradient(to right, #0f3a62 0%, #1d619e 51%, #0f3a62 100%);
    margin: 15px 0 10px 0;
    padding: 15px 20px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white !important;
    box-shadow: 0 4px 15px rgba(15, 58, 98, 0.3);
    border-radius: 8px;
    display: block;
    width: 100%;
    outline: none;
    border: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: btn-pulse 2s infinite; 
}

#bd_checkout_send_otp:hover {
    background-position: right center; 
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(15, 58, 98, 0.5);
}

/* Subtle pulse animation for the button */
@keyframes btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* --- The Expanded Area (Input + Verify Button) --- */
#bd_checkout_otp_container {
    display: none; /* Hidden by default */
    margin-top: 10px;
    background: #fdfdfd;
    padding: 10px;
    border: 1px dashed #d1d1d1;
    border-radius: 5px;
}

/* Flexbox to align Input and Verify Button side-by-side */
.bd-otp-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* The OTP Input Field */
#bd_checkout_otp_input {
    flex: 1; /* Takes available space */
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    height: 40px; /* Match button height */
}

/* The "Verify" Button (OPTICOBD BRAND GOLD) */
#bd_checkout_verify_btn {
    background-color: #c59e55 !important; /* Brand Gold */
    color: white !important;
    border: none;
    height: 40px;
    padding: 0 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
    transition: background 0.3s;
}

#bd_checkout_verify_btn:hover {
    background-color: #ab8645 !important; /* Darker Gold on hover */
}

/* --- Timer & Resend Link --- */
.bd-otp-timer-area {
    font-size: 12px;
    margin-top: 8px;
    color: #777;
    text-align: center;
}

/* The "Send OTP Again" Link */
.bd-resend-link {
    color: #c59e55; /* Brand Gold */
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    display: none; 
}
.bd-resend-link:hover {
    text-decoration: none;
    color: #0f3a62; /* Turns Blue on hover */
}

/* --- Messages --- */
.bd-otp-error { 
    color: #e2401c; 
    font-size: 12px; 
    display: block; 
    margin-top: 5px; 
    font-weight: 500;
}

.bd-otp-success { 
    color: #4caf50; 
    font-size: 13px; 
    display: block; 
    margin-top: 5px; 
    font-weight: bold; 
}

/* Verified Badge (Replaces button when done) */
.bd-verified-badge {
    color: #4caf50;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}