/* ============================================================
   1. ROOT VARIABLES & BASE RESET
   ============================================================ */
:root {
  --primary-blue: #007bff;
  --insure-blue-text: #4a90e2;
  --border-color: #dcdcdc;
  --card-selected-border: #123e75;
  --card-text-blue: #007bff;
  --text-color: #333;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --light-bg: #f7faff;
}

.test-loader-step {
  display: none !important;
}

.test-loader-step.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.test-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 20px !important;
}

.loader-combined-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.loader-combined-wrapper .loader-progress-wrap {
  position: relative;
  z-index: 2;
}

.loader-combined-wrapper .loader-slider-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  z-index: 1;
  margin: 0 !important;
}

.loader-combined-wrapper .loader-logo-slick {
  display: flex !important;
  flex-direction: row !important;
  margin: 0 !important;
}

.loader-combined-wrapper .loader-logo-slick .slick-track,
.loader-combined-wrapper .loader-logo-slick .slick-slide {
  display: flex !important;
  flex-direction: row !important;
  margin: 0 15px !important;
  float: none !important;
}

.loader-combined-wrapper .test-loader-slider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  z-index: 1;
  margin: 0;
}

.test-loader-container .loader-slider-container {
  margin: 0 !important;
  padding: 0 !important;
}

.test-loader-slider {
  width: 100%;
  max-width: 500px;
  margin: 0 !important;
}

.test-loader-slider .loader-logo-slick {
  display: flex;
  flex-direction: row;
  margin: 0 !important;
}

.test-loader-slider .loader-logo-slick .slick-track {
  display: flex;
  flex-direction: row;
  margin: 0 !important;
}

.test-loader-slider .loader-logo-slick .slick-slide {
  display: inline-block;
  float: none;
  margin: 0 15px;
}

.test-loader-percent {
  margin: 0;
}
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: var(--text-color);
}

/* Honeypot field (anti-bot) */
#middle_name {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   2. FORM CONTAINER & HEADINGS
   ============================================================ */
.form-container {
  max-width: 890px;
  padding: 30px;
  border-radius: 8px;
  margin-top:-5.7rem;
  text-align: center;
}


.progress-circle {
  width: 80px;
  height: 80px;
  border: 5px solid var(--primary-blue);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--primary-blue);
}

