/* =========================================================
   DBD QUOTE BUILDER - PHASE 2.1 REDESIGN
   Load this AFTER qbp-frontend.css
========================================================= */

/* =========================================================
   QBP BASE FOUNDATION
   Layout/reset only. No visual design.
========================================================= */

.qbp-root {
  max-width: none;
  background: #010101;
  padding: 24px 42px 40px;
  border-radius: 0 0 22px 22px;
}

.qbp-root *,
.qbp-root *::before,
.qbp-root *::after {
  box-sizing: border-box;
}

.qbp-root .qbp-card,
.qbp-root .qbp-app {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

/* Divi width fixes */
.et_pb_row:has(.qbp-root),
.et_pb_column:has(.qbp-root),
.et_pb_module:has(.qbp-root) {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Form foundation */
.qbp-root select,
.qbp-root input,
.qbp-root textarea,
.qbp-root button {
  box-sizing: border-box;
  font-family: inherit;
}

.qbp-root select,
.qbp-root input,
.qbp-root textarea {
  max-width: 100%;
}

/* Holder foundation */
.qbp-holder,
.qbp-step {
  width: 100%;
  min-width: 0;
}

.qbp-results-holder,
.qbp-square-slot-picker {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   1. PHASE 2.1 PAGE SHELL
========================================================= */

.qbp-root {
  max-width: none;
  background: #000;
  padding: 24px 42px 40px;
  border-radius: 0 0 22px 22px;
}

.qbp-root .qbp-card > h2,
.qbp-root .qbp-card > .qbp-title {
  display: none !important;
}

.qbp-vehicle-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
}

/* =========================================================
   2. TOP PROGRESS STEPPER
========================================================= */

.qbp-flow-stepper {
  display: grid;
  grid-template-columns: auto 150px auto 150px auto;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  margin: 0 auto 16px;
  max-width: 1120px;
}

.qbp-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #777;
  min-width: 0;
  text-align: left;
}

.qbp-flow-step > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qbp-flow-step span {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);

  display: grid;
  place-items: center;

  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.qbp-flow-step strong {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 1px;
}

.qbp-flow-step small {
  display: block;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  margin-top: -1px;
}

.qbp-flow-step.is-active {
  color: #9dff00;
}

.qbp-flow-step.is-active span {
  background: #6fb800;
  color: #ffffff;
  border-color: #9dff00;
  box-shadow: none;
}

.qbp-flow-line {
  height: 1px;
  background: linear-gradient(90deg, #9dff00, rgba(255,255,255,.22));
}

/* =========================================================
   3. PAGE 1 - VEHICLE LAYOUT
========================================================= */

.qbp-vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.qbp-vehicle-main-card,
.qbp-vehicle-side-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #010101;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    0 10px 28px rgba(0, 0, 0, 0.65);
}

.qbp-vehicle-main-card {
  padding: 36px 42px 36px;
  min-height: 520px;
}

.qbp-vehicle-main-card h2 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  text-align: left;
}

.qbp-vehicle-main-card > p {
  color: #c8c8c8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 24px;
  text-align: left;
}

.qbp-vehicle-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 36px;
}

.qbp-vehicle-fields .qbp-holder,
.qbp-vehicle-fields .qbp-step {
  max-width: none;
  margin: 0;
}

.qbp-vehicle-fields .qbp-step label,
.qbp-vehicle-fields .qbp-holder label {
  display: block;
  width: 100%;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 700;
  text-align: left !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-left: 2px;
}

.qbp-vehicle-fields .qbp-step strong {
  display: block;
  width: 100%;
  text-align: left !important;
}

.qbp-required-star {
  color: #ff0000;
  margin-left: 3px;
}

