/* =========================================================
   TEEM FOOTER NEWSLETTER BANNER
   ========================================================= */

.teem-footer-newsletter {
    padding: 38px 0;
    background: #0b3d32;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teem-footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.teem-footer-newsletter-content {
    max-width: 700px;
}

.teem-footer-newsletter-label {
    display: inline-block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.teem-footer-newsletter-content h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 700;
}

.teem-footer-newsletter-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.6;
}

.teem-footer-newsletter-action {
    flex-shrink: 0;
}

.teem-footer-newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 145px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: #ffffff;
    color: #0b3d32;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.teem-footer-newsletter-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.teem-footer-newsletter-btn i {
    transition: transform 0.25s ease;
}

.teem-footer-newsletter-btn:hover i {
    transform: translateX(4px);
}


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

@media (max-width: 767px) {

    .teem-footer-newsletter {
        padding: 32px 0;
    }

    .teem-footer-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .teem-footer-newsletter-action {
        width: 100%;
    }

    .teem-footer-newsletter-btn {
        width: 100%;
    }
}



/* =========================================================
   TEEM NEWSLETTER
   ========================================================= */

.teem-newsletter-section {
    position: relative;
    padding: 70px 0;

    background:
        linear-gradient(
            135deg,
            #0b3d32 0%,
            #0f4a3d 100%
        );

    overflow: hidden;
}


/* Subtle decorative glow */

.teem-newsletter-section::before {
    content: "";
    position: absolute;

    width: 320px;
    height: 320px;

    top: -160px;
    right: -100px;

    border-radius: 50%;

    background: rgba(201, 162, 39, 0.08);
}


.teem-newsletter-section::after {
    content: "";
    position: absolute;

    width: 250px;
    height: 250px;

    bottom: -150px;
    left: -80px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.03);
}


.teem-newsletter-wrapper {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);

    align-items: center;

    gap: 55px;
}


/* Content */

.teem-newsletter-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #c9a227;
}


.teem-newsletter-title {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;

    line-height: 1.08;
}


.teem-newsletter-text {
    max-width: 520px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.98rem;
    line-height: 1.8;
}


/* Form */

.teem-newsletter-form {
    width: 100%;
}


.teem-newsletter-fields {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


.teem-newsletter-field {
    min-width: 0;
}


.teem-newsletter-email-field {
    grid-column: 1 / -1;
}


.teem-newsletter-input {
    width: 100%;

    min-height: 54px;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.09);

    color: #ffffff;

    font-family: inherit;
    font-size: 0.92rem;

    outline: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.teem-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}


.teem-newsletter-input:focus {
    border-color: rgba(201, 162, 39, 0.7);

    background: rgba(255, 255, 255, 0.13);

    box-shadow:
        0 0 0 3px rgba(201, 162, 39, 0.1);
}


/* Subscribe button */

.teem-newsletter-submit {
    min-height: 54px;

    grid-column: 1 / -1;

    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background: #c9a227;
    color: #102f27;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.teem-newsletter-submit:hover {
    background: #d7b33a;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.16);
}


.teem-newsletter-submit:active {
    transform: translateY(0);
}


.teem-newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* Note */

.teem-newsletter-note {
    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.72rem;
    line-height: 1.6;
}


/* Spinner */

.teem-newsletter-submit-spinner .spinner-border {
    width: 16px;
    height: 16px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .teem-newsletter-wrapper {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .teem-newsletter-text {
        max-width: 680px;
    }
}


@media (max-width: 575.98px) {

    .teem-newsletter-section {
        padding: 55px 0;
    }

    .teem-newsletter-fields {
        grid-template-columns: 1fr;
    }

    .teem-newsletter-email-field,
    .teem-newsletter-submit {
        grid-column: auto;
    }

    .teem-newsletter-title {
        font-size: 2rem;
    }

    .teem-newsletter-input,
    .teem-newsletter-submit {
        min-height: 52px;
    }
}


/* =========================================================
   TEEM NEWSLETTER UNSUBSCRIBE
   ========================================================= */

.teem-unsubscribe-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    background: #f7faf8;
}

.teem-unsubscribe-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 55px 45px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(11, 61, 50, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 47, 39, 0.08);
}

.teem-unsubscribe-icon,
.teem-unsubscribe-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(11, 61, 50, 0.08);
    color: #0b3d32;
    font-size: 30px;
}

.teem-unsubscribe-success-icon {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.teem-unsubscribe-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #0b3d32;
}

