/**
 * Custom Newsletter Styles
 */

.custom-newsletter-block {
    background-color: #e5e5e5;
    padding: 50px 20px;
    width: 100%;
}

.custom-newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-newsletter-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.custom-newsletter-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.custom-newsletter-form {
    max-width: 100%;
}

.custom-newsletter-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .custom-newsletter-row {
        flex-direction: column;
        gap: 20px;
    }
}

.custom-newsletter-field {
    flex: 1;
    position: relative;
}

.custom-newsletter-field-full {
    flex: 0 0 calc(50% - 15px);
}

@media (max-width: 768px) {
    .custom-newsletter-field-full {
        flex: 1;
    }
}

.custom-newsletter-field label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 400;
    text-align: left;
}

.custom-newsletter-field input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.custom-newsletter-field input:focus {
    border-bottom-color: #333;
}

.custom-newsletter-field input::placeholder {
    color: #999;
}

.custom-newsletter-vous-etes {
    margin-top: 30px;
    margin-bottom: 15px;
}

.vous-etes-label {
    font-size: 12px;
    color: #333;
    font-weight: 400;
    text-align: left;
    display: block;
}

.custom-newsletter-checkboxes {
    margin-bottom: 30px;
}

.custom-newsletter-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.custom-newsletter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #333;
}

.custom-newsletter-checkbox label {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
}

.custom-newsletter-checkbox label a {
    color: #333;
    text-decoration: underline;
}

.custom-newsletter-checkbox label a:hover {
    color: #000;
}

.custom-newsletter-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-newsletter-submit {
    background-color: #3d3d3d;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.btn-newsletter-submit:hover {
    background-color: #222;
}

/* Alert Messages */
.custom-newsletter-alert {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 14px;
}

.custom-newsletter-alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.custom-newsletter-alert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-newsletter-block {
        padding: 0;
    }

    .custom-newsletter-container {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        padding-top: 1.75rem;
    }

    .custom-newsletter-title {
        font-size: 22px;
    }

    .custom-newsletter-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .custom-newsletter-submit {
        justify-content: center;
    }

    .btn-newsletter-submit {
        width: 100%;
        text-align: center;
    }
}
