/* =================================================
   AQWAS NEWSLETTER
   ================================================= */

.aqwas-newsletter {
    width: 100%;
    padding: 90px 24px;
    direction: rtl;
}


.aqwas-newsletter-container {
    position: relative;
    overflow: hidden;

    width: min(1380px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;

    padding: 65px 70px;

    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            #4C1D95 0%,
            #6D28D9 55%,
            #8B5CF6 100%
        );

    box-shadow:
        0 25px 60px rgba(76, 29, 149, .18);
}


/* CONTENT */

.aqwas-newsletter-content {
    position: relative;
    z-index: 2;
}


.aqwas-newsletter-badge {
    display: inline-flex;

    padding: 9px 18px;
    margin-bottom: 20px;

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;

    background: rgba(255,255,255,.10);

    color: #fff;

    font-size: 14px;
    font-weight: 700;
}


.aqwas-newsletter-content h2 {
    margin: 0 0 18px;

    color: #fff;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.4;
    font-weight: 900;
}


.aqwas-newsletter-content p {
    max-width: 620px;

    margin: 0;

    color: rgba(255,255,255,.82);

    font-size: 17px;
    line-height: 2;
}


/* FORM */

.aqwas-newsletter-form-wrap {
    position: relative;
    z-index: 2;
}


.aqwas-newsletter-form {
    display: flex;
    align-items: stretch;

    padding: 8px;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.14);
}


.aqwas-newsletter-form input[type="email"] {
    flex: 1;

    min-width: 0;
    height: 58px;

    padding: 0 20px;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #111827;

    font-size: 16px;

    box-shadow: none !important;
}


.aqwas-newsletter-form input[type="email"]::placeholder {
    color: #9CA3AF;
}


.aqwas-newsletter-form button {
    min-width: 145px;
    height: 58px;

    padding: 0 25px;

    border: 0;
    border-radius: 15px;

    background: #6D28D9;

    color: #fff;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition: all .25s ease;
}


.aqwas-newsletter-form button:hover {
    background: #5B21B6;

    color: #fff;

    transform: translateY(-1px);
}


.aqwas-newsletter-privacy {
    display: block;

    margin-top: 12px;

    color: rgba(255,255,255,.65);

    font-size: 13px;
}


.aqwas-newsletter-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    left: -10000px !important;
}


/* MOBILE */

@media (max-width: 900px) {

    .aqwas-newsletter {
        padding: 60px 18px;
    }

    .aqwas-newsletter-container {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px 30px;

        border-radius: 28px;
    }

}


@media (max-width: 600px) {

    .aqwas-newsletter-form {
        flex-direction: column;

        gap: 8px;
    }

    .aqwas-newsletter-form input[type="email"],
    .aqwas-newsletter-form button {
        width: 100%;
    }

    .aqwas-newsletter-form button {
        min-width: 0;
    }

}
/* =================================================
   AQWAS NEWSLETTER FORM - FINAL OVERRIDE
   ================================================= */

/* الحاوية */
.aqwas-newsletter .aqwas-newsletter-form {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 8px !important;

    background: #ffffff !important;
    border-radius: 20px !important;

    direction: rtl !important;
}


/* حقل البريد */
.aqwas-newsletter .aqwas-newsletter-form input[type="email"] {
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    height: 52px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border: 0 !important;
    outline: 0 !important;

    background: #ffffff !important;
    background-image: none !important;

    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;

    font-size: 15px !important;
    font-weight: 500 !important;

    box-shadow: none !important;

    direction: rtl !important;
    text-align: right !important;
}


/* النص الإرشادي */
.aqwas-newsletter .aqwas-newsletter-form input[type="email"]::placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}


/* زر الاشتراك */
.aqwas-newsletter .aqwas-newsletter-form button,
.aqwas-newsletter .aqwas-newsletter-form button[type="submit"] {
    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 125px !important;
    max-width: 160px !important;

    height: 52px !important;

    margin: 0 !important;
    padding: 0 22px !important;

    border: 0 !important;
    border-radius: 14px !important;

    background: #6D28D9 !important;
    background-image: none !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-shadow: none !important;

    cursor: pointer !important;

    white-space: nowrap !important;
}


/* Hover */
.aqwas-newsletter .aqwas-newsletter-form button:hover,
.aqwas-newsletter .aqwas-newsletter-form button[type="submit"]:hover {
    background: #5B21B6 !important;
    background-image: none !important;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* Focus للبريد */
.aqwas-newsletter .aqwas-newsletter-form input[type="email"]:focus {
    background: #ffffff !important;

    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;

    box-shadow: none !important;
}


/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 600px) {

    .aqwas-newsletter .aqwas-newsletter-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .aqwas-newsletter .aqwas-newsletter-form input[type="email"],
    .aqwas-newsletter .aqwas-newsletter-form button,
    .aqwas-newsletter .aqwas-newsletter-form button[type="submit"] {
        width: 100% !important;
        max-width: none !important;
    }

}
/* =================================================
   AQWAS NEWSLETTER AJAX STATUS
   ================================================= */

.aqwas-newsletter-message {
    display: none;
    margin-top: 14px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}


.aqwas-newsletter-message.is-success {
    display: block;

    color: #ffffff;

    padding: 10px 16px;

    border-radius: 12px;

    background: rgba(255, 255, 255, .12);
}


.aqwas-newsletter-message.is-error {
    display: block;

    color: #ffffff;

    padding: 10px 16px;

    border-radius: 12px;

    background: rgba(127, 29, 29, .35);
}


.aqwas-newsletter-form button:disabled {
    opacity: .7 !important;
    cursor: wait !important;
    transform: none !important;
}
