/*
 * Newsletter band — homepage.json newsletterBand: full-bleed photo above, centered form below
 * on --neutrali bg. Underline-style email input per PLAN §2.3 (no boxed .input here).
 */
.pv-newsletter {
    background: var(--neutrali);
}

.pv-newsletter__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1731 / 720;
    object-fit: cover;
}

.pv-newsletter__content {
    max-width: 751px;
    /* Figma 2134:2267: the 285px content block is centered in the 525px newsletter region →
       (525-285)/2 = 120px of breathing room top + bottom. */
    padding-block: 120px;
    text-align: center;
}

.pv-newsletter__eyebrow {
    font-style: italic;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.pv-newsletter__heading {
    margin-top: var(--space-3);
    color: var(--ryski-raudona);
    font-size: clamp(32px, 4vw, 56px);
    /* Figma "Geriausi pasiūlymai" node weight 700, 56/71.7 line-height. */
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

/* Emphasis word bold-italic, matching the sitewide heading motif */
.pv-newsletter__heading em,
.pv-newsletter__heading i {
    font-style: italic;
    font-weight: 700;
}

.pv-newsletter__divider {
    width: 64px;
    margin: var(--space-4) auto;
    border: none;
    border-top: 1px solid var(--juoda);
}

.pv-newsletter__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Figma: heading box-bottom (6242.7) → email input (~6262) ≈ 20px. */
    margin-top: var(--space-4);
    gap: var(--space-3);
}

/* Figma: consent → PRENUMERUOTI button = ~34px (larger than the input→consent gap). */
.pv-newsletter__submit {
    margin-top: var(--space-2);
}

.pv-newsletter__input {
    width: 100%;
    max-width: none;
    padding: var(--space-2) 0;
    border: none;
    border-bottom: 1px solid var(--sub-pilka);
    background: none;
    text-align: center;
}

.pv-newsletter__input::placeholder {
    color: var(--sub-pilka);
}

/* Consent row: the label carries the box only, the blurb sits beside it (client note #21). */
.pv-newsletter__consent {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
}

.pv-newsletter__checkbox {
    display: flex;
    align-items: center;
}

/* Custom consent checkbox — Figma: ~20px rounded square, --neutrali-pilka fill, subtle border */
.pv-newsletter__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 8px;
    background: var(--neutrali-pilka);
    border: 1px solid var(--sub-pilka);
    cursor: pointer;
}

/* Checked state — Figma "Component 69" (2623:5225): the 20x20 r8 box fills --juoda and carries a
   white 9x6 1px tick inset at 6,7 (Design-QA y≈6320). */
.pv-newsletter__checkbox input[type="checkbox"]:checked {
    background-color: var(--juoda);
    border-color: var(--juoda);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M6 10.2l3 2.8 6-6' fill='none' stroke='white' stroke-width='1'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.pv-newsletter__privacy-link {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pv-newsletter__photo img {
        height: 240px;
    }

    /* Same clamp-floor undershoot as the home headings: the 360px frame draws "GERIAUSI
       PASIŪLYMAI" at a 60px cap height @2x, which the 32px floor renders at 45. */
    .pv-newsletter__heading {
        font-size: 44px;
        line-height: 1.05;
        letter-spacing: 1px;
    }
}
