/* =========================================
   1. MAIN LOGIN FORM STYLE
========================================= */
#sfo-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 35px 30px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 6px solid #e05a2b;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

#sfo-login-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

#sfo-login-container h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e05a2b;
    margin: 12px auto 0;
    border-radius: 2px;
}

#sfo-login-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    text-align: left;
    font-size: 16px;
}

.iti { width: 100%; margin-bottom: 25px; }

#sfo-phone-number, #sfo-otp-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eef2f7;
    border-radius: 8px;
    font-size: 18px;
    background-color: #f8fafd;
    color: #333;
    box-sizing: border-box;
}

#sfo-phone-number:focus, #sfo-otp-input:focus {
    border-color: #e05a2b;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(224, 90, 43, 0.15);
    outline: none;
}

.sfo-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#sfo-btn-send-otp { background: #e05a2b; }
#sfo-btn-send-otp:hover { background: #cf4d20; transform: translateY(-2px); }
#sfo-btn-verify { background: #28a745; }
#sfo-btn-verify:hover { background: #218838; transform: translateY(-2px); }
.sfo-btn:disabled { background: #bdc3c7 !important; cursor: not-allowed; transform: none; box-shadow: none; }

#sfo-step-otp p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    background: #fff4e6;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #e05a2b;
}

#sfo-display-phone { font-weight: 800; color: #e05a2b; }
#sfo-message { margin-top: 20px; font-size: 15px; font-weight: 600; }

/* =========================================
   2. CHECKOUT MODAL
========================================= */
#sfo-checkout-modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex; justify-content: center; align-items: center;
}

#sfo-checkout-modal {
    background: #fff;
    padding: 40px 30px;
    width: 90%; max-width: 420px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: sfoPopUp 0.4s ease-out;
}
@keyframes sfoPopUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

#sfo-checkout-modal h3 { margin-top: 0; color: #222; font-size: 24px; margin-bottom: 15px; }
#sfo-checkout-modal p { color: #666; font-size: 15px; margin-bottom: 30px; }
#sfo-checkout-modal p b { color: #e05a2b; }

#sfo-checkout-modal input[type="text"] {
    width: 80%; margin: 0 auto 25px auto; padding: 15px;
    border: 2px solid #e0e0e0; border-radius: 10px;
    font-size: 24px; letter-spacing: 10px; text-align: center;
    font-weight: 800; color: #333; background: #fafafa;
    display: block;
}
#sfo-checkout-modal input[type="text"]:focus { border-color: #28a745; background: #fff; outline: none; }

#sfo-checkout-send-otp { background: #e05a2b; }
#sfo-checkout-verify-btn { background: #28a745; }
.sfo-modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #ccc; }
.sfo-modal-close:hover { color: #e05a2b; }

#sfo-checkout-msg { margin-top: 20px; font-weight: 600; font-size: 14px; min-height: 50px; }

/* =========================================
   3. NEW SPINNER & TIMER
========================================= */
.sfo-resend-wrapper { margin-top: 15px; font-size: 14px; color: #666; }
.sfo-resend-link { color: #888; cursor: default; pointer-events: none; font-weight: 500; }
.sfo-resend-active { color: #e05a2b !important; cursor: pointer !important; pointer-events: auto !important; text-decoration: underline; font-weight: 700; }

/* THE LOADING SPINNER */
.sfo-spinner {
    border: 4px solid #f3f3f3; /* Light Grey */
    border-top: 4px solid #e05a2b; /* Theme Orange */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 5px auto;
    display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }