/* Ricca Sposa newsletter popup */

.rs-nl-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 18, 16, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.rs-nl-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.rs-nl-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    background-image: linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.42)), var(--rs-nl-silk);
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    color: #141210;
    -webkit-font-smoothing: antialiased;
}

.rs-nl-overlay.is-open .rs-nl-modal {
    transform: translateY(0) scale(1);
}

.rs-nl-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #141210;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.rs-nl-close:hover {
    opacity: 1;
}

.rs-nl-inner {
    padding: 46px 40px 40px;
    text-align: center;
    font-family: 'Jost', 'Montserrat', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
}

.rs-nl-logo {
    display: block;
    width: 118px;
    height: auto;
    margin: 0 auto 30px;
}

.rs-nl-title {
    margin: 0 0 22px;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #141210;
}

.rs-nl-lead {
    margin: 0 auto 26px;
    max-width: 340px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1c1a18;
}

.rs-nl-discover {
    margin: 0 0 28px;
}

.rs-nl-discover-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rs-nl-discover ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-nl-discover li {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1c1a18;
}

.rs-nl-discover li::before {
    content: "* ";
}

.rs-nl-form {
    margin: 0 0 22px;
}

.rs-nl-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #141210;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.55);
    color: #141210;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.rs-nl-input::placeholder {
    color: #6b6560;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rs-nl-input:focus {
    border-color: #000;
    background: rgba(255, 255, 255, 0.75);
}

.rs-nl-input.rs-nl-invalid {
    border-color: #a3402f;
}

.rs-nl-submit {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #141210;
    border-radius: 0;
    background: #141210;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.rs-nl-submit:hover:not([disabled]) {
    background: transparent;
    color: #141210;
}

.rs-nl-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.rs-nl-message {
    margin: 14px 0 0;
    min-height: 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
}

.rs-nl-message.is-error {
    color: #a3402f;
}

.rs-nl-message.is-success {
    color: #2f5d3a;
}

.rs-nl-disclaimer {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a453f;
}

/* success state: hide the inputs, keep the message */
.rs-nl-form.is-done .rs-nl-input,
.rs-nl-form.is-done .rs-nl-submit {
    display: none;
}

.rs-nl-form.is-done .rs-nl-message {
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
}

/* Honeypot — hidden from humans */
.rs-nl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 480px) {
    .rs-nl-inner {
        padding: 40px 26px 32px;
    }

    .rs-nl-title {
        font-size: 18px;
    }

    .rs-nl-logo {
        width: 100px;
        margin-bottom: 24px;
    }
}