.qbp-vehicle-fields select,
.qbp-vehicle-fields .qbp-custom-select-trigger {
  min-height: 52px;
  width: 100% !important;
  border-radius: 7px !important;

  background-color: #040404 !important;

  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;

  font-size: 18px !important;
  font-weight: 400 !important;

  padding: 12px 46px 12px 16px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 16px rgba(0, 0, 0, 0.22) !important;

  text-align: left !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  position: relative;
}

.qbp-vehicle-fields select:focus {
  border-color: #9dff00 !important;
  box-shadow: 0 0 0 3px rgba(157, 255, 0, 0.14) !important;
}

align-items: flex-start;

.qbp-vehicle-fields .qbp-custom-select-trigger {
  position: relative;
}

.qbp-vehicle-fields .qbp-custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;

  border-right: 3px solid #9dff00;
  border-bottom: 3px solid #9dff00;

  transform: translateY(-65%) rotate(45deg);

  pointer-events: none;
}

.qbp-vehicle-fields .qbp-custom-select.is-open .qbp-custom-select-trigger::after {
  transform: translateY(-35%) rotate(-135deg);
}

.qbp-vehicle-fields .qbp-holder-disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.35);
}

.qbp-vehicle-fields select:disabled,
.qbp-vehicle-fields .qbp-select-disabled {
  cursor: not-allowed;
}

.qbp-vehicle-fields .qbp-holder-loading-options select,
.qbp-vehicle-fields .qbp-holder-loading-options .qbp-custom-select-trigger {
  cursor: wait;
}

.qbp-vehicle-fields .qbp-holder-updating select,
.qbp-vehicle-fields .qbp-holder-updating .qbp-custom-select-trigger {
  cursor: wait;
}

/* =========================================================
   4. PAGE 1 - SIDE CARD
========================================================= */

.qbp-vehicle-side-card {
  min-height: 520px;
  padding: 32px 38px 30px;
  text-align: center;
}

