/* =========================================================
   NAUJIENLAIŠKIO PRENUMERATOS MODALAS (NEWSLETTER POPUP)
   ========================================================= */

.newsletter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.newsletter-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #161616;
    border: 1px solid rgba(197, 165, 114, 0.35);
    border-radius: 8px;
    padding: clamp(32px, 6vw, 44px) clamp(24px, 5vw, 40px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(197, 165, 114, 0.12);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.newsletter-modal-overlay.is-visible .newsletter-modal-card {
    transform: scale(1) translateY(0);
}

/* Viršutinė auksinė linija */
.newsletter-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold, #c5a572), transparent);
}

/* Uždarymo mygtukas */
.newsletter-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #a9a49c;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.newsletter-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

/* Ikonėlė viršuje */
.newsletter-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(197, 165, 114, 0.12);
    border: 1px solid rgba(197, 165, 114, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold, #c5a572);
    margin-bottom: 18px;
}

.newsletter-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-gold, #c5a572);
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(23px, 4vw, 29px);
    line-height: 1.25;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 12px;
}

.newsletter-title em {
    font-style: italic;
    color: var(--color-gold, #c5a572);
}

.newsletter-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted, #a9a49c);
    margin: 0 auto 24px;
    max-width: 400px;
}

/* Prenumeratos forma */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.newsletter-input-wrap {
    position: relative;
    width: 100%;
}

.newsletter-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: #101010;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.newsletter-input:focus {
    border-color: var(--color-gold, #c5a572);
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.18);
    background: #141414;
}

.newsletter-submit-btn {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-gold, #c5a572);
    color: #111111;
    border: none;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-submit-btn:hover:not(:disabled) {
    background: #d8b885;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 165, 114, 0.3);
}

.newsletter-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.newsletter-note {
    font-size: 12px;
    color: #77736b;
    margin: 0;
    line-height: 1.4;
}

.newsletter-dismiss-link {
    background: none;
    border: none;
    color: #8e8a83;
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.newsletter-dismiss-link:hover {
    color: #d6d2cb;
}

/* Klaidos pranešimas */
.newsletter-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: none;
    text-align: left;
}

/* Sėkmės būsena */
.newsletter-success {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.newsletter-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.newsletter-success-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 10px;
}

.newsletter-success-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #d6d2cb;
    margin: 0 0 20px;
}

.newsletter-success-btn {
    min-height: 44px;
    padding: 0 28px;
    background: rgba(197, 165, 114, 0.18);
    border: 1px solid var(--color-gold, #c5a572);
    color: var(--color-gold, #c5a572);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-success-btn:hover {
    background: var(--color-gold, #c5a572);
    color: #111111;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
