/* ===== SHARED NARROW CONTAINER (FAQ, etc) ===== */

.container-narrow {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 30px 0 20px;
}

/* ===== SINGLE MEDIA IMAGE (replaces the old multi-image carousel per block) ===== */

.media-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* ===== HORIZONTAL MEDIA CAROUSEL (for slots with more than one image) ===== */

.media-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
}

.media-carousel-track::-webkit-scrollbar {
    display: none;
}

.media-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.media-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.media-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.media-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.media-carousel-dot.active {
    background: var(--logo-green);
    transform: scale(1.2);
}

/* ===== DARK VARIANT OF THE TEXT+IMAGE SPLIT BLOCK ===== */

#about,
.section-dark-split {
    padding: 100px 0;
}

.section-dark-split {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* 37m2's Priekšrocības sits directly above the black Plānojums section —
   a distinct dark gray (not pure black) keeps the two visually separate. */
#advantages.section-dark-split {
    background: #2b2b2b;
}

@media (max-width: 768px) {
    /* Generous bottom room — mandatory scroll-snap otherwise yanks you into
       the next section before you've finished reading. */
    #about,
    .section-dark-split {
        padding: 60px 0 120px;
    }
}

.section-dark-split h1,
.section-dark-split h2,
.section-dark-split h3 {
    color: var(--text-dark);
}

/* ===== CALCULATOR INTRO PARAGRAPH ===== */

.section-intro {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== EARLY-OFFER TEASER STRIP ===== */

.teaser-strip {
    min-height: auto;
    padding: 14px 0;
    background: rgba(45, 196, 0, 0.06);
    border-top: 1px solid rgba(45, 196, 0, 0.15);
    border-bottom: 1px solid rgba(45, 196, 0, 0.15);
}

.teaser-inner {
    /* Matches .container's max-width so the label has enough room to sit
       on one line instead of wrapping into a needlessly tall block. */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Label + note are one related unit — kept close together — while the
   gap up on .teaser-inner is what separates that text block from the
   form below. */
.teaser-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.teaser-label,
.teaser-note,
.teaser-status {
    margin: 0; /* override the global p{margin-bottom:30px} */
}

.teaser-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
}

.teaser-note {
    font-size: 0.78rem;
    color: var(--muted);
}

.teaser-action {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.teaser-form {
    display: flex;
    gap: 10px;
}

.teaser-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.95rem;
}

.teaser-input:focus {
    outline: none;
    border-color: var(--logo-green);
}

.teaser-submit {
    width: auto;
    flex-shrink: 0;
    margin-top: 0;
    padding: 12px 24px;
    white-space: nowrap;
}

.teaser-status:not(:empty) {
    margin-top: 8px;
}

/* Desktop: label+note on the left, email+button on the right, so the
   strip doesn't need a full extra screenful of vertical space. */
@media (min-width: 1024px) {
    .teaser-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: 0 60px;
        text-align: left;
    }

    .teaser-text {
        /* Never wrap the label — shrink the action column instead if the
           two ever compete for space. */
        flex: 1 1 auto;
        min-width: max-content;
        text-align: left;
    }

    .teaser-action {
        flex: 0 1 380px;
        width: auto;
    }

    .teaser-status {
        text-align: left;
    }

    .teaser-input {
        min-width: 140px;
    }
}
