/* ============================================================
   GEM-CAR Quote Builder
   ============================================================ */

/* -- SECTION WRAPPER ----------------------------------------- */

#quote-builder.gc-quote-builder {
  background:
    radial-gradient(circle at 18% 18%, rgba(244,0,0,0.18) 0%, transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(59,133,202,0.22) 0%, transparent 32%),
    linear-gradient(180deg, #0d0c2e 0%, #1c1a6e 42%, #0d0c2e 100%) !important;
  padding-top: 96px !important;
  padding-bottom: 96px !important;
  overflow: visible !important;
  min-height: auto !important;
}

#quote-builder.gc-quote-builder .sppb-addon-raw-html {
  padding: 0 56px !important;
}

@media (max-width: 767px) {
  #quote-builder.gc-quote-builder {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  #quote-builder.gc-quote-builder .sppb-addon-raw-html {
    padding: 0 20px !important;
  }
}

/* -- APP BASE ------------------------------------------------- */

.gcq-app {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  color: var(--gc-white);
}

.gcq-app *,
.gcq-app *::before,
.gcq-app *::after {
  box-sizing: border-box;
}

.gcq-app button,
.gcq-app input,
.gcq-app select,
.gcq-app textarea {
  font-family: 'Barlow', sans-serif;
}

/* -- HERO ----------------------------------------------------- */

.gcq-hero {
  /*max-width: 860px;*/
  max-width: 1000px;
  margin-bottom: 48px;
}

.gcq-title {
  font-size: clamp(2.6rem, 5vw, 4.6rem) !important;
  line-height: 0.98 !important;
  margin-bottom: 22px !important;
  color: var(--gc-white) !important;
}

.gcq-lead {
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  color: var(--gc-text-muted);
  line-height: 1.45;
  margin-bottom: 24px;
}

.gcq-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gcq-note-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(95,163,224,0.28);
  border-radius: 999px;
  background: rgba(59,133,202,0.10);
  color: var(--gc-blue-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- LAYOUT --------------------------------------------------- */

.gcq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.gcq-builder {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gcq-summary-wrap {
  position: sticky;
  top: 96px;
}

@media (max-width: 1100px) {
  .gcq-layout {
    grid-template-columns: 1fr;
  }

  .gcq-summary-wrap {
    position: static;
  }
}

/* -- PANELS --------------------------------------------------- */

.gcq-panel,
.gcq-summary {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(59,133,202,0.20);
  border-radius: 20px;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gcq-panel {
  padding: 28px;
}

.gcq-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.gcq-panel-header h2 {
  margin: 0 !important;
  color: var(--gc-white) !important;
  font-size: clamp(1.8rem, 3vw, 2.3rem) !important;
  line-height: 1.05 !important;
}

.gcq-panel-header p {
  /*max-width: 420px;*/
  max-width: 500px;
  margin: 0;
  color: var(--gc-text-muted);
  font-size: 1.02rem;
  line-height: 1.4;
  text-align: right;
}

.gcq-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(244,0,0,0.14);
  border: 1px solid rgba(244,0,0,0.28);
  color: #ff7979;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .gcq-panel {
    padding: 22px;
  }

  .gcq-panel-header {
    flex-direction: column;
    gap: 8px;
  }

  .gcq-panel-header p {
    text-align: left;
  }
}

/* -- CURRENCY ------------------------------------------------- */

.gcq-currency-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.gcq-toggle-option {
  margin: 0;
  cursor: pointer;
}

.gcq-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gcq-toggle-option span {
  display: inline-flex;
  justify-content: center;
  min-width: 110px;
  padding: 10px 20px;
  border-radius: 9px;
  color: var(--gc-text-muted);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.gcq-toggle-option input:checked + span {
  background: var(--gc-grad-cta);
  color: var(--gc-white);
  box-shadow: 0 10px 28px rgba(59,133,202,0.32);
}

/* -- BASE PLAN ------------------------------------------------ */

.gcq-base-plan {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(95,163,224,0.26);
  border-radius: 16px;
  background: rgba(59,133,202,0.09);
}

.gcq-base-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--gc-grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gcq-base-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gc-white);
}

.gcq-base-content {
  flex: 1;
  min-width: 0;
}

.gcq-base-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.gcq-base-topline h3 {
  margin: 0 !important;
  color: var(--gc-white) !important;
  font-size: 1.6rem !important;
  line-height: 1.1 !important;
}

#gcqBasePrice {
  white-space: nowrap;
  color: var(--gc-blue-light);
  font-size: 1.2rem;
  font-weight: 800;
}

