/*
 * Styles for the "Najaarsactie" (autumn promo) campaign landing page.
 * Builds on the tokens defined in site.css (--prostor-navy, --prostor-red, ...).
 */

.promo-layout {
  background: var(--prostor-bg-light);
  padding: 70px 0 80px;
}

.promo-layout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.promo-layout__intro,
.promo-layout__form {
  /* Grid items default to min-width: auto, which floors their width at
     their content's min-content size (e.g. the longest unbroken word —
     see site.css's note on "TERRASVERWARMING" etc.) — without this,
     that silently overflows the grid track instead of wrapping. */
  min-width: 0;
}

.promo-layout__intro {
  text-align: center;
}

/* Desktop: intro (copy, photos, video/brochure/inspire) on the left,
   the quote form on the right — see templates/page-campaign.php. Below
   this, everything stacks in DOM order (intro, then form), which is
   also what the brief wants on mobile. */
@media (min-width: 1100px) {
  .promo-layout__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 820px);
    align-items: start;
  }

  .promo-layout__intro {
    text-align: left;
  }

  .promo-layout__intro .promo-hero__sub,
  .promo-layout__intro .promo-hero__body,
  .promo-layout__intro .promo-hero__discount,
  .promo-layout__intro .promo-hero__validity {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  /* Keeps its own 640px measure (avoids oversized photos on very wide
     screens) but shouldn't stay centered once the text around it is
     left-aligned. */
  .promo-layout__intro .promo-photos {
    margin-left: 0;
    margin-right: 0;
  }

  /* The site's h1 is 60px, sized for a full-width hero — too large for
     this narrower column, wrapping to an awkward 4 lines. */
  .promo-layout__intro h1,
  .promo-layout__form h2 {
    font-size: 40px;
  }

  .promo-layout__intro .promo-extras {
    align-items: flex-start;
  }

  .promo-layout__intro .extras-ctas {
    justify-content: flex-start;
  }
}

.promo-hero__eyebrow {
  color: var(--prostor-red);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.promo-hero h1 {
  margin-bottom: 8px;
}

.promo-hero__sub {
  font-size: 20px;
  font-weight: 600;
  color: var(--prostor-navy);
  margin: 0 auto 14px;
  max-width: 640px;
}

.promo-hero__body {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.6;
}

/* Jumps to the form; mobile only, the desktop form sits right beside the copy. */
.promo-cta {
  justify-self: center;
  margin: 4px auto 24px;
  background-color: var(--prostor-red);
  border: 2px solid var(--prostor-red);
  border-radius: 24px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  text-decoration: none;
}

.promo-cta:hover,
.promo-cta:focus {
  background-color: var(--prostor-navy-dark);
  border-color: var(--prostor-navy-dark);
  color: #fff;
}

@media (min-width: 1100px) {
  .promo-cta {
    display: none;
  }
}

/* The two photos from the client's proposal doc: a wide hospitality/
   horeca shot and a narrower heater close-up, side by side. */
.promo-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 22px;
}

.promo-photos img {
  /* Same grid min-content gotcha as .promo-layout__intro above, one
     level deeper: without this, the narrow (portrait, 413x528)
     photo's own intrinsic width becomes a floor on its 1fr track. */
  min-width: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--prostor-border);
}

.promo-hero__discount {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 19px;
  color: var(--prostor-navy);
}

.promo-hero__discount strong {
  color: var(--prostor-red);
  text-decoration: underline;
}

.promo-hero__validity {
  max-width: 640px;
  margin: 0 auto 4px;
  font-size: 15px;
}

.promo-hero__disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--prostor-blue-grey);
}

/* Quote form column — title lives inside the white .quote-form box,
   styled to match the intro column's h1 rather than the theme's own
   (differently sized/weighted, non-uppercase) h2: same size at every
   breakpoint (30px by default, 60px from 736px, 40px from 1100px
   alongside the h1 override below) plus the same weight/case. */
.promo-layout__form h2 {
  margin: 0 0 40px;
  text-align: left;
  font-weight: 400;
  text-transform: uppercase;
}


.quote-form {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--prostor-border);
  padding: 40px;
}

.quote-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 30px;
}

