/* ======== استایل کلی فرم ======== */
.newsletter-container {
    max-width: 600px;
    /*margin: 40px auto;*/
    /*padding: 30px;*/
    /*background: #fff;*/
    /*border-radius: 12px;*/
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: center;
    direction: rtl;
}

@media screen and (max-width: 767px) {
    .newsletter-container {
        justify-items: center;
    }
}

@media screen and (min-width: 767px) {
    .newsletter-container {
        padding-top: 16px;
    }
}

/*@media screen and (min-width: 767px) {*/
/*    .newsletter-notice {*/
/*        width: 65%;*/
/*        font-weight: 600;*/
/*        background-color: white;*/
/*        font-size: 12px;*/
/*        border-radius: 4px;*/
/*        margin-bottom: 4px;*/
/*    }*/
/*}*/

@media screen and (max-width: 767px) {
    .newsletter-notice {
      margin-inline: auto !important;
    }
}

.newsletter-notice {
    width: fit-content;
    font-weight: 600;
    background-color: white;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 4px;
    padding-inline: 6px;
}

/* ======== استایل فیلدها ======== */
.newsletter-form {
    display: grid;
    gap: 8px !important;
    margin-bottom: 8px;
}

@media screen and (min-width: 767px) {
    .form-newsletter-row {
        display: flex;
        gap: 8px;
        align-items: center;
    }
}

@media screen and (max-width: 767px) {
    .form-newsletter-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: start;
    }
}

.newsletter-input-container {
    text-align: right;
}

.newsletter-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: none;
    /*margin-bottom: 5px;*/
}

/* ======== استایل اینپوت‌ها ======== */
.newsletter-input {
    width: 100% !important;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #f6f6f6 !important;
    background-color: #ffffff !important;
    border-radius: 6px;
    transition: border 0.3s ease;
}

.newsletter-input:focus {
    border-color: #6cca92;
    outline: none;
    box-shadow: 0 0 5px #6cca92;
}

/* ======== استایل چک‌باکس ======== */
.newsletter-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.newsletter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    /*margin-bottom: 5px;*/
}

@media screen and (max-width: 767px) {
    .newsletter-checkbox-label {
        font-size: 12px;
    }
}

.newsletter-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #007BFF;
}

/* ======== استایل دکمه ======== */
.newsletter-submit-container {
    /*margin-top: 10px;*/
}

.title-newsletter {
    display: flex;
    font-size: .875rem;
    font-weight: 400;
    color: #666;
}

.newsletter-submit-button {
    color: #fff;
    background-color: #6cca92;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
}

/* 🔥 Darken the existing background on hover */
.newsletter-submit-button:hover {
    filter: brightness(90%); /* Darkens the current background */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

/* Click effect */
.newsletter-submit-button:active {
    filter: brightness(85%);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}

.newsletter-desc {
    margin-bottom: 8px !important;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(96, 96, 96, 1);
    white-space: nowrap;
    display: block;
}