/* =============================================================
 * hm_landing_pages — single template styling
 * Brand primitives komen uit hm_branding (hm-hero-pill,
 * hm-side-strip, hm-badge, hm-eyebrow). Hieronder alleen de
 * extras specifiek voor de single landing page.
 * ============================================================= */

.hm-lp {
    --hm-lp-max: 1140px;
}

.hm-lp__container {
    max-width: var(--hm-lp-max);
    margin: 0 auto;
    padding-left: 120px;
    padding-right: 24px;
}
.hm-side-strip--right .hm-lp__container {
    padding-left: 24px;
    padding-right: 120px;
}

@media (max-width: 768px) {
    .hm-lp__container,
    .hm-side-strip--right .hm-lp__container {
        padding-left: 64px;
        padding-right: 24px;
    }
}

/* ---------- HERO --------------------------------------------- */
.hm-lp__hero {
    position: relative;
    padding: 48px 24px 110px;
    isolation: isolate;
}

.hm-lp__hero-tab {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hm-lp__hero-logo {
    max-height: 84px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin: 4px 0;
}

.hm-lp__hero-title {
    font-family: var(--hm-font-heading);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    color: var(--hm-color-navy);
    margin: 0;
    line-height: 1.15;
}

.hm-lp__hero-meta {
    margin: 8px 0 0;
    font-family: var(--hm-font-body);
    color: var(--hm-color-ink);
    opacity: 0.85;
    font-size: 0.95rem;
}
.hm-lp__hero-meta strong {
    font-family: var(--hm-font-heading);
    font-weight: 700;
    color: var(--hm-color-navy);
    margin-left: 4px;
}

/* ---------- INTRO grid (body + ad thumb) --------------------- */
.hm-lp__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.hm-lp__intro-grid:not(:has(.hm-lp__thumb-card)) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

@media (max-width: 900px) {
    .hm-lp__intro-grid {
        grid-template-columns: 1fr;
    }
}

.hm-lp__intro-body :is(p, li) {
    font-size: 1.05rem;
    line-height: 1.65;
}
.hm-lp__intro-body :is(h2, h3) {
    margin-top: 1.5em;
}

/* The print-ad mini-thumbnail */
.hm-lp__thumb-card {
    background: #fff;
    border: 1px solid var(--hm-color-line);
    border-radius: var(--hm-radius-lg);
    padding: 18px;
    box-shadow: 0 12px 32px rgba(16, 19, 63, 0.10);
}
.hm-lp__thumb-label {
    margin-bottom: 12px;
}
.hm-lp__thumb-frame {
    border: 1px solid var(--hm-color-line);
    background: #faf7ef;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-lp__thumb-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* ---------- FORM section ------------------------------------- */
.hm-lp__form-section .hm-lp__container {
    max-width: 920px;
}

.hm-lp__form-wrap {
    color: #fff;
    text-align: left;
}
.hm-lp__form-wrap > .hm-eyebrow {
    color: var(--hm-color-gold-soft);
    margin-bottom: 6px;
}
.hm-lp__form-title {
    font-family: var(--hm-font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: #fff;
    margin: 0 0 16px;
}
.hm-lp__action-text {
    background: rgba(255,255,255,0.06);
    border-left: 3px solid var(--hm-color-gold);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    color: #10133F;
}
.hm-lp__action-text :last-child { margin-bottom: 0; }
/* Vaste regel boven het sampleformulier */
.hm-lp__sample-note { margin: -8px 0 20px; font-size: .9rem; line-height: 1.5; color: #5b6070; }

/* Gravity Forms surface — sit it on a white card for legibility on navy */
.hm-lp__form {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 28px;
    box-shadow: 0 18px 48px rgba(16, 19, 63, 0.25);
    color: var(--hm-color-ink);
}
.hm-lp__form .gform_wrapper,
.hm-lp__form .gform_legacy_markup_wrapper {
    color: var(--hm-color-ink);
}

.hm-lp__form-missing {
    padding: 12px;
    border: 1px dashed #cc1818;
    color: #cc1818;
    border-radius: var(--hm-radius);
    background: #fff;
}

/* ---------- Alleen voor leden (QR met camera gescand) -------- */
.hm-lp__members-only {
    padding: 24px;
    border: 1px solid var(--hm-color-line);
    border-radius: var(--hm-radius);
    background: #fff;
    text-align: center;
}

.hm-lp__members-only-lead {
    margin: 0 0 16px;
    color: var(--hm-color-ink);
}

.hm-lp__members-only-cta {
    display: inline-block;
    padding: 12px 26px;
    font-family: var(--hm-font-heading);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--hm-color-navy);
    border: 2px solid var(--hm-color-navy);
    border-radius: var(--hm-radius);
}

.hm-lp__members-only-cta:hover,
.hm-lp__members-only-cta:focus-visible {
    background: var(--hm-color-gold);
    border-color: var(--hm-color-gold);
    color: #fff;
}

.hm-lp__members-only-alt {
    margin: 14px 0 0;
    font-size: 0.9rem;
}

/* ---------- Expired state ------------------------------------ */
.hm-lp__expired-section { text-align: center; }
.hm-lp[data-status="expired"] .awcf_landing_page_expired,
.hm-lp[data-status="scheduled"] .awcf_landing_page_expired {
    font-family: var(--hm-font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hm-color-navy);
    padding: 24px;
}

/* =============================================================
 * Platte single-landing layout (hm-lp--flat) — 7a redesign
 * Geen navy hero; advertentie groot in beeld, daaronder
 * actie-uitleg + auto-gevuld formulier met bevestiging.
 * ============================================================= */
.hm-lp--flat .hm-lp__container {
    padding-left: 24px;
    padding-right: 24px;
}

.hm-lp__head { padding: 40px 0 8px; }
.hm-lp__head-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
}
.hm-lp__banner--static { line-height: 0; }
.hm-lp__banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 470px;
    object-fit: cover;
}
/* Logo groter, op de onderrand van de banner, afgeronde hoeken. */
.hm-lp__head { position: relative; padding-top: 0; }
.hm-lp__logo {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    margin-bottom: 24px;
    box-sizing: border-box;
    height: 120px;
    max-width: 340px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 19, 63, 0.18);
}
.hm-lp__form-badge { margin: 0 0 14px; text-align: center; }
.hm-lp__title {
    font-family: var(--hm-font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: var(--hm-color-navy);
    margin: 0;
    line-height: 1.15;
}
.hm-lp__meta { margin: 0; color: #5b6070; font-size: 0.95rem; }

.hm-lp__ad { padding: 16px 0 8px; }
.hm-lp__ad-frame { margin: 0; }
.hm-lp__ad-img {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 19, 63, 0.16);
}
.hm-lp__ad-cap { display: block; margin-top: 10px; text-align: center; }

/* Gravity Forms samenvatting-blok bovenaan het formulier:
 * toont bekende user-data, verbergt gelijknamige velden in het form. */
.hm-gf-summary {
    background: #f5f2ea;
    border-left: 4px solid var(--hm-color-gold, #9d8100);
    padding: 16px 20px;
    margin: 0 0 20px;
    border-radius: 6px;
    color: var(--hm-color-navy, #10133f);
}
.hm-gf-summary__lead {
    margin: 0 0 12px;
    font-family: var(--hm-font-heading);
    font-weight: 700;
    font-size: 1rem;
}
.hm-gf-summary__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 3px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.hm-gf-summary__label {
    min-width: 150px;
    color: #5b6070;
}
.hm-gf-summary__value { font-weight: 600; }
.hm-gf-summary__foot {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #5b6070;
}
.hm-gf-summary__foot a { color: var(--hm-color-navy, #10133f); }
.gform_wrapper .gfield.hm-gf-hide-known { display: none !important; }

/* Inline advertentie in de linker-kolom van .hm-lp__action-grid:
 * fors kleiner, gecentreerd in de kolom; formulier komt er rechts naast. */
.hm-lp__ad-frame--inline { margin: 0 0 20px 0; text-align: left; }
.hm-lp__ad-img--inline {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 19, 63, 0.14);
}
.hm-lp__ad-frame--inline .hm-lp__ad-cap { text-align: left; margin: 0 0 8px; }

.hm-lp__action { padding: 28px 0 64px; }
.hm-lp__action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}
.hm-lp__action-info { font-size: 1rem; line-height: 1.6; color: var(--hm-color-navy); }
.hm-lp--flat .hm-lp__form-title {
    font-family: var(--hm-font-heading);
    font-weight: 800;
    color: var(--hm-color-navy);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    margin: 0 0 0.5rem;
}

@media (max-width: 860px) {
    .hm-lp__action-grid { grid-template-columns: 1fr; gap: 28px; }
    .hm-lp__ad-img { max-width: 100%; }
}

@media (max-width: 860px) {
    .hm-lp__logo { margin-top: -40px; margin-bottom: 16px; height: 80px; max-width: 240px; padding: 10px 14px; }
}

/* Plus/min-knoppen bij het aantal in het cashbackformulier */
.hm-lp .hm-qty-stepper { display: inline-flex; align-items: stretch; gap: 8px; }
.hm-lp .hm-qty-stepper.hm-qty-stepper input[type="number"] { width: 90px; text-align: center; -moz-appearance: textfield; appearance: textfield !important; }
.hm-lp .hm-qty-stepper.hm-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.hm-lp .hm-qty-stepper.hm-qty-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none !important; display: none; margin: 0; }
.hm-lp .hm-qty-stepper.hm-qty-stepper button {
    min-width: 44px;
    font-size: 1.4rem;
    line-height: 1;
    color: #fff;
    background: var(--hm-color-navy) !important;
    border: 0;
    border-radius: var(--hm-radius, 6px);
    cursor: pointer;
}

/* Video onder de mini-advertentie: even breed als de advertentie, 16:9 */
.hm-lp__video { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(16, 19, 63, 0.14); }
.hm-lp__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.hm-lp__video video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }

/* Cashback: de standaard Gravity Forms-instructie ('Voer een getal groter dan of gelijk aan 1 in') vervalt, de eigen hint met minimum en veelvoud blijft. */
.hm-lp .gfield--type-number .gfield_description.instruction { display: none; }

/* zonder logo: lucht tussen banner en titel (het logo-kader zorgde daar eerder voor) */
.hm-lp__head-inner > .hm-lp__title:first-child { margin-top: 32px; }

/* Cashback en sample: lijst met vinkjes en aantal per product (hm_gf_prefill/multi-products.php) */
.hm-lp .hm-lp-products__intro { margin: 0 0 10px; font-size: .9rem; color: #5b6070; }
.hm-lp .hm-lp-products__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-lp .hm-lp-products__item { margin: 0; padding: 12px 14px; border: 1px solid #d9dbe3; border-radius: var(--hm-radius, 6px); background: #fff; }
.hm-lp .hm-lp-products__item.is-checked { border-color: var(--hm-color-navy); box-shadow: inset 0 0 0 1px var(--hm-color-navy); }
.hm-lp .hm-lp-products__pick { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 600; cursor: pointer; }
.hm-lp .hm-lp-products__pick input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hm-color-navy); }
.hm-lp .hm-lp-products__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0 30px; }
.hm-lp .hm-lp-products__qty[hidden] { display: none; }
.hm-lp .hm-lp-products__qty-label { font-size: .9rem; }
.hm-lp .hm-lp-products__qty .hm-qty-hint { flex-basis: 100%; font-size: .85rem; color: #555; }
@media (max-width: 480px) {
    .hm-lp .hm-lp-products__qty { margin-left: 0; }
}

/* Actieve pagina: kop (logo, titel, geldig t/m) links boven, formulier rechts ernaast in het eerste scherm.
 * Mobiel volgt de DOM-volgorde: kop, formulier, advertentie. Vorige/volgende-balk staat eronder. */
.hm-lp__action--top { padding-top: 0; }
.hm-lp__head--grid { padding: 0; }
.hm-lp__action--top + .hm-livebeurs-pager { padding-top: 0; }
@media (min-width: 861px) {
    .hm-lp__action--top .hm-lp__action-grid { grid-template-rows: auto 1fr; row-gap: 28px; }
    .hm-lp__action--top .hm-lp__head--grid { grid-column: 1; grid-row: 1; }
    .hm-lp__action--top .hm-lp__action-info { grid-column: 1; grid-row: 2; }
    .hm-lp__action--top .hm-lp__form-col { grid-column: 2; grid-row: 1 / span 2; padding-top: 32px; }
}

/* Gegevensblok ingeklapt: één regel, details via "Bekijk gegevens" (hm_gf_prefill_summarize_known) */
.hm-gf-summary__toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; cursor: pointer; list-style: none; }
.hm-gf-summary__toggle::-webkit-details-marker { display: none; }
.hm-gf-summary__toggle:focus-visible { outline: 2px solid var(--hm-color-navy); outline-offset: 4px; }
.hm-gf-summary__toggle .hm-gf-summary__lead { margin: 0; }
.hm-gf-summary__short { font-weight: 600; }
.hm-gf-summary__more,
.hm-gf-summary__less { font-size: 0.85rem; color: var(--hm-color-navy, #10133f); text-decoration: underline; }
.hm-gf-summary__less,
.hm-gf-summary[open] .hm-gf-summary__more { display: none; }
.hm-gf-summary[open] .hm-gf-summary__less { display: inline; }
.hm-gf-summary__body { margin-top: 12px; }

/* Navigatie onder het logo (18-11-2026): Terug naar het magazine + pijlen vorige/volgende actie. */
.hm-lp__nav { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: -8px 0 8px; }
.hm-lp__head-inner > .hm-lp__nav:first-child { margin-top: 24px; }
.hm-lp__nav:not(:has(> :not([hidden]))) { display: none; }
.hm-lp__mag-back[hidden] { display: none; }
.hm-lp__mag-back { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--hm-color-navy); color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .2s; }
.hm-lp__mag-back span { font-size: 1.35rem; line-height: .8; }
.hm-lp__mag-back:hover, .hm-lp__mag-back:focus-visible { background: var(--hm-color-gold); color: #fff; }
@media (max-width: 860px) {
    .hm-lp__nav { margin: -4px 0 6px; }
}
/* Desktop (twee kolommen): pijlen en Alle acties bij elkaar onder het logo, niet uitgespreid tot
 * tegen het formulier (18-11-2026, Mark). Mobiel blijven de pijlen aan de randen (duim). */
@media (min-width: 861px) {
    .hm-lp__nav .hm-livebeurs-pager { justify-content: flex-start; gap: 16px; width: auto; }
}
