/* =========================================================================
   AFZONEFA NEWSLETTER BANNER STYLES
   ========================================================================= */
.afzonefa-newsletter-banner {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--card-border, rgba(8, 113, 201, 0.08));
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 20px 50px rgba(8, 113, 201, 0.04);
    direction: rtl;
    position: relative;
    overflow: visible;
    margin-bottom: -50px;
}

.afzonefa-newsletter-inner {
    width: 100%;
}

/* ─── Right Side: Brand Content & Image ─── */
.afzonefa-newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.afzonefa-newsletter-title {
    font-size: 1.30rem;
    font-weight: 700;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 6px;
    font-family: iransansxv, sans-serif;
}

.afzonefa-newsletter-subtitle {
    font-size: 0.85rem;
    color: var(--neutral-grey, #6c7888);
    line-height: 1.6;
    font-family: iransansxv, sans-serif;
}

.afzonefa-newsletter-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -60px;
}

.afzonefa-newsletter-icon {
    width: 120px;
    height: 120px;
    transform: rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.15));
    transition: transform 0.3s ease;
}

.afzonefa-newsletter-banner:hover .afzonefa-newsletter-icon {
    transform: rotate(0deg) scale(1.05);
}

/* ─── Left Side: Phone Input Form ─── */
.afzonefa-newsletter-form-wrap {
    max-width: 450px;
}

#afzonefa-newsletter-form {
    width: 100%;
}

.afzonefa-newsletter-input {
    height: 50px;
    border-radius: 15px !important;
    border: 1px solid #cbd5e1;
    padding: 10px 24px !important;
    font-size: 0.92rem;
    color: var(--neutral-dark, #17202c);
    background-color: #ffffff;
    transition: all 0.25s ease;
    text-align: left;
    direction: ltr;
    width: 280px;
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
    letter-spacing: 2px;
}

.afzonefa-newsletter-input::placeholder {
    color: #94a3b8 !important;
    text-align: left;
    direction: ltr;
    opacity: 1; /* Firefox fix */
    font-variation-settings: "wght" 400;
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
    letter-spacing: 2px;
}

.afzonefa-newsletter-input:focus {
    border-color: var(--primary-blue, #0871c9);
    box-shadow: 0 0 0 3px rgba(8, 113, 201, 0.1);
    outline: none;
}

.afzonefa-newsletter-btn {
    height: 50px;
    border-radius: 15px !important;
    background-color: var(--accent-orange, #ffb51f) !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    padding: 0 32px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(255, 181, 31, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: iransansxv, sans-serif !important;
}

.afzonefa-newsletter-btn span {
    font-variation-settings: "wght" 600, "DOTS" 8;
}

.afzonefa-newsletter-btn:hover {
    background-color: #e6a117 !important; /* Slightly darker yellow for hover state */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 181, 31, 0.4);
}

.afzonefa-newsletter-btn:active {
    transform: translateY(0);
}

/* ─── Response Messages ─── */
.afzonefa-newsletter-error {
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 600;
}

.afzonefa-newsletter-success {
    color: #10b981;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ─── Responsive Styles ─── */
@media (max-width: 991.98px) {
    .afzonefa-newsletter-banner {
        padding: 28px 40px;
        border-radius: 40px;
    }
    .afzonefa-newsletter-input {
        width: 220px;
    }
}

@media (max-width: 767.98px) {
    .afzonefa-newsletter-banner {
        padding: 32px 24px;
        border-radius: 30px;
        text-align: center;
    }
    
    .afzonefa-newsletter-inner {
        flex-direction: column;
        align-items: center;
    }
    
    .afzonefa-newsletter-content {
        flex-direction: column-reverse;
        text-align: center;
        width: 100%;
    }
    
    .afzonefa-newsletter-content .text-end {
        text-align: center !important;
    }
    
    .afzonefa-newsletter-title {
        font-size: 1.2rem;
    }
    
    .afzonefa-newsletter-subtitle {
        font-size: 0.80rem;
    }
    
    .afzonefa-newsletter-form-wrap {
        width: 100%;
        max-width: 100%;
    }
    
    #afzonefa-newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }
    
    .afzonefa-newsletter-input {
        width: 100%;
        text-align: left;
    }
    
    .afzonefa-newsletter-btn {
        width: 260px;
    }
    
    #afzonefa-newsletter-message {
        text-align: center !important;
    }
}

/* =========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================= */
#afzonefa-toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    direction: rtl;
    align-items: center;
}

.afzonefa-toast {
    background-color: #ffffff;
    color: var(--neutral-dark, #17202c);
    border: 1px solid rgba(8, 113, 201, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 113, 201, 0.08);
    padding: 16px 20px 18px 20px;
    min-width: 320px;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    animation: afzonefaToastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    font-family: iransansxv, sans-serif;
    font-variation-settings: "wght" 500, "DOTS" 8;
    font-size: 0.9rem;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";

}

.afzonefa-toast-success {
    border-right: 4px solid #10b981;
}

.afzonefa-toast-error {
    border-right: 4px solid #ef4444;
}

@keyframes afzonefaToastSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.afzonefa-toast.hide {
    animation: afzonefaToastFadeOut 0.3s ease forwards;
}

@keyframes afzonefaToastFadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* Progress Bar Animating Left-to-Right in RTL */
.afzonefa-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: right;
    animation: afzonefaProgress 3s linear forwards;
}

.afzonefa-toast-success .afzonefa-toast-progress {
    background-color: #10b981;
}

.afzonefa-toast-error .afzonefa-toast-progress {
    background-color: #ef4444;
}

@keyframes afzonefaProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Toast responsiveness */
@media (max-width: 575.98px) {
    #afzonefa-toast-container {
        top: 20px;
        width: calc(100% - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    .afzonefa-toast {
        min-width: 0;
        width: 100%;
        box-shadow: 0 8px 24px rgba(8, 113, 201, 0.1);
    }
}

@media (max-width: 767.98px) and (min-width: 576px){
    .afzonefa-newsletter-banner{
        margin-bottom: -145px;
    }

    .afzonefa-newsletter-subtitle {
        font-size: 0.80rem;
    }

    .afzonefa-newsletter-icon-wrap {
        margin-top: -75px;
    }

    .afzonefa-newsletter-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 1399.98px) and (min-width: 1199.98px) {

    .afzonefa-newsletter-icon {
        width: 100px;
        height: 100px;
    }

    .afzonefa-newsletter-icon-wrap {
        margin-top: -85px;
    }
}

/* Center text, input, and button for 768px to 1199px screen sizes */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .afzonefa-newsletter-banner {
        position: relative;
    }

    .afzonefa-newsletter-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .afzonefa-newsletter-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .afzonefa-newsletter-title,
    .afzonefa-newsletter-subtitle {
        text-align: center;
    }

    .afzonefa-newsletter-icon-wrap {
        position: absolute;
        top: 0;
        right: 35px;
        margin-top: -60px;
    }

    .afzonefa-newsletter-form-wrap {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    #afzonefa-newsletter-form {
        justify-content: center;
        width: 100%;
    }
}