.teem-unsubscribe-card h1 {
    margin-bottom: 18px;
    color: #102f27;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.teem-unsubscribe-intro {
    max-width: 480px;
    margin: 0 auto 30px;
    color: #66756f;
    line-height: 1.8;
}

.teem-unsubscribe-note {
    margin-top: 20px;
    color: #718079;
    font-size: 0.95rem;
}

.teem-unsubscribe-form {
    text-align: left;
}

.teem-unsubscribe-field {
    margin-bottom: 20px;
}

.teem-unsubscribe-field label {
    display: block;
    margin-bottom: 8px;
    color: #263b34;
    font-size: 0.9rem;
    font-weight: 600;
}

.teem-unsubscribe-field .teem-newsletter-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #dce5e1;
    border-radius: 12px;
    outline: none;
    transition: 0.25s ease;
}

.teem-unsubscribe-field .teem-newsletter-input:focus {
    border-color: #0b3d32;
    box-shadow: 0 0 0 4px rgba(11, 61, 50, 0.08);
}

.teem-unsubscribe-error {
    margin-top: 7px;
    color: #dc3545;
    font-size: 0.85rem;
}

.teem-unsubscribe-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: #0b3d32;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.teem-unsubscribe-submit:hover {
    background: #092f27;
    color: #ffffff;
    transform: translateY(-1px);
}

.teem-unsubscribe-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 25px;
    color: #0b3d32;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.teem-unsubscribe-back:hover {
    color: #082c25;
}

@media (max-width: 576px) {

    .teem-unsubscribe-section {
        padding: 70px 15px;
    }

    .teem-unsubscribe-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

}


.teem-newsletter-unsubscribe {
    margin: 18px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.teem-newsletter-unsubscribe a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.teem-newsletter-unsubscribe a:hover {
    opacity: 0.75;
}


/* =========================================================
   TEEM NEWSLETTER MODAL
   ========================================================= */

.teem-newsletter-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.teem-newsletter-modal .modal-header {
    padding: 28px 30px 20px;
    border-bottom: 1px solid #edf1ef;
}

.teem-newsletter-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #0b3d32;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.teem-newsletter-modal .modal-title {
    color: #102f27;
    font-size: 1.45rem;
    font-weight: 700;
}

.teem-newsletter-modal .modal-body {
    padding: 25px 30px 30px;
}

.teem-newsletter-modal-intro {
    margin-bottom: 25px;
    color: #66756f;
    font-size: 0.92rem;
    line-height: 1.7;
}

.teem-newsletter-modal-field {
    margin-bottom: 17px;
}

.teem-newsletter-modal-field label {
    display: block;
    margin-bottom: 7px;
    color: #263b34;
    font-size: 0.86rem;
    font-weight: 600;
}

.teem-newsletter-modal-field label span {
    color: #89958f;
    font-size: 0.78rem;
    font-weight: 400;
}

.teem-newsletter-input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #dce5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #263b34;
    outline: none;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.teem-newsletter-input::placeholder {
    color: #a1aaa6;
}

.teem-newsletter-input:focus {
    border-color: #0b3d32;
    box-shadow: 0 0 0 3px rgba(11, 61, 50, 0.08);
}

.teem-newsletter-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.teem-newsletter-modal-submit {
    width: 100%;
    min-height: 51px;
    margin-top: 5px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #0b3d32;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.teem-newsletter-modal-submit:hover:not(:disabled) {
    background: #092f27;
    transform: translateY(-1px);
}

.teem-newsletter-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.teem-newsletter-submit-text,
.teem-newsletter-submit-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.teem-newsletter-modal-unsubscribe {
    margin: 20px 0 0;
    text-align: center;
    color: #7a8781;
    font-size: 0.78rem;
    line-height: 1.6;
}

.teem-newsletter-modal-unsubscribe a {
    color: #0b3d32;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.teem-newsletter-modal-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 15px 0 0;
    color: #9aa49f;
    font-size: 0.72rem;
}

.teem-newsletter-modal-privacy i {
    color: #0b3d32;
}


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

@media (max-width: 576px) {

    .teem-newsletter-modal .modal-header {
        padding: 23px 20px 17px;
    }

    .teem-newsletter-modal .modal-body {
        padding: 20px;
    }

    .teem-newsletter-modal .modal-title {
        font-size: 1.25rem;
    }

    .teem-newsletter-modal-privacy {
        align-items: flex-start;
        text-align: center;
    }
}