.qbp-side-icon {
  width: 96px;
  height: 110px;
  margin: 0 auto 18px;

  background-image: url("data:image/svg+xml,%3Csvg width='96' height='110' viewBox='0 0 96 110' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 9 C58 18 70 19 80 18 V47 C80 72 66 91 48 102 C30 91 16 72 16 47 V18 C26 19 38 18 48 9 Z' stroke='%2384d400' stroke-width='5' fill='none'/%3E%3Cpath d='M31 55 L43 67 L67 40' stroke='%2384d400' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.qbp-vehicle-side-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0px;
}

.qbp-vehicle-side-card p {
  color: #c7c7c7;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

.qbp-side-tagline {
  max-width: 200px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(157,255,0,.8);
  color: #9dff00;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

/* =========================================================
   5. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .qbp-flow-stepper {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .qbp-flow-line {
    display: none;
  }

  .qbp-vehicle-layout {
    grid-template-columns: 1fr;
  }

  .qbp-vehicle-fields {
    grid-template-columns: 1fr;
  }

  .qbp-vehicle-main-card {
    padding: 30px 24px;
  }

  .qbp-vehicle-main-card h2 {
    font-size: 32px;
  }

  .qbp-vehicle-main-card > p {
    font-size: 17px;
  }

  .qbp-vehicle-side-card {
    padding: 34px 24px;
  }
}

/* =========================================================
   REFRESH / CHOICE CARD LAYOUT
   ---------------------------------------------------------
   Makes the refresh section span the full width row
   underneath the Model + Dually row.
========================================================= */

.qbp-refresh-full-width {
  grid-column: 1 / -1;
}

/* =========================================================
   GENERIC CHOICE PANEL
   ---------------------------------------------------------
   Shared card container used for:
   - Dually cards
   - Refresh cards
========================================================= */

.qbp-choice-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #050505;
  padding: 10px 12px;
}

/* =========================================================
   PANEL TITLE
   ---------------------------------------------------------
   The heading/question shown above the options.
========================================================= */

.qbp-choice-title {
  text-align: left;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* =========================================================
   TWO-COLUMN OPTION LAYOUT
   ---------------------------------------------------------
   Used for Yes/No style card selections.
========================================================= */

.qbp-choice-options-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================================================
   INDIVIDUAL OPTION CARD
   ---------------------------------------------------------
   The clickable selection cards themselves.
========================================================= */

.qbp-choice-option {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;

  min-height: 68px;
  padding: 8px 10px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);

  background: #070707;
  color: #fff;

  cursor: pointer;
  transition: .18s ease;

  text-align: left;
}

/* Main option heading */
.qbp-choice-option strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

/* Supporting subtext */
.qbp-choice-option small {
  display: block;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

/* =========================================================
   RADIO INDICATOR
   ---------------------------------------------------------
   Circular selection indicator on the left side.
========================================================= */

.qbp-choice-radio {
  width: 22px;
  height: 22px;

  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);

  flex: 0 0 22px;
}

/* =========================================================
   SELECTED STATE
   ---------------------------------------------------------
   Visual styling when a card is selected.
========================================================= */

.qbp-choice-option.is-selected {
  border-color: #9dff00;
  box-shadow: 0 0 0 1px rgba(157,255,0,.15);
}

/* Filled radio state */
.qbp-choice-option.is-selected .qbp-choice-radio {
  border-color: #9dff00;
  background: #9dff00;
  box-shadow: inset 0 0 0 4px #050505;
}

/* =========================================================
   DUALLY PANEL TUNING
   ---------------------------------------------------------
   Makes the Dually card group fit neatly in the right-side
   field slot beside Model.
========================================================= */

.qbp-dually-choice-panel {
  padding: 10px 12px;
  min-height: 100%;
}

.qbp-dually-choice-panel .qbp-choice-title {
  font-size: 13px;
  margin-bottom: 8px;
  text-align: left;
}

/* Keep the two choices side-by-side inside the dually panel */
.qbp-dually-choice-panel .qbp-choice-options-two {
  gap: 12px;
}

/* Dually option card layout:
   Row 1: radio + Yes/No
   Row 2: description starts under the radio */
.qbp-dually-choice-panel .qbp-choice-option {
  min-height: 58px;
  padding: 8px 10px;

  display: grid !important;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;

  text-align: left !important;
}

/* Radio circle */
.qbp-dually-choice-panel .qbp-choice-radio {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
}

/* Allow the nested text span to participate in the grid */
.qbp-dually-choice-panel .qbp-choice-option > span:last-child {
  display: contents !important;
}

/* Yes / No label */
.qbp-dually-choice-panel .qbp-choice-option strong {
  grid-column: 2;
  grid-row: 1;

  display: block;
  margin: 0 !important;

  font-size: 15px;
  line-height: 1.1;
  text-align: left !important;
}

/* Description underneath */
.qbp-dually-choice-panel .qbp-choice-option small {
  grid-column: 1 / -1;
  grid-row: 2;

  display: block;
  margin: 0 !important;

  font-size: 12px;
  line-height: 1.25;
  text-align: left !important;
}

/* =========================================================
   PAGE 1 SUBMIT AREA
========================================================= */

.qbp-vehicle-submit {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.qbp-vehicle-error {
  text-align: center;
  color: #ff2a2a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 16px;
}

/* Main CTA button */
.qbp-vehicle-submit-btn {
  width: 100%;
  min-height: 58px;
  
  position: relative;
  justify-content: center;
  padding-right: 72px;

  border: 1px solid rgba(132,212,0,.85);
  border-radius: 7px;

  cursor: pointer;

  background: linear-gradient(180deg, #7cc800 0%, #4f8f00 100%);

  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.025em;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 8px 18px rgba(0,0,0,.25);

  transition: .18s ease;
}

.qbp-vehicle-submit-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.qbp-vehicle-submit-btn:disabled {
  opacity: .72;
  cursor: not-allowed;
  filter: grayscale(.25);
}

.qbp-submit-arrow {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-52%);

  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}