/*
 * Hero with the quote card.
 * Figma: Hero 418:29 (desktop 1440) / 422:102 (mobile 390); Instant Quote
 * 352:221 and Snowbird 352:11 share the layout. Values read with the Figma
 * plugin API (getCSSAsync) in Dev Mode on 2026-11-19 [M].
 * Quote card: 418:64 (step 1) and 360:51 (step 2, cached).
 *
 * The form markup comes from the jandstfeatures plugin
 * (templates/form-jsds.php); js/form.js drives it. jsds-quote.js adds the
 * Yes/No buttons and the step switch.
 */

/* ---------- Section ---------- */

.jsds-hero {
  --jsds-hero-intro: #e6dfe1; /* raw in Figma (same value as border/warm) */
  --jsds-hero-ids: #e5dfe1;   /* raw in Figma */
  position: relative;
  padding: 72px 0 64px;
  background:
    linear-gradient(90deg, rgba(24, 12, 20, 0.72) 0%, rgba(24, 12, 20, 0.45) 45%, rgba(24, 12, 20, 0.12) 100%),
    var(--jsds-hero-photo, none) 50% / cover no-repeat,
    var(--jsds-ink-900);
}

.jsds-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

/* ---------- Copy ---------- */

.jsds-hero__copy {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
  padding-top: 24px;
}

.jsds .jsds-hero__title {
  margin: 0;
  color: var(--jsds-surface-white);
  font: 700 84px/1.02 var(--jsds-font-display); /* Display/Hero 84 */
}

.jsds .jsds-hero__intro {
  margin: 0;
  color: var(--jsds-hero-intro);
  font: 400 21px/1.45 var(--jsds-font-body); /* Body/XL 21 */
}

/* Two columns of points, 32 apart, rows 10 apart */
.jsds .jsds-hero__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 32px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jsds .jsds-hero__point {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--jsds-surface-white);
  font: 600 16px/1.3 var(--jsds-font-body); /* Label/16 SemiBold */
}

.jsds-hero__point img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.jsds .jsds-hero__rating {
  margin: 0;
  color: var(--jsds-surface-white);
  font: 700 18px/1.3 var(--jsds-font-body);
}

.jsds-hero__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Figma frames 82x56 and 88x60. The files are Figma's own 2x renders of
   those frames (logos centred and tinted white), so they fill the box.
   The ID guard beats Divi's `img { height: auto }` variants. */
.jsds-hero__fmcsa:not(#jsds-id-guard),
.jsds-hero__bbb:not(#jsds-id-guard) {
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
}

.jsds-hero__fmcsa:not(#jsds-id-guard) { width: 82px; height: 56px; }

.jsds-hero__bbb:not(#jsds-id-guard) {
  width: 88px;
  height: 60px;
  margin-left: 12px; /* the 12x1 "gap" frame between the ids and BBB */
}

.jsds .jsds-hero__ids {
  margin: 0;
  padding: 0;
  color: var(--jsds-hero-ids);
  font: 600 16px/1.3 var(--jsds-font-body);
  white-space: nowrap;
}

/* ---------- Quote card ---------- */

.jsds-hero__quote {
  flex: 0 0 440px;
  width: 440px;
  scroll-margin-top: 16px; /* "Get Instant Quote" buttons scroll here */
}

.jsds-qf {
  padding: 28px 28px 24px;
  background: var(--jsds-surface-white);
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.35);
  color: var(--jsds-ink-900);
  text-align: left;
}

/* Every block in the card is 16 apart (Figma gap 16) */
.jsds-qf__form,
.jsds-qf__step,
.jsds-qf__fields,
.jsds-qf__stack,
.form-start,
.jsds-qf__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.jsds .jsds-qf__title {
  margin: 0;
  color: var(--jsds-ink-900);
  font: 700 32px/1.04 var(--jsds-font-display); /* Display/S 32 */
}

.jsds-qf .form-group {
  position: relative;
  margin: 0;
}

/* Bootstrap help text and the plugin's lookup messages, in the card style */
.jsds-qf .help-block,
.jsds-qf #from_notif,
.jsds-qf #to_notif {
  display: block;
  margin: 6px 0 0;
  color: var(--jsds-ink-500);
  font: 400 13px/1.45 var(--jsds-font-body);
}

