/**
 * Popup Newsletter System
 * Main CSS file for styling popups
 */

/* Base container */
.newsletter-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup-container.active {
    opacity: 1;
    visibility: visible;
}

/* Popup box */
.newsletter-popup {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.4s ease-out;
}

.newsletter-popup-container.active .newsletter-popup {
    transform: translateY(0);
}

/* Close button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    color: #777;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #000;
}

/* Classic car template styling */
.popup-classic-car {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.popup-image-container {
    flex: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 300px;
}

.popup-content {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-headline {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #222;
}

.popup-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #555;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

.popup-input:focus {
    border-color: #555;
    outline: none;
}

.popup-submit {
    background-color: #4c7a34; /* Green button like in the example */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-submit:hover {
    background-color: #3e6229;
}

.popup-submit:disabled {
    background-color: #92ad84;
    cursor: not-allowed;
}

.popup-no-thanks {
    text-align: center;
    margin-top: 20px;
    color: #777;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.popup-no-thanks:hover {
    text-decoration: underline;
}

.popup-error {
    color: #e53935;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.popup-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.popup-success-icon {
    font-size: 48px;
    color: #4c7a34;
    margin-bottom: 20px;
}

.popup-success-message {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.popup-success-detail {
    font-size: 16px;
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .popup-classic-car {
        flex-direction: column;
    }
    
    .popup-image-container {
        min-height: 200px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-headline {
        font-size: 24px;
        margin-bottom: 15px;
    }
}