#progress-percent { font-size: 1.5em; }
.progress-text { font-size: 0.75em; color: #666; }

h2 {
  color: #24355D;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;

}

.sub-text {
  font-size: 1em;
  color: #000;
  margin-bottom: 20px;
  text-align: center !important;
}

.sub-text.facebook-subheading {
  font-size: 0.96rem;
  font-weight: 700;
  color: #24355D;
}

.blue-subheading {
    color: #3088fd;
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}


/* ============================================================
   3. FORM STEP HANDLING
   ============================================================ */
.form-step { display: none; }
.form-step.active {
  display: block; 
}

/* Directional slide animations */
.anim-forward{
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.anim-backward{
  -webkit-animation-name: fadeInRight;
  animation-name: fadeInRight;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* ============================================================
   4. GENERIC CARD & OPTION GROUP STYLES
   ============================================================ */
.option-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.discount-badge {
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  position: absolute;
  top: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7c7ce;
  border-radius: 3px;
  padding: 30px 20px 20px;
  width: 223px;
  min-height: 188px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  margin: 0 !important;
  box-shadow: 0 3px 0 #dbdBE8CC;
  position: relative;
}

.option-card:hover,
.option-card.selected,
.insurer-logo-card:hover,
.insurer-logo-card.selected,
.year-option-card:hover,
.year-option-card.selected {
  border-color: var(--card-selected-border);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), var(--card-shadow);
  background: var(--light-bg);
  transform: translateY(-2px);
}

.option-card .answer-text {
  font-weight: 400;
  font-size: 0.8rem;
  margin: 0;
}

.discount-badge {
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.discount-text {
  color: #3088fd;
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 8px 0 0 0;
}
.check-heading-wrapper{
  display: flex;
  width: 100%;
  gap: 1rem;
  margin-bottom: 10px;
}

.icon-placeholder {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
/* Restore correct make card layout and responsiveness */
.make-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  justify-items: center;
}

.insurer-logo-card.make-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  height: 100px;
  background: #fff;
  /* border: 1px solid #dcdcdc; */
  border-radius: 8px;
  transition: all 0.2s ease;
}

.insurer-logo-card.make-card img {
  width: 50px;
  height: auto;
  margin-bottom: 6px;
  object-fit: contain;
}

.insurer-logo-card.make-card p {
  font-size: 0.9em;
  font-weight: 400;
  margin: 0;
  color: #333;
}


.insurer-logo-card.make-card:hover {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: #f8faff;
}

/* Responsive fix */
@media (max-width: 768px) {
  .make-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .make-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   5. DOB SECTION
   ============================================================ */
.dob-group {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 60%;
}

.dob-group input {
  padding: 15px 5px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 0 #dbdBE8CC;
  width: 100%;
}

/* .dob-group #year { width: 80px; } */

/* ============================================================
   6. BUTTONS
   ============================================================ */
.next-btn,
.quote-btn {
  background: var(--primary-blue);
  color: #fff;
  padding: 17px 30px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}
.get-quote-btn {
  min-width: 35%;
  margin-bottom: 20px;
}

.qn-captcha-wrap {
  margin: 12px 0 10px;
  max-width: 100%;
}

/* Step 16: clear separation between legal disclaimer and reCAPTCHA */
.form-step[data-step="16"] .disclaimer {
  margin-bottom: 20px;
}

.form-step[data-step="16"] .qn-captcha-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
}

.form-step[data-step="16"] .get-quote-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.security{
  font-size: 0.7rem;
  font-style: italic;
  color: #2a2a2c;
  margin-bottom: 5px;
}
.disclaimer{
  max-width: 600px;
  font-size: 0.6rem;
  color: #636262;
  text-align: left;
}
.lock{
  width: 10px;
  height: 10px;
  display: inline-block;
}
.next-btn:hover,
.quote-btn:hover {
  background-color: #3b7ad7;
}

.back-btn {
  background: none;
  border: none;
  color: var(--insure-blue-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 10px;
  display: block;
  text-align: left;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* ============================================================
   7. WHY WE ASK BOX
   ============================================================ */
.why-ask {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 50px auto 0;
  padding: 15px;
  text-align: left;
}

.why-ask img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.why-ask p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
  line-height: 1.4;
}

/* ============================================================
   8. SMALL GRID CARDS (Insurers, Years, Continuous)
   ============================================================ */
.option-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  max-width: 750px;
  margin-inline: auto;
}

.year-option-card,
.insurer-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  min-height: 52px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-color);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 3px 0 #dbdBE8CC;
  padding: 10px 0px 10px 0px;
}

/* Insurer cards */
.insurer-logo-card {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: white;
}

.insurer-logo-card img {
  max-width: 100%;
  max-height: 50px;
}

.insurer-logo-card .logo-text {
  font-size: 0.75em;
  font-weight: 600;
  color: #666;
  line-height: 1.2;
}

/* Continuous insurance grid — 4 options */
.continuous-insured-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* "3–5 Years" nudge highlight — default visual hint, not a selection indicator.
   Applied only when no selection has been made; removed on first interaction. */