.quote-form legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--prostor-navy);
  margin-bottom: 10px;
  padding: 0;
}

.quote-form .form-item {
  margin-bottom: 24px;
  min-width: 0;
}

.quote-form .form-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .quote-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .quote-form .form-row--contact {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-form label:not(.radio-pill):not(.product-card) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--prostor-navy);
  margin-bottom: 8px;
}

.quote-form .required-marker {
  color: var(--prostor-red);
  margin-left: 2px;
}

.quote-form input[type='text'],
.quote-form input[type='email'],
.quote-form input[type='tel'],
.quote-form select,
.quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 2px solid var(--prostor-border);
  background: var(--prostor-bg-light);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--prostor-navy);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-form select {
  appearance: auto;
  padding-right: 32px;
}

.quote-form #field-country,
.quote-form #field-postcode {
  height: 54px;
}

.quote-form #field-country,
.quote-form #field-dealer {
  -webkit-appearance: none;
  appearance: none;
  background-image: url('/themes/gbltheme/img/select.svg');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 6px;
  padding-right: 44px;
}

.quote-form #field-dealer.dealer-select--ready {
  border-color: var(--prostor-red);
  box-shadow: 0 0 0 2px rgb(230 29 45 / 12%);
}

.geocoding-attribution {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
}

.quote-form textarea {
  min-height: 110px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--prostor-red);
  background: #fff;
}

.quote-form .form-item--error input,
.quote-form .form-item--error select,
.quote-form .form-item--error textarea {
  border-color: var(--prostor-red-dark);
}

.quote-form .field-error {
  display: block;
  color: var(--prostor-red-dark);
  font-size: 13px;
  margin-top: 6px;
}

.field-note {
  font-size: 13px;
  color: var(--prostor-blue-grey);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Radio pills (customer type, lighting power) */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--prostor-border);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  background: var(--prostor-bg-light);
}

.radio-pill:has(input:checked) {
  border-color: var(--prostor-red);
  background: #fff;
}

/* Product picker */
.product-grid {
  display: grid;
  /* Two per row on phones as well: one per row made the six cards ~1,000px tall. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  display: block;
  min-width: 0;
  border: 2px solid var(--prostor-border);
  padding: 16px;
  cursor: pointer;
  position: relative;
  background: #fff;
}

.product-card:has(input:checked) {
  border-color: var(--prostor-red);
}

.product-card input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-card__media {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.product-card__media img {
  max-width: 100%;
  max-height: 110px;
}

.product-card__body {
  display: block;
}

.product-card__name {
  display: block;
  font-weight: 600;
  color: var(--prostor-navy);
  margin-bottom: 2px;
}

.product-card__type {
  display: block;
  font-size: 13px;
  color: var(--prostor-blue-grey);
}

/* Two cards per row on phones: less padding and a smaller image leave the name room. */
@media (max-width: 639.98px) {
  .product-card {
    padding: 12px;
  }

  .product-card__media img {
    max-height: 80px;
  }
}

/* Accessories */
.accessory-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--prostor-bg-light);
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
}

.accessory-option input {
  margin-top: 3px;
}

.accessory-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 10px;
}

.accessory-tag--promo {
  background: var(--prostor-red);
  color: #fff;
}

.accessory-tag--brand {
  background: var(--prostor-navy);
  color: #fff;
}

.accessory-suboptions {
  margin: -4px 0 10px 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--prostor-blue-grey);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.accessory-suboptions[hidden] {
  display: none !important;
}

.accessory-suboptions__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--prostor-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.consent-item label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: inherit !important;
  cursor: pointer;
}

.consent-item input {
  margin-top: 3px;
}

.consent-item a {
  color: var(--prostor-red);
}

.quote-form .form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.quote-form input[type='submit'] {
  align-items: center;
  background-color: var(--prostor-red);
  border: 2px solid var(--prostor-red);
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 32px;
  transition: all 0.15s ease;
}

.quote-form input[type='submit']:hover,
.quote-form input[type='submit']:focus {
  background-color: var(--prostor-navy-dark);
  border-color: var(--prostor-navy-dark);
}

.quote-form input[type='submit'][disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 14px;
  color: var(--prostor-red-dark);
}

