/* EdTech Email Signup Styles - Custom Gradient */

.edtech-signup-form {
    background: linear-gradient(135deg, #006Fde 0%, #002e6e 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,111,222,0.3);
}

.edtech-signup-form h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.edtech-signup-form p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.edtech-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
}

.edtech-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,111,222,0.3);
}

.edtech-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #006Fde;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.edtech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,111,222,0.4);
    background: #f8f9ff;
}

.edtech-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.edtech-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.edtech-message.success {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.edtech-message.error {
    background: rgba(255,0,0,0.2);
    color: #ffcccc;
    border: 1px solid rgba(255,0,0,0.3);
}

/* Popup Styles */
.edtech-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,46,110,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.edtech-popup-overlay.show {
    display: flex;
}

.edtech-popup {
    background: linear-gradient(135deg, #006Fde 0%, #002e6e 100%);
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,46,110,0.5);
    animation: popupSlideIn 0.3s ease-out;
    border: 2px solid rgba(255,255,255,0.1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.popup-content {
    text-align: center;
    color: white;
}

.popup-content h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.popup-content p {
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px 0;
}

.popup-content .edtech-form input {
    border: 2px solid rgba(255,255,255,0.3);
    color: #333;
    background: rgba(255,255,255,0.95);
}

.popup-content .edtech-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.popup-content .edtech-btn {
    background: white;
    color: #006Fde;
    font-weight: bold;
    border: 2px solid transparent;
}

.popup-content .edtech-btn:hover {
    background: #f8f9ff;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Enhanced styling for better visual appeal */
.edtech-signup-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.edtech-signup-form {
    position: relative;
    overflow: hidden;
}

.edtech-popup {
    position: relative;
    overflow: hidden;
}

.edtech-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
    pointer-events: none;
}

/* Alternative gradient variations (uncomment to use different styles) */

/* Vertical gradient */
/*
.edtech-signup-form {
    background: linear-gradient(180deg, #006Fde 0%, #002e6e 100%);
}
.edtech-popup {
    background: linear-gradient(180deg, #006Fde 0%, #002e6e 100%);
}
*/

/* Radial gradient from center */
/*
.edtech-signup-form {
    background: radial-gradient(circle at center, #006Fde 0%, #002e6e 100%);
}
.edtech-popup {
    background: radial-gradient(circle at center, #006Fde 0%, #002e6e 100%);
}
*/

/* Three-color gradient (add a middle color) */
/*
.edtech-signup-form {
    background: linear-gradient(135deg, #006Fde 0%, #004a9f 50%, #002e6e 100%);
}
.edtech-popup {
    background: linear-gradient(135deg, #006Fde 0%, #004a9f 50%, #002e6e 100%);
}
*/

/* Mobile Responsive */
@media (max-width: 768px) {
    .edtech-signup-form {
        margin: 20px 10px;
        padding: 25px 20px;
    }
    
    .edtech-popup {
        margin: 0 15px;
        padding: 25px 20px;
    }
    
    .edtech-signup-form h3,
    .popup-content h3 {
        font-size: 1.3rem;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .edtech-form input {
        background: rgba(255,255,255,0.9);
    }
    
    .edtech-form input:focus {
        background: white;
    }
}

/* Print styles (hide popup when printing) */
@media print {
    .edtech-popup-overlay {
        display: none !important;
    }
}