/* RESET és alapok */
.exit-popup-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.exit-popup-overlay.active {
    display: flex;
}

.exit-popup-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bezárás gomb */
.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.exit-popup-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* KÉP - FENT */
.exit-popup-image-container {
    width: 100%;
    height: 275px;
    overflow: hidden;
    position: relative;
}

.exit-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TARTALOM - KÖZÉPEN */
.exit-popup-content {
    padding: 30px;
}

.exit-popup-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}

p.exit-popup-title {
    display: none;
}

.exit-popup-message {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
    line-height: 1.3;
}

/* ŰRLAP - KÖZÉP ALATT */
.exit-popup-form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.exit-popup-form label {
    display: flex;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0px;
    padding: 6px;
}

.exit-popup-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.exit-popup-form input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.exit-popup-form input[type="email"]::placeholder {
    color: #95a5a6;
}

/* Checkbox csoportok */
.checkbox-group {
    margin-bottom: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s;
}

.checkbox-group:hover {
    background: #edf2f7;
}

.checkbox-group.required {
    background: #fff8e1;
    border-left: 3px solid #f39c12;
}

.checkbox-group.required:hover {
    background: #ffecb3;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
}

/* GOMB - ALUL */
.form-actions {
    margin-top: 25px;
}

.submit-btn {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #058cac, #2980b9);
    color: white;
    border: none;
    border-radius: 58px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a80);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Üzenetek */
.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobil nézet */
@media (max-width: 768px) {
    .exit-popup-container {
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }
    
    .exit-popup-image-container {
        height: 180px;
    }
    
    .exit-popup-content {
        padding: 25px 20px;
    }
    
    .exit-popup-title {
        font-size: 22px;
    }
    
    .exit-popup-message {
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .exit-popup-container {
        border-radius: 8px;
    }
    
    .exit-popup-image-container {
        height: 160px;
    }
    
    .exit-popup-content {
        padding: 20px 15px;
    }
    
    .exit-popup-title {
        font-size: 20px;
    }
    
    .exit-popup-form input[type="email"] {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Extra: Kép nélküli változat */
.exit-popup-no-image .exit-popup-image-container {
    display: none;
}

.exit-popup-no-image .exit-popup-content {
    padding-top: 40px;
}

/* Animáció */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exit-popup-overlay {
    animation: fadeIn 0.3s ease-out;
}