/* Multi-Step Form Styles */
/* Using theme colors from advanced-checkout.css */

.msf-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Dark Theme (Default) */
.msf-container.msf-theme-dark {
    background: #0F1A2F;
    color: #ffffff;
}

/* Light Theme */
.msf-container.msf-theme-light {
    background: #ffffff;
    color: #333333;
}

/* Email Step */
.msf-email-step {
    width: 100%;
}

.msf-email-step .msf-form-wrapper {
    padding: 25px 30px;
}

/* Login Step */
.msf-login-step {
    width: 100%;
}

.msf-login-step .msf-form-wrapper {
    padding: 25px 30px;
}

/* Main Form */
.msf-main-form {
    width: 100%;
}

/* Form Wrapper */
.msf-form-wrapper {
    background: #172842;
    border: 1px solid #223047;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
}

.msf-theme-light .msf-form-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Header - Hidden for cleaner UI */
.msf-form-header {
    display: none;
}

/* Progress Bar */
.msf-progress-bar {
    margin-bottom: 30px;
    padding: 0 20px;
}

.msf-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.msf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.msf-progress-step.msf-step-active {
    opacity: 1;
}

.msf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #223047;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.msf-progress-step.msf-step-active .msf-step-number {
    background: #00C8C8;
    border-color: #00C8C8;
    color: #ffffff;
}

.msf-step-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.msf-progress-line {
    flex: 1;
    height: 2px;
    background: #223047;
    max-width: 100px;
    transition: background 0.3s ease;
}

.msf-progress-steps .msf-progress-step.msf-step-active + .msf-progress-line {
    background: #00C8C8;
}

/* Email Step - Reduced Spacing */
.msf-email-step .msf-form-body {
    min-height: auto;
    padding: 0;
}

.msf-email-step .msf-field-group {
    margin-bottom: 20px;
}

.msf-email-step .msf-form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #223047;
}

/* Form Body */
.msf-form-body {
    min-height: auto;
    position: relative;
    padding: 0;
}

/* Steps */
.msf-step {
    display: block;
}

.msf-step.active {
    display: block;
}

/* Field Groups */
.msf-field-group {
    margin-bottom: 20px;
}

.msf-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.msf-theme-light .msf-label {
    color: #333333;
}

/* Input Fields */
.msf-input {
    width: 100%;
    padding: 18px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 56px;
    line-height: 1.5;
}

/* Email input - white background */
.msf-step-0 .msf-input {
    background: #ffffff;
    color: #000000;
    border-color: #ddd;
}

/* Form inputs - dark background */
.msf-main-form .msf-input {
    background: #0F1A2F;
    color: #ffffff;
    border-color: #333;
}

.msf-theme-dark .msf-input {
    background: #0F1A2F;
    color: #ffffff;
    border-color: #333;
}

.msf-input.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.msf-input:focus {
    outline: none;
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.2);
}

.msf-theme-light .msf-input {
    background: #ffffff;
    border-color: #e9ecef;
    color: #333333;
}

.msf-theme-light .msf-input:focus {
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.1);
}

.msf-input::placeholder {
    color: #bbbbbb;
}

.msf-theme-light .msf-input::placeholder {
    color: #999999;
}

.msf-input.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Phone Field with Country Code */
.msf-phone-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.msf-country-code-wrapper {
    position: relative;
    min-width: 140px;
    width: 140px;
}

.msf-country-code-search {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 10px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 16px;
    background: #0F1A2F;
    color: #ffffff;
    display: none;
    z-index: 20;
    min-height: 56px;
    cursor: text;
}

.msf-country-code-search:focus {
    outline: none;
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.2);
}

.msf-country-code-search[readonly] {
    cursor: pointer;
    background-color: #0F1A2F;
}

.msf-country-code {
    width: 100%;
    padding: 18px 35px 18px 10px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 16px;
    background: #0F1A2F;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    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='%23ffffff' 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 10px center;
    background-size: 16px;
    min-height: 56px;
    line-height: 1.5;
}

.msf-country-code:focus {
    outline: none;
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.2);
}

.msf-theme-dark .msf-country-code {
    background: #0F1A2F;
    color: #ffffff;
    border-color: #333;
}

.msf-country-code:focus {
    outline: none;
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.2);
}

.msf-theme-light .msf-country-code {
    background-color: #ffffff;
    border-color: #e9ecef;
    color: #333333;
    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='%23333' 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");
}

.msf-theme-light .msf-country-code:focus {
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.1);
}

.msf-phone-input {
    flex: 1;
    background: #0F1A2F;
    color: #ffffff;
    border-color: #333;
}

.msf-theme-dark .msf-phone-input {
    background: #0F1A2F;
    color: #ffffff;
    border-color: #333;
}

/* OTP Input */
.msf-otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    border-color: #ff6b6b;
}

.msf-otp-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Field Hint */
.msf-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9ca3af;
}

/* Error Message */
.msf-error-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ff6b6b;
    min-height: 16px;
}

/* Password Wrapper */
.msf-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.msf-password-input {
    width: 100%;
    padding-right: 50px;
    min-height: 56px;
}

.msf-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 36px;
    height: 36px;
    color: #ff6b6b;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.msf-password-toggle:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.msf-password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.msf-password-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* OTP Actions */
.msf-otp-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.msf-otp-timer {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 14px;
    margin-left: auto;
}

/* Verification Status */
.msf-verification-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.msf-verifying-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #00C8C8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.msf-verifying-text {
    color: #9ca3af;
    font-size: 14px;
}

.msf-otp-info {
    margin-top: 10px;
}

.msf-info-text {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

.msf-otp-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.msf-otp-status.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10B981;
    color: #10B981;
}

.msf-otp-status.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* Form Footer */
.msf-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.msf-theme-light .msf-form-footer {
    border-top-color: #e9ecef;
}

/* Navigation Buttons */
.msf-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.msf-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.msf-btn-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff6b6b;
    width: 100%;
}

.msf-btn-primary:hover:not(:disabled) {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.msf-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff6b6b;
}

.msf-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.msf-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.msf-theme-light .msf-btn-secondary {
    background: #e9ecef;
    color: #333333;
    border-color: #ddd;
}

.msf-theme-light .msf-btn-secondary:hover:not(:disabled) {
    background: #ddd;
    border-color: #00C8C8;
}

.msf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.msf-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.35);
}

/* Message Box */
.msf-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.msf-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10B981;
    color: #10B981;
}

.msf-message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .msf-container {
        padding: 15px;
    }
    
    .msf-form-wrapper {
        padding: 20px;
    }
    
    .msf-form-title {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .msf-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .msf-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .msf-phone-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .msf-country-code {
        width: 100%;
        min-width: auto;
    }
    
    .msf-otp-actions {
        flex-direction: column;
    }
    
    .msf-otp-actions .msf-btn {
        width: 100%;
    }
}

/* Loading State */
.msf-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.msf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00C8C8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