.jsds-qf #from_notif:empty,
.jsds-qf #to_notif:empty {
  display: none;
}

/* After Back, leaving a route field re-runs the lookup, which empties the
   line until the answer arrives. Keep its height so Next does not jump
   away from the pointer between mousedown and click. */
.jsds-qf .jsds-qf--route #from_notif.valid:empty,
.jsds-qf .jsds-qf--route #to_notif.valid:empty {
  display: block;
  min-height: 1.45em;
}

.jsds-qf .has-error .help-block,
.jsds-qf .has-error #from_notif,
.jsds-qf .has-error #to_notif {
  color: var(--jsds-brand-red);
}

.jsds-qf .has-error .jsds-input {
  border-color: var(--jsds-brand-red);
}

.jsds-qf .has-success .jsds-input {
  border-color: var(--jsds-accent-success);
}

/* Bootstrap's glyphicon tick/cross from setFieldStatus(); the border shows the state */
.jsds-qf .form-control-feedback {
  display: none;
}

.jsds-qf .hidden {
  display: none !important;
}

.jsds-qf .err {
  color: var(--jsds-brand-red) !important;
  font: 400 13px/1.45 var(--jsds-font-body);
}

/* Inline "What is my vehicle type?" link on the label */
.jsds-qf__aside {
  float: right;
  color: var(--jsds-brand-red);
  font-weight: 400;
  font-size: 13px;
}

/* Two equal columns for the Yes/No questions (Figma rows of 186 + 12 + 186) */
.jsds-qf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.jsds-qf__cell {
  min-width: 0;
}

/* Selects replaced by Yes/No buttons (jsds-quote.js). Kept 1px so jQuery's
   ":visible" (used by form.js to collect extras) still sees them. */
.jsds-qf select.jsds-input.jsds-visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}

/* Plugin hint boxes (vehicle type, inoperable): helper style */
.jsds-qf #type_vid_desc:not(:empty),
.jsds-qf #condition_1nsub,
.jsds-qf [id$="_desc"]:not(:empty) {
  color: var(--jsds-ink-500);
  font: 400 13px/1.45 var(--jsds-font-body);
}

/* ---------- Dealer question (not in Figma; Choice styling) ---------- */