@keyframes ci-pulse {
  0%   { box-shadow: 0 0 0 3px rgba(48, 136, 253, 0.55), 0 3px 0 #dbdBE8CC; }
  50%  { box-shadow: 0 0 0 7px rgba(48, 136, 253, 0.08), 0 3px 0 #dbdBE8CC; }
  100% { box-shadow: 0 0 0 3px rgba(48, 136, 253, 0.55), 0 3px 0 #dbdBE8CC; }
}

.year-option-card.ci-nudge {
  border: 2.5px solid #3088FD;
  background: #fff;               /* keep background white — not filled like selected */
  color: var(--text-color);       /* keep text colour unchanged */
  animation: ci-pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   9. DROPDOWN + BUTTON GROUP
   ============================================================ */
.other-provider-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  max-width: 450px;
  transition: all 0.2s ease;
}

.custom-select-wrapper.selected {
  border-color: var(--card-selected-border);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), var(--card-shadow);
  background: var(--light-bg);
  transform: translateY(-2px);
}

.custom-select-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 250px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 0 #dbdBE8CC;
}

.custom-select-wrapper select {
  width: 100%;
  padding: 15px 30px 15px 15px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-color);
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary-blue);
  pointer-events: none;
}

/* ============================================================
   10. STEP 10 VEHICLE USAGE CARDS
   ============================================================ */
.form-step[data-step="10"] .option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-step[data-step="10"] .option-card {
  flex: 1 1 calc(50% - 10px);
  text-align: left;
  position: relative;
  padding: 15px;
  min-height: 100px;
}

.form-step[data-step="11"] .option-card,
.form-step[data-step="12"] .option-card,
.form-step[data-step="13"] .option-card {
  min-height: 52px;
  width: 100%;
  padding: 10px;

}
.form-step[data-step="10"] .checkbox-indicator {
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  margin: 0;
}

.form-step[data-step="10"] .option-card.selected {
  border-color: #007bff;
  box-shadow: 0 0 0 2px #007bff;
}

.form-step[data-step="10"] .option-card.selected .checkbox-indicator {
  background: #fff;
  border-color: #007bff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-step[data-step="10"] .option-card.selected .checkbox-indicator::after {
  content: '✓';
  color: #007bff;
  font-size: 14px;
  top: 2px;
  left: 4px;
  font-weight: bold;
}

.form-step[data-step="10"] .description-text {
  margin-left: 40px;
}
.description-text{
  font-size: 0.7rem;
}

/* ============================================================
   11. STEP 11 - OFFERS SCREEN
   ============================================================ */
.offers-container{
  max-width: 100%;
  margin: 0 auto;
}

.offers-interstitial-loader {
  opacity: 1;
  transition: opacity 0.45s ease;
  background: transparent;
  border-radius: 4px;
  padding: 30px 16px 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 !important;
}

.offers-interstitial-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  margin: 0;
}

.offers-preview-stage {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-top: 30px; /* Base margin for desktop */
}

.offers-preview-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Keep offers heading position same as before even when step-17
   progress indicator is hidden. */
.form-step[data-step="17"] .offers-preview-stage {
  padding-top: 34px;
}

.loader-progress-wrap {
  position: relative;
  width: 182px;
  height: 182px;
  margin: 0 auto !important;
}

.loader-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-progress-track {
  fill: none;
  stroke: #d6d8de;
  stroke-width: 5;
}

.loader-progress-meter {
  fill: none;
  stroke: #3f63f0;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}

.loader-percent-text {
  margin-top: 14px;
  text-align: center !important;
  font-size: 24px !important;
  color: #24355d !important;
  font-weight: 700 !important;
  font-family: Rubik, sans-serif !important;
  line-height: 1.1;
}

.loader-caption {
  max-width: 540px;
  margin: 8px auto 0;
  color: #000 !important;
  text-align: center !important;
  width: 80% !important;
  font-style: italic !important;
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.2;
}

.loader-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 !important;
}

.loader-logo-slick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.loader-logo-slick .slick-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.loader-logo-slick .slick-slide img {
  width: 128px;
  height: 48px;
  object-fit: contain;
}

.loader-logo-slick .slick-center img {
  width: 102px;
  height: 46px;
}

.loader-side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.loader-side-logo-img {
  width: 188px;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.loader-center-logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
}