.required-note {
  font-size: 12px;
  color: var(--prostor-blue-grey);
  margin: 16px 0 0;
}

.recaptcha-note {
  font-size: 11px;
  color: var(--prostor-blue-grey);
  margin: 8px 0 0;
  line-height: 1.5;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* Google allows hiding its badge when the notice above is shown; on phones it covered the promo copy. */
.grecaptcha-badge {
  visibility: hidden;
}

.dealer-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--prostor-blue-grey);
  margin: 8px 0 0;
}

/* Clears the fixed 88px page header when the "request a quote" buttons jump here. */
#quote-form {
  scroll-margin-top: 104px;
}

.sticky-cta {
  display: none;
}

/*
 * Phones and tablets, below the two-column layout (2026-10-19). Everything used to stack in DOM order,
 * so the first form field sat 2.2 screens down, the postcode 4.2 and the submit button 4.8 of 6.7
 * screens, and 4% of visitors reached the postcode. Now: copy, button, offer, form, then photos and
 * extras. The DOM order is unchanged and desktop untouched: the intro's children join the grid instead.
 */
@media (max-width: 1099.98px) {
  .promo-layout__grid {
    row-gap: 0;
  }

  .promo-layout__intro {
    display: contents;
  }

  .promo-layout__intro > * {
    order: 1;
    min-width: 0;
  }

  /* Grid items' margins don't collapse: keep the eyebrow-to-heading gap of the block layout. */
  .promo-layout__intro > h1 {
    margin-top: 8px;
  }

  .promo-layout__intro > .promo-hero__discount,
  .promo-layout__intro > .promo-hero__validity,
  .promo-layout__intro > .promo-hero__disclaimer {
    order: 2;
  }

  .promo-layout__form {
    order: 3;
    margin-top: 28px;
  }

  .promo-layout__intro > .promo-photos {
    order: 4;
    margin-top: 48px;
  }

  .promo-layout__intro > .promo-extras {
    order: 5;
    margin-top: 6px;
  }

  .sticky-cta:not([hidden]) {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    text-align: center;
    background-color: var(--prostor-red);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 24px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(1, 30, 65, 0.25);
  }
}

/* Extras: brochure / video / inspire — sits in the intro column now,
   see templates/page-campaign.php's .promo-extras. */
.promo-extras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.promo-extras .extras-card--video {
  width: 100%;
}

.extras-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.extras-ctas .extras-card {
  flex: 1 1 220px;
  justify-content: center;
  background-color: var(--prostor-red);
  border: 2px solid var(--prostor-red);
  border-radius: 24px;
  color: #fff;
  font-size: 15px;
  padding: 15px 32px;
  transition: all 0.15s ease;
}

.extras-ctas a.extras-card:hover {
  background-color: var(--prostor-navy-dark);
  border-color: var(--prostor-navy-dark);
}

.extras-ctas .extras-card__icon--download,
.extras-ctas .extras-card__icon--inspire {
  filter: brightness(0) invert(1);
}

.extras-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 24px;
  background: var(--prostor-bg-light);
  border: 1px solid var(--prostor-border);
  text-decoration: none;
  color: var(--prostor-navy);
  font-weight: 600;
}

a.extras-card:hover {
  border-color: var(--prostor-red);
}

.extras-card__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: no-repeat center / contain;
}

.extras-card__icon--download {
  background-image: url('/themes/gbltheme/img/icon-download.svg');
}

.extras-card__icon--inspire {
  background-image: url('/themes/gbltheme/img/arrow-right.svg');
}

.extras-card--video {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thank-you page (shared with admin login look) */
.thanks-section {
  padding: 120px 0;
  text-align: center;
}

.thanks-section__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: url('/themes/gbltheme/img/check.svg') no-repeat center / contain;
}

.thanks-section h1 {
  margin-bottom: 16px;
}

.thanks-section p {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
}

.thanks-section .button--type-default {
  display: inline-flex;
  align-items: center;
  background-color: var(--prostor-navy);
  border: 2px solid var(--prostor-navy);
  border-radius: 24px;
  color: #fff;
  font-weight: 600;
  padding: 15px 32px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.thanks-section .button--type-default:hover {
  background-color: var(--prostor-red);
  border-color: var(--prostor-red);
}