.gcq-base-content p {
  margin: 0;
  color: var(--gc-text-muted);
  line-height: 1.45;
}

.gcq-stripe-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--gc-text-muted);
  line-height: 1.4;
}

.gcq-stripe-note strong {
  color: var(--gc-white);
}

@media (max-width: 575px) {
  .gcq-base-plan {
    flex-direction: column;
  }

  .gcq-base-topline {
    flex-direction: column;
    gap: 6px;
  }
}

/* -- CHOICE CARDS --------------------------------------------- */

.gcq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gcq-card-grid--conditions {
  grid-template-columns: 1fr;
}

.gcq-choice-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

.gcq-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gcq-choice-visual {
  min-height: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(59,133,202,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.gcq-choice-card:hover .gcq-choice-visual {
  transform: translateY(-2px);
  border-color: rgba(95,163,224,0.36);
  background: rgba(255,255,255,0.055);
}

.gcq-choice-card input:checked + .gcq-choice-visual {
  border-color: rgba(95,163,224,0.65);
  background: rgba(59,133,202,0.16);
  box-shadow: 0 16px 40px rgba(59,133,202,0.14);
}

.gcq-choice-check {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(0,0,0,0.22);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.gcq-choice-card input:checked + .gcq-choice-visual .gcq-choice-check {
  background: var(--gc-grad-cta);
  border-color: transparent;
}

.gcq-choice-card input:checked + .gcq-choice-visual .gcq-choice-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gcq-choice-content {
  min-width: 0;
}

.gcq-choice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gc-white);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.gcq-choice-description {
  display: block;
  color: var(--gc-text-muted);
  font-size: 0.96rem;
  line-height: 1.36;
}

.gcq-choice-price {
  white-space: nowrap;
  color: var(--gc-blue-light);
  font-size: 1.02rem;
  font-weight: 900;
}

.gcq-choice-price--discount {
  color: #72e3a6;
}

.gcq-info-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(95,163,224,0.35);
  background: rgba(59,133,202,0.14);
  color: var(--gc-blue-light);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.gcq-info-btn:hover {
  background: var(--gc-grad-cta);
  color: var(--gc-white);
  transform: scale(1.08);
}

.gcq-validation-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,165,0,0.12);
  border: 1px solid rgba(255,165,0,0.30);
  color: #ffc46b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .gcq-card-grid {
    grid-template-columns: 1fr;
  }

  .gcq-choice-visual {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .gcq-choice-price {
    grid-column: 2;
  }
}

/* -- FORM FIELDS ---------------------------------------------- */

.gcq-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gcq-extra-hours {
  margin-top: 18px;
}

.gcq-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gcq-field--full {
  grid-column: 1 / -1;
}

