﻿/* ===================================
   LUXURY LINE - Newsletter Modal
   =================================== */

.lux-newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lux-newsletter-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lux-newsletter-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.lux-newsletter-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    overflow: hidden;
    background: var(--color-background-light, #ebe6e1);
    color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.lux-newsletter-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lux-newsletter-modal__close:hover {
    background: var(--color-accent);
    color: var(--color-text-white, #ebe6e1);
    transform: rotate(90deg);
}

.lux-newsletter-modal__image {
    min-height: 440px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.lux-newsletter-modal__content {
    padding: clamp(32px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lux-newsletter-modal__title {
    margin: 0 0 10px;
    color: #1a1a1a;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
    letter-spacing: 0;
}

.lux-newsletter-modal__subtitle {
    margin: 0 0 26px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.lux-newsletter-form__group {
    margin-bottom: 20px;
}

.lux-newsletter-form__group label {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
}

.lux-newsletter-form__group input,
.lux-newsletter-form__select {
    width: 100%;
    height: 44px;
    border: 1px solid #1a1a1a;
    border-radius: 22px;
    padding: 0 18px;
    background: var(--color-background-light, #ebe6e1);
    color: #1a1a1a;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lux-newsletter-form__select {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    background-image: linear-gradient(45deg, transparent 50%, #1a1a1a 50%), linear-gradient(135deg, #1a1a1a 50%, transparent 50%);
    background-position: calc(100% - 21px) 18px, calc(100% - 15px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.lux-newsletter-form__group input:focus,
.lux-newsletter-form__select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.18);
}

.lux-newsletter-form__checks {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.lux-newsletter-form__check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
}

.lux-newsletter-form__check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--color-accent);
}

.lux-newsletter-form__check a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lux-newsletter-form__check p {
    margin: 0;
}

.lux-newsletter-form__legal {
    margin: -6px 0 22px;
    color: #555;
    font-size: 11px;
    line-height: 1.55;
}

.lux-newsletter-form__legal p {
    margin: 0;
}

.lux-newsletter-form__legal a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lux-newsletter-form__submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 24px;
    background: var(--color-accent);
    color: var(--color-text-white, #ebe6e1);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lux-newsletter-form__submit:hover {
    background: var(--color-accent-dark, #721d2c);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lux-newsletter-modal__alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.lux-newsletter-modal__alert--success {
    background: #f1f8f2;
    color: #245b2f;
}

.lux-newsletter-modal__alert--error {
    background: #fff1f1;
    color: #8b1e1e;
}

@media (max-width: 768px) {
    .lux-newsletter-modal {
        padding: 16px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .lux-newsletter-modal__dialog {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .lux-newsletter-modal__image {
        min-height: 220px;
    }

    .lux-newsletter-modal__content {
        padding: 28px 22px;
    }
}