/* Modal Newsletter - BEN-BATI */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay--active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay--active .modal {
    transform: scale(1) translateY(0);
}

.modal__header {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 48px 48px 32px;
    text-align: center;
    color: #ffffff;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal__logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 8px;
}

.modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #ffffff;
}

.modal__subtitle {
    font-size: 16px;
    color: #c8a45c;
    opacity: 0.9;
}

.modal__body {
    padding: 32px 48px 48px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal__benefits {
    margin-bottom: 32px;
}

.modal__benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.modal__benefit-icon {
    width: 24px;
    height: 24px;
    background: #c8a45c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.modal__input-group {
    position: relative;
}

.modal__input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modal__input:focus {
    outline: none;
    border-color: #c8a45c;
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
}

.modal__input::placeholder {
    color: #6b7280;
}

.modal__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.modal__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #c8a45c;
    cursor: pointer;
}

.modal__checkbox-label {
    cursor: pointer;
    line-height: 1.5;
}

.modal__checkbox-label a {
    color: #c8a45c;
    text-decoration: underline;
}

.modal__btn {
    background: #c8a45c;
    color: #1a1a1a;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-top: 8px;
}

.modal__btn:hover {
    background: #b8934a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 164, 92, 0.3);
}

.modal__btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.modal__success {
    text-align: center;
    padding: 48px;
}

.modal__success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal__success-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.modal__success-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Trigger button for later opening */
.modal-trigger {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #c8a45c;
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(200, 164, 92, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-trigger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(200, 164, 92, 0.4);
}

/* Animation for modal appearance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal--animate {
    animation: modalSlideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .modal {
        width: 95%;
        margin: 16px;
    }
    
    .modal__header {
        padding: 32px 32px 24px;
    }
    
    .modal__title {
        font-size: 22px;
    }
    
    .modal__body {
        padding: 32px;
    }
    
    .modal-trigger {
        bottom: 90px;
        right: 16px;
        padding: 8px 16px;
        font-size: 14px;
    }
}
