/*
 * ========================================
 * Popup Form Styles
 * ========================================
 */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 20, 140, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    background: rgba(106, 27, 154, 0.95);
    border-radius: 8px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-30px);
    transition: all 0.3s ease;
    border: 3px solid #00d4ff;
}

.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    pointer-events: none;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: white;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

/* Popup Header */
.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-discount-badge {
    display: inline-block;
    background: transparent;
    color: #00e5ff;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Popup Form */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-form-group {
    position: relative;
}

.popup-form-group input,
.popup-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.popup-form-group input::placeholder,
.popup-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.popup-form-group input:focus,
.popup-form-group textarea:focus {
    border-color: #00e5ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.popup-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

/* CTA Button */
.popup-cta-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: white;
    color: #4a148c;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin-top: 10px;
    letter-spacing: 1px;
}

.popup-cta-btn:hover {
    background: #00e5ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
}

.popup-cta-btn:active {
    transform: translateY(-1px);
}

/* Privacy Note */
.popup-privacy {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 15px;
}

.popup-privacy i {
    margin-right: 5px;
}

/* Success Message */
.popup-success {
    text-align: center;
    display: none;
}

.popup-success.show {
    display: block;
}

.popup-success-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border: 3px solid #00e5ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.popup-success-icon i {
    font-size: 32px;
    color: #00e5ff;
}

.popup-success h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.popup-success p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 576px) {
    .popup-container {
        padding: 30px 25px;
        margin: 15px;
    }
    
    .popup-discount-badge {
        font-size: 1.4rem;
    }
    
    .popup-title {
        font-size: 1.1rem;
    }
    
    .popup-form-group input,
    .popup-form-group textarea {
        padding: 12px;
    }
    
    .popup-cta-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
