/* ==================== SUBSCRIBE/LOGIN MODAL STYLES ==================== */

.modal-demo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lottery-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lottery-form h3 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 24px;
    text-align: center;
}

.lottery-form p {
    margin: 0 0 25px 0;
    color: #666;
    text-align: center;
    font-size: 14px;
}

/* ==================== INPUT GROUPS ==================== */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-group input.error {
    border-color: #ff4444;
}

/* ==================== PASSWORD WRAPPER WITH TOGGLE ==================== */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #666;
    user-select: none;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #333;
}

/* Eye icon states */
.password-toggle::before {
    content: '👁️'; /* Open eye - password hidden */
}

.password-toggle.visible::before {
    content: '🙈'; /* Closed/slashed eye - password visible */
}

/* ==================== BUTTONS - SCOPED TO MODALS ONLY ==================== */


/* ==================== STEP INDICATORS ==================== */

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: #4CAF50;
}

/* ==================== SUCCESS CHECKMARK ==================== */

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* ==================== LINKS ==================== */

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ==================== HONEYPOT (HIDDEN) ==================== */

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ==================== TIMEZONE SELECTOR ==================== */

.timezone-selector {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.timezone-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 600px) {
    .lottery-form {
        padding: 30px 25px;
        width: 95%;
    }
    
    .lottery-form h3 {
        font-size: 20px;
    }
    
    .input-group input[type="text"],
    .input-group input[type="email"],
    .input-group input[type="password"],
    .input-group select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
     .btn-action,
    .secondary-btn {
        font-size: 14px;
        padding: 10px 25px;
    }
}

/* ==================== LOADING SPINNER ==================== */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== ERROR STATES ==================== */

input.error,
select.error {
    border-color: #ff4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==================== STEP TRANSITIONS ==================== */

.step-content {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== CLOSE BUTTON ==================== */

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 5px 10px;
}

.modal-close:hover {
    color: #333;
}