.loader-center-logo-img {
  width: 102px;
  height: 46px;
  object-fit: contain;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.loader-logo-anim {
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.loader-logo-left {
  animation-name: none;
}

.loader-logo-center {
  animation-name: none;
}

.loader-logo-right {
  animation-name: none;
}

@keyframes loaderSlideInLeft {
  from { opacity: 0; transform: translateX(42px); }
  to { opacity: 1; transform: translateX(-8px); }
}

@keyframes loaderSlideInCenter {
  from { opacity: 0; transform: translateX(30px) scale(0.98); }
  to { opacity: 1; transform: translateX(-12px) scale(1); }
}

@keyframes loaderSlideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(-10px); }
}

.offer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #e2e6ea;
  border-radius: 3px;
  padding: 36px;
  margin-bottom: 16px;
  background: #f3f4f6;
  position: relative;
  transition: all 0.3s ease;
}
.offer-card:hover{
  border: 2px solid #2E88FE;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: #f8faff;
}

.offer-card.offer-card-recommended {
  border: 2px solid #2e88fe;
  box-shadow: 0 0 0 2px rgba(46, 136, 254, 0.14);
}

.offer-recommended-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: #1976ea;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 16px 6px 8px;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.offer-recommended-badge::before {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.offer-rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 43px;
  background: #e7eaef;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px 0 0 8px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 2;
}

.offer-card.offer-card-hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
}

.see-more-carriers-btn {
  margin: 6px 0 16px;
  display: block;
  width: 100%;
  background: #fff;
  color: #333333;
  border: 1px solid #C7C7CE;
  border-radius: 2px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.see-more-carriers-btn:hover {
  background: #f4f9ff;
}

.see-more-carriers-btn::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #24355d;
  border-bottom: 1.8px solid #24355d;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
}

.see-more-carriers-btn.is-expanded::after {
  transform: translateY(1px) rotate(-135deg);
}

.featured-offer-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid #e2e6ea;
  text-align: left;
}

.featured-offer-title {
  font: normal normal bold 14px / 20px Roboto;
  text-align: left !important;
  width: 100%;
  display: block;
  align-self: flex-start;
  color: #353535;;
  margin-bottom: 24px;
}

.featured-offer-container {
  width: 100%;
}


.offer-col.image-col img {
  width: 120px;
  height: auto;
  margin-bottom: 8px;
}

.offer-col.text-col {
  margin: 0;
  width: 50%;
  text-align: center;
}
.offer-col.text-col h3{
  font-size: 1.3rem;
}

.offer-col.text-col p {
  margin: 4px 0;
  font-size: 14px;
}

.offer-col.button-col { 
  display: flex;
  text-align: center;
 }

.highlight-city {
  color: var(--primary-blue);
  font-weight: 600;
}

#offersSubheading {
  font: italic normal normal 12px / 16px Roboto;
}

