/**
 * Paystack Authentication System - Styles
 */

/* Modal Overlay */
.paystack-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.paystack-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.paystack-modal-content {
    position: relative;
    max-width: 550px;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    padding: 35px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.paystack-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    z-index: 1;
}

.paystack-modal-close:hover {
    color: #333;
}

/* Form Styles */
.paystack-form h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

/* Form Row for side-by-side fields */
.paystack-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.paystack-form-row .paystack-form-group {
    flex: 1;
    margin-bottom: 0;
}

.paystack-form-group {
    margin-bottom: 15px;
    position: relative;
}

.paystack-form input[type="text"],
.paystack-form input[type="email"],
.paystack-form input[type="password"] {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.paystack-form input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Password toggle button */
.paystack-password-group {
    position: relative;
}

.paystack-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.paystack-toggle-password:hover {
    opacity: 1;
}

.paystack-password-group input {
    padding-right: 45px;
}

/* Button Styles */
.paystack-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.paystack-btn:hover {
    background: #005177;
}

.paystack-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Trigger Button */
.paystack-auth-trigger {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.paystack-auth-trigger:hover {
    background: #005177;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Captcha Row - Stack vertically for cleaner layout */
.paystack-captcha-row {
    display: block;
    margin-bottom: 15px;
}

.paystack-captcha-group {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.paystack-google-group {
    display: flex;
    justify-content: center;
}

/* Captcha Container */
.turnstile-container,
.recaptcha-container {
    margin: 0 auto;
    display: inline-block;
    transform: scale(1);
    transform-origin: center center;
}

/* Google Sign-In */
.google-signin-button {
    margin: 0 auto;
    display: inline-block;
}

/* Divider for visual separation */
.paystack-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.paystack-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
}

.paystack-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    color: #999;
    font-size: 13px;
}

/* Messages */
.paystack-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.paystack-success {
    color: #00a32a;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Form Footer */
.paystack-form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.paystack-form-footer a {
    color: #0073aa;
    text-decoration: none;
}

.paystack-form-footer a:hover {
    text-decoration: underline;
}

/* Full Page Spinner */
.paystack-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.paystack-loading-overlay.active {
    display: flex;
}

.paystack-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.paystack-loading-text {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

.paystack-loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .paystack-modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .paystack-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .paystack-loading-text {
        font-size: 16px;
    }
    
    .paystack-loading-subtext {
        font-size: 13px;
    }
}

/* ========================================
   GAMIFIED ONBOARDING WIZARD STYLES
   ======================================== */

.paystack-wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
}

.paystack-wizard-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.95), rgba(0, 81, 119, 0.95));
}

.paystack-wizard-modal-content {
    position: relative;
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: wizardSlideIn 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress Bar */
.paystack-wizard-progress {
    background: linear-gradient(135deg, #0073aa, #005177);
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    color: white;
}

.paystack-wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.paystack-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.paystack-wizard-progress-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

/* Wizard Header */
.paystack-wizard-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.paystack-wizard-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: iconBounce 2s ease infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.paystack-wizard-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
    font-weight: 700;
}

.paystack-wizard-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Wizard Body */
.paystack-wizard-body {
    padding: 20px 30px 30px;
}

.wizard-verification-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-verification-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wizard-verification-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.wizard-verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wizard-verification-icon {
    font-size: 32px;
}

.wizard-verification-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.wizard-email-status,
.wizard-whatsapp-status {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: white;
}

.wizard-verification-item p {
    margin: 0 0 10px 44px;
    color: #666;
    font-size: 14px;
}

.wizard-verification-item button {
    margin-left: 44px;
    transition: all 0.3s ease;
}

.wizard-verification-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Encouragement Box */
.paystack-wizard-encouragement {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
}

.paystack-wizard-encouragement p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #856404;
}

/* Wizard Footer */
.paystack-wizard-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.paystack-wizard-complete-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.paystack-wizard-complete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.paystack-wizard-complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.wizard-footer-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .paystack-wizard-modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .paystack-wizard-header {
        padding: 30px 20px 15px;
    }
    
    .paystack-wizard-icon {
        font-size: 48px;
    }
    
    .paystack-wizard-header h2 {
        font-size: 24px;
    }
    
    .paystack-wizard-body {
        padding: 15px 20px 20px;
    }
    
    .wizard-verification-item {
        padding: 15px;
    }
    
    .wizard-verification-item p,
    .wizard-verification-item button {
        margin-left: 0;
    }
}