.gcq-field label {
  color: var(--gc-text-muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.gcq-field input,
.gcq-field select,
.gcq-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: rgba(0,0,0,0.24) !important;
  color: var(--gc-white) !important;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.gcq-field textarea {
  resize: vertical;
  min-height: 110px;
}

.gcq-field select option {
  background: var(--gc-dark-bg);
  color: var(--gc-white);
}

.gcq-field input:focus,
.gcq-field select:focus,
.gcq-field textarea:focus {
  border-color: rgba(95,163,224,0.75) !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 0 0 4px rgba(59,133,202,0.16);
}

.gcq-field-note,
.gcq-small-note {
  color: rgba(160,168,192,0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}

.gcq-small-note {
  margin-top: 14px;
  margin-bottom: 0;
}

.gcq-submit-btn {
  margin-top: 24px;
  width: auto;
}

@media (max-width: 767px) {
  .gcq-form-grid {
    grid-template-columns: 1fr;
  }

  .gcq-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* -- SUMMARY -------------------------------------------------- */

.gcq-summary {
  padding: 24px;
}

.gcq-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gc-text-muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gcq-summary-header strong {
  color: var(--gc-blue-light);
}

.gcq-summary-main {
  padding: 24px 0 18px;
}

.gcq-total-label {
  color: var(--gc-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gcq-monthly-total {
  color: var(--gc-white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.9rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.gcq-before-tax {
  margin-top: 8px;
  color: rgba(160,168,192,0.72);
  font-size: 0.92rem;
}

.gcq-summary-line {
  height: 1px;
  background: rgba(59,133,202,0.20);
  margin: 18px 0;
}

.gcq-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gcq-breakdown-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gcq-breakdown-title {
  color: var(--gc-blue-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gcq-breakdown-row,
.gcq-one-time-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--gc-text-muted);
  font-size: 0.95rem;
  line-height: 1.25;
}

.gcq-breakdown-row strong,
.gcq-one-time-total strong {
  color: var(--gc-white);
  text-align: right;
  white-space: nowrap;
}

.gcq-breakdown-row em {
  color: rgba(160,168,192,0.75);
  font-style: normal;
}

.gcq-breakdown-discount strong {
  color: #72e3a6;
}

.gcq-breakdown-premium strong {
  color: #ffc46b;
}

.gcq-breakdown-subtotal {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

.gcq-breakdown-note {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(160,168,192,0.82);
  font-size: 0.86rem;
  line-height: 1.4;
}

.gcq-one-time-total {
  align-items: center;
  color: var(--gc-white);
  font-size: 1.05rem;
  font-weight: 800;
}

.gcq-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.gcq-summary-btn {
  justify-content: center;
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.92rem;
}

.gcq-summary-disclaimer {
  margin: 16px 0 0;
  color: rgba(160,168,192,0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* -- MODALS --------------------------------------------------- */

.gcq-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gcq-modal.is-open {
  display: flex;
}

.gcq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gcq-modal-card {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  padding: 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59,133,202,0.22), transparent 38%),
    #110f52;
  border: 1px solid rgba(95,163,224,0.32);
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
}

.gcq-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--gc-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gcq-modal-close:hover {
  background: rgba(255,255,255,0.16);
  transform: rotate(90deg);
}

.gcq-modal-type {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gc-blue-light);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gcq-modal-card h3 {
  margin: 0 34px 12px 0 !important;
  color: var(--gc-white) !important;
  font-size: 2rem !important;
  line-height: 1.05 !important;
}

.gcq-modal-card p {
  margin: 0;
  color: var(--gc-text-muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.gcq-modal-price {
  margin-top: 18px;
  color: var(--gc-blue-light);
  font-size: 1.25rem;
  font-weight: 900;
}

/* -- RESPONSIVE TUNING ---------------------------------------- */

@media (max-width: 575px) {
  .gcq-title {
    font-size: 2.5rem !important;
  }

  .gcq-panel,
  .gcq-summary {
    border-radius: 16px;
  }

  .gcq-choice-title {
    font-size: 1rem;
  }

  .gcq-choice-description {
    font-size: 0.92rem;
  }

  .gcq-monthly-total {
    font-size: 3rem;
  }
}

/* -- FORCE STICKY SUPPORT FOR QUOTE BUILDER PAGE -------------- */

body.com-sppagebuilder,
body.com_sppagebuilder,
.body-wrapper,
.body-innerwrapper,
#sp-main,
#sp-main-body,
#sp-component,
#sp-page-builder,
#sp-page-builder .page-content,
#quote-builder,
#quote-builder .sppb-container-inner,
#quote-builder .sppb-row,
#quote-builder .sppb-row-column,
#quote-builder .sppb-column,
#quote-builder .sppb-column-addons,
#quote-builder .sppb-addon-wrapper,
#quote-builder .sppb-addon,
#quote-builder .sppb-addon-content {
  overflow: visible !important;
}

#quote-builder {
  height: auto !important;
  min-height: 100vh !important;
}

.gcq-layout {
  align-items: start !important;
}

.gcq-summary-wrap {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 96px !important;
  align-self: start !important;
  z-index: 50 !important;
}

.gcq-summary {
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
}

/* -- EDGAR REQUESTS / SAFE ADDITIONS - V2 --------------------- */

/* Small "before discount" label added beside the Base plan title */
.gcq-title-note,
.gcq-before-discount-label {
  display: inline-block;
  margin-left: 8px;
  color: rgba(160,168,192,0.78);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: baseline;
}

/* Orange "Too expensive?" block injected by quoter.js */
.gcq-too-expensive,
.gcq-affordable-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,165,0,0.42);
  background:
    linear-gradient(135deg, rgba(255,165,0,0.20), rgba(244,0,0,0.10));
  box-shadow:
    0 18px 42px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.gcq-too-expensive::before,
.gcq-affordable-box strong {
  content: "Too Expensive?";
  display: block;
  margin-bottom: 4px;
  color: #ffc46b;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.gcq-too-expensive--form {
  margin-top: 6px;
  margin-bottom: 6px;
}

.gcq-too-expensive--summary {
  margin: 18px 0 0;
  padding: 14px 15px;
  border-radius: 13px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.gcq-too-expensive--summary::before {
  font-size: 0.96rem;
}

@media (max-width: 575px) {
  .gcq-title-note,
  .gcq-before-discount-label {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .gcq-too-expensive,
  .gcq-affordable-box {
    padding: 16px;
  }
}