.circular-progress {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  background: conic-gradient(blue 0deg, #ddd 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  position: relative;
}

.circular-progress span {
    position: absolute;
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.progress-indicator{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

img{
  width:6rem;
  height: 4rem;
  object-fit: contain;
  object-position: center;
}

.widget-1,
.widget-2{
  background: #f4f9ff;
}

.pi-question p {
  text-align: start;
  margin-bottom: 10px;
}
.option-card-main{
  min-height: 1px;
  
}
.counter{
  max-width: 600px;
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 5px;

}
.pi-question .option-group, .input-label-wrapper{
  max-width: 600px;
}
.input-label-wrapper label{
  display: block;
  margin-bottom: 5px;
}

.form-step[data-step="13"] .year-option-card{
  border: none;
  width: 10%;
  background: #f9f8f8;
}

.form-input{
  width: 100%;
  display: flex;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-shadow: 0 3px 0 #dbdBE8CC;
}
.address-input-group{
  position: relative;
}
.address-input-group .form-input{
  padding-right: 42px;
}
.clear-address-btn{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clear-address-btn:hover{
  background: #d1d5db;
}
.clear-address-btn[hidden]{
  display: none;
}
.form-input.input-error{
  border: 2px solid #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-input[readonly]{
  background: #ececec;
  color: #6b7280;
  cursor: not-allowed;
}

#zip::-webkit-inner-spin-button{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
}
:focus .form-input{
  border: 2px solid #010852;
}
.pi-fields{
  display: flex;
  gap: 1rem;
  flex-direction: column;
  margin-bottom: 10px;

}
.input-label-wrapper{
  text-align: left;
  color: #2a2a2c;
  font-style: italic;
  font-weight: 500;
  width: 100%;
}
#ticketsCount{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-right: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  background: white;
  box-shadow: 0 3px 0 #dbdBE8CC;

}
.address-field-row{
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  width: 100%;
}
.address-field-row .input-label-wrapper{
  flex: 1;
  min-width: 0;
}
.error{
  color: #dc2626;
  font-size: 0.7rem;
  margin-top: 5px;
}
.pi-questions{
  max-width:600px;
}
.pi-question {
  margin-bottom: 20px;
}
.check-heading-wrapper p{
  font-weight: 600 !important;
}
.progress-text{
  position: absolute;
  font-size: 0.6rem;
  top: 60%;
  font-weight: 400;
}
.dob-input-label-wrapper{
  display: flex;
  flex-direction: column;
  text-align: start;
  color: #2a2a2c;
  font-weight: 500;
  font-size: 0.7rem;
}
.dob-input-label-wrapper label{
  margin:0 0 5px 0;
}
.form-step[data-step="17"] .back-btn {
  display: none;
}
.why-ask-text{
  margin: 0;
  padding: 15px;
  background-color: #fbfdff;
}
.why-ask-text h4{
  font-weight: 700;
  margin-bottom: 5px;
 font-size: 14px;
}
.why-ask-text p{
  font-size: 14px;
  color: #686666;
}
.model-base-card{
  width: 100%;
}

/* Step 9 model selection (match Step 1 selected card look) */
.model-base-card .custom-select-wrapper {
  transition: all 0.2s ease;
}
.model-base-card.selected .custom-select-wrapper {
  border-color: var(--card-selected-border);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), var(--card-shadow);
  background: var(--light-bg);
  transform: translateY(-2px);
}

@-webkit-keyframes fadeInLeft {
  0% {
      opacity: 0;
      -webkit-transform: translateX(100px);
  }

  100% {
      opacity: 1;
      -webkit-transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  0% {
      opacity: 0;
      transform: translateX(100px);
  }

  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@-webkit-keyframes fadeInRight {
  0% {
      opacity: 0;
      -webkit-transform: translateX(-100px);
  }

  100% {
      opacity: 1;
      -webkit-transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
      opacity: 0;
      transform: translateX(-100px);
  }

  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

/* ============================================================
   13. CALL TEXT WRAPPER
   ============================================================ */

#call-icon{
    display: flex;
    margin: 0 0 0 auto !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.call-text-wrapper{
    margin: 0;
}
#call-icon img{
    margin: 0 0 0 auto;
}

.call-icon-img{
    width: 3rem;
    height: 3rem;
}

/* ============================================================
   12. RESPONSIVE MEDIA QUERIES
   ============================================================ */

   
@media (max-width: 768px) {
  .form-container {
    padding: 20px;
    box-shadow: none;
  }
  img{
    width:4rem;
  }

  h2 { 
    font-size: 1.4rem; 
  }

  .blue-subheading {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  .sub-text {
    margin-bottom: 10px;
  }
  h2 {
    margin-bottom: 10px;
  }

  .option-group {
    flex-direction: column;
    gap: 15px;
  }

  .option-card {
    width: 100%;
    flex-direction: column;
    padding: 20px;
    min-height: 120px;
  }

  .icon-placeholder {
    width: 60px;
  }

  .offer-card {
    padding: 10px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .loader-progress-wrap {
    width: 120px;
    height: 120px;
  }
  .loader-percent-text {
    font-size: 22px !important;
    margin-top: 12px;
  }
  .loader-caption {
    font-size: 16px !important;
    max-width: 360px;
  }
  .loader-side-logo-img {
    width: 112px;
    height: 36px;
  }

  .offer-col.button-col { margin-top: 12px; }

  .dob-group {
    gap: 8px;
  }
  .call-icon-img{
    width: 2rem;
    height: 2rem;
  }
  .call-text-wrapper span{
    display: none;
  }


  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .form-step[data-step="16"] .get-quote-btn {
    width: 100%;
    margin-top: 15px;
  }
}
.pi-fields{
  margin-bottom: 5px;
}

@media (max-width: 480px) {
  .circular-progress {
    width: 75px;
    height: 75px;
  }
  .circular-progress span {
    width: 65px;
    height: 65px;
  }
  .year-option-card {
    font-size: 0.8rem;
  }
  #progressValue {
    font-size: 1rem;
  }
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .progress-text{
    font-size: 0.6rem;
  }
  h2 { 
    font-size: 1.2rem; 
  }
  .sub-text {
    font-size: 0.8rem;
  }


  .insurer-grid,
  .make-grid { grid-template-columns: repeat(3, 1fr); }

  .year-grid,
  .model-grid { grid-template-columns: repeat(3, 1fr); }

  .offer-card { 
    padding: 20px; 
    flex-direction: row; /* Image left, button right */
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
  .offer-col.image-col {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }
  .offer-col.image-col img {
    width: 90px; /* Optimized for mobile row */
    margin: 0;
  }
  .offer-col.text-col {
    display: none; /* Hide text/description on mobile per reference style */
  }
  .offer-col.button-col {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }
  .quote-btn {
    font-size: 1rem;
    padding: 10px 18px;
    white-space: nowrap;
  }
  .offers-preview-stage {
    margin-top: 40px; /* Extra gap above offersPreviewStage on mobile */
  }
  .offers-interstitial-loader {
    min-height: 220px;
    padding: 22px 10px 18px;
  }
  .loader-logos-row {
    min-height: 120px;
    grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  }
  .loader-progress-wrap {
    width: 95px;
    height: 95px;
  }
  .loader-center-logo-img {
    width: 62px;
    height: 30px;
  }
  .loader-side-logo-img {
    width: 86px;
    height: 30px;
  }
  .loader-percent-text {
    font-size: 20px !important;
  }
  .loader-caption {
    font-size: 14px !important;
    max-width: 300px;
  }
  .offer-recommended-badge {
    left: 12px;
    top: -10px;
  }

.offer-col.text-col {
    width: 100%;
    text-align: center;
}
  .offer-col.text-col h3{
    font-size: 1rem;
  }
  .offer-col.text-col p{
    font-size:10px
  }
  .quote-btn{
    font-size:1rem;
    padding: 10px 15px;
  }
.get-quote-btn{
    padding: 15px 30px;
  }
  .why-ask p{
    font-size:0.7rem;
  }
  /* Prevent DOB row from overflowing on small screens */
  .dob-group { flex-wrap: wrap; }
  .dob-group .dob-input-label-wrapper { flex: 1 1 calc(33% - 6px); }
  .dob-group .dob-input-label-wrapper input { width: 100%; }
  .dob-group .next-btn { flex: 1 0 100%; }
  .insurer-logo-card.make-card{
    padding: 5px;
    height: 80px;
  }
  .insurer-logo-card.make-card img{
    width: 35px;
  }
}


@media (max-width: 439px) { 
  .form-step[data-step="10"] .option-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 771px) {
    .form-container {
       margin-top:-4.3rem;
    }
}