.jsds-qf .jsds-choice__options {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jsds-qf .jsds-choice__option label {
  display: block;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

/* Legacy #et-main-area label (staging only: 14px, line-height 16.94px,
   letter-spacing 0.3px, margin-bottom 13px; Bootstrap adds 5px locally)
   spread every hero's quote card. Labels in the card take their spacing
   from the field gap (6) and the legend margin (6), as designed. Every
   label in the card, step 2 included (the segmented Yes/No labels
   jsds-quote.js builds, the plugin's classic / enclosed radios). Only
   margin-bottom: the segmented labels keep their -1.5px shared border. */
.jsds-qf label:not(#jsds-id-guard) {
  margin-bottom: 0;
  letter-spacing: 0;
}

.jsds-qf .jsds-field__label:not(#jsds-id-guard) {
  font: 600 14px/1.3 var(--jsds-font-body);
}

.jsds-qf .jsds-choice__legend label:not(#jsds-id-guard),
.jsds-qf .jsds-choice__option label:not(#jsds-id-guard),
.jsds-qf label.jsds-choice__option:not(#jsds-id-guard) {
  font: inherit;
}

/* ---------- Actions ---------- */

.jsds-qf .jsds-qf__submit {
  width: 100%;
}

.jsds-qf__back {
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jsds-ink-500);
  font: 400 13px/1.45 var(--jsds-font-body);
  text-decoration: underline;
  cursor: pointer;
}

.jsds-qf__back:focus-visible {
  outline: var(--jsds-focus-ring);
  outline-offset: 2px;
}

.jsds .jsds-qf__call {
  margin: 0;
  color: var(--jsds-ink-500);
  font: 400 13px/1.45 var(--jsds-font-body); /* Body/XS 13, centred */
  text-align: center;
}

.jsds .jsds-qf__call a:not(#jsds-id-guard) {
  color: inherit;
  text-decoration: none;
}

.jsds .jsds-qf__call a:hover:not(#jsds-id-guard) {
  text-decoration: underline;
}

.jsds-qf .steploader {
  margin: 0;
  text-align: center;
  color: var(--jsds-ink-500);
  font: 400 13px/1.45 var(--jsds-font-body);
}

.jsds-qf .steploader.truck {
  max-width: 120px;
  margin: 0 auto;
}

/* ---------- Legacy theme isolation ----------
   The legacy child style.css styles every control inside #et-main-area:
   `#et-main-area button` (yellow), `#et-main-area .form-submit button`
   (18/31 padding, radius 5) and `#et-main-area input[type=text]`
   (35px high, `padding: 5px 14px !important`, radius 5, 14px text).
   :not(#jsds-id-guard) adds ID specificity; padding needs !important to
   beat theirs. Values repeat the Button and Field (large) components. */

.jsds-qf button.jsds-btn:not(#jsds-id-guard) {
  height: 56px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--jsds-brand-red);
  color: var(--jsds-surface-white);
  font: 600 22px/1 var(--jsds-font-display);
  text-transform: none;
}

.jsds-qf button.jsds-btn:hover:not(#jsds-id-guard),
.jsds-qf button.jsds-btn:active:not(#jsds-id-guard) {
  background: var(--jsds-brand-red-hover);
  color: var(--jsds-surface-white);
}

.jsds-qf button.jsds-qf__back:not(#jsds-id-guard) {
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--jsds-ink-500) !important; /* legacy: .form-submit button { color: #fff !important } */
  font: 400 13px/1.45 var(--jsds-font-body);
}

.jsds-qf button.jsds-qf__back:hover:not(#jsds-id-guard),
.jsds-qf button.jsds-qf__back:focus:not(#jsds-id-guard) {
  background: none;
  color: var(--jsds-ink-900) !important;
}

.jsds-qf input.jsds-input:not(#jsds-id-guard),
.jsds-qf select.jsds-input:not(.jsds-visually-hidden):not(#jsds-id-guard) {
  height: auto;
  margin: 0;
  padding: 13px 14px !important;
  border: 1.5px solid var(--jsds-border-field);
  border-radius: 0;
  background-color: var(--jsds-surface-white);
  color: var(--jsds-ink-900);
  font: 400 17px/1.5 var(--jsds-font-body);
  font-size: 17px !important; /* legacy style.css: 14px !important */
  width: 100% !important; /* plugin st.css: .ff_field { width: 230px !important } */
}

.jsds-qf select.jsds-input:not(.jsds-visually-hidden):not(#jsds-id-guard) {
  padding-right: 42px !important;
}

.jsds-qf input.jsds-input:focus:not(#jsds-id-guard),
.jsds-qf select.jsds-input:focus:not(#jsds-id-guard) {
  border-color: var(--jsds-ink-900);
  outline: none;
}

.jsds-qf .has-error input.jsds-input:not(#jsds-id-guard) {
  border-color: var(--jsds-brand-red);
}

.jsds-qf .has-success input.jsds-input:not(#jsds-id-guard) {
  border-color: var(--jsds-accent-success);
}

/* form.js adds Bootstrap column classes to .extras at runtime
   (col-md-3/col-lg-3 or -4: float, 25%/33% width, 15px side padding).
   The card lays them out with its own grid instead. */
.jsds-qf .extras[class*="col-"]:not(#jsds-id-guard) {
  float: none;
  width: auto;
  min-height: 0;
  padding-right: 0;
  padding-left: 0;
}

/* ---------- Steps ----------
   Step 1: route, dealer question, Next.
   Step 2 (form.js adds .jst-start-done after Next): vehicle and details,
   See My Quote, Back. .jsds-qf--route (Back) shows step 1 again. */

.jsds-qf__step--vehicle,
.jsds-qf__form:not(.jst-start-done) .form-submit {
  display: none;
}

.jst-start-done .jsds-qf__step--route {
  display: none;
}

.jst-start-done .jsds-qf__step--vehicle {
  display: flex;
}

.jst-start-done .form-start-next {
  display: none;
}

.jsds-qf__form.jsds-qf--route .jsds-qf__step--route,
.jsds-qf__form.jsds-qf--route .form-start-next {
  display: flex;
}

.jsds-qf__form.jsds-qf--route .jsds-qf__step--vehicle,
.jsds-qf__form.jsds-qf--route .form-submit {
  display: none;
}

/* The plugin form adds this for its own step layouts */
.jsds-qf .form-start-next {
  padding: 0;
  text-align: left;
}

/* Dealer wording for extra questions. form.php keeps these rules on
   .form-quote, which this form does not use: form.js adds
   jst-answer-dealer to the form once "Yes, I'm a dealership" is picked. */
.jsds-qf .extra-text-dealer {
  display: none;
}

.jsds-qf__form.jst-answer-dealer .extra-text-dealer {
  display: inline;
}

.jsds-qf__form.jst-answer-dealer .extra-text-default.has-dealer-text {
  display: none;
}

/* ---------- Extra question info (i) ----------
   The plugin's long descriptions open from a button beside the label. */
/* Inline flow, so on a wrapped label the (i) follows the last word */
.jsds-qf__label-row {
  display: block;
}

.jsds-qf__label-row .jsds-field__label:not(#jsds-id-guard) {
  display: inline;
  margin: 0;
}

.jsds-qf button.jsds-qf__info-btn:not(#jsds-id-guard) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -4px 0 -4px 2px;
  vertical-align: middle;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--jsds-ink-500) !important;
  line-height: 0;
  cursor: pointer;
}

.jsds-qf button.jsds-qf__info-btn:hover:not(#jsds-id-guard),
.jsds-qf button.jsds-qf__info-btn[aria-expanded="true"]:not(#jsds-id-guard) {
  background: none;
  color: var(--jsds-ink-900) !important;
}

.jsds-qf button.jsds-qf__info-btn:focus-visible {
  outline: var(--jsds-focus-ring);
  outline-offset: 0;
}

.jsds-qf__info[hidden] {
  display: none !important;
}

.jsds-qf__info {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--jsds-surface-page);
}

.jsds-qf__info .jsds-field__help {
  margin: 0;
}

/* ---------- Tablet: stack, desktop type ---------- */

@media (max-width: 1099px) {
  .jsds-hero__inner {
    flex-direction: column;
    gap: 40px;
  }

  .jsds-hero__copy {
    flex: none;
    width: 100%;
  }

  .jsds-hero__quote {
    flex: none;
    width: 100%;
    max-width: 440px;
  }
}

/* ---------- Mobile (422:102) ---------- */

@media (max-width: 767px) {
  /* Client change 2026-11-24 (Staging Changes PDF, item 2): less space
     above the headline (was 44 + the copy's 24 top padding) */
  .jsds-hero {
    padding: 24px 0 44px;
    background:
      linear-gradient(90deg, rgba(24, 12, 20, 0.72) 0%, rgba(24, 12, 20, 0.45) 45%, rgba(24, 12, 20, 0.12) 100%),
      var(--jsds-hero-photo-sm, var(--jsds-hero-photo, none)) 50% / cover no-repeat,
      var(--jsds-ink-900);
  }

  /* Quote card right after the intro, so "Get your price" is on the first
     screen: headline, intro, card, points, rating line, badges. The copy
     box drops out of the layout and its children join the card in one
     column. */
  .jsds-hero__inner {
    gap: 22px;
  }

  .jsds-hero__copy {
    display: contents;
  }

  .jsds-hero__title,
  .jsds-hero__intro {
    order: 1;
  }

  .jsds-hero__quote {
    order: 2;
  }

  .jsds-hero__points,
  .jsds-hero__rating,
  .jsds-hero__badges {
    order: 3;
  }


  .jsds .jsds-hero__title {
    font-size: 44px;
  }

  .jsds .jsds-hero__intro {
    font-size: 17px;
    line-height: 1.5;
  }

  .jsds .jsds-hero__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .jsds-hero__quote {
    max-width: none;
  }

  .jsds-qf {
    padding: 28px 20px 24px;
  }
}
