:root {
  --clr-primary: #329543;
  --clr-secondary: #65a1ee;
  --clr-accent: var(--clr-primary);
  --light-blue: #f5f9ff;
  --placeholder: #a8a8a8;
  --ff-primary: "Work Sans", sans-serif;
  --white: #fff;
  --black: #000;
  --progress-height: 12px;
  --progressfill: #329543;
  --progressempty: rgba(232, 242, 233, 0.50);
  /* Card specific */
  --card-bg: rgba(232, 242, 233, 0.50);
}

html,
body {
  margin: 0;
  padding: 0 !important;
  font-family: var(--ff-primary);
  color: var(--black);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-wrap: balance;
}

body {
  overflow-y: hidden;
}

.w-110 {
  width: 110px;
}

.w-200 {
  width: 200px;
}

.w-260 {
  width: 260px;
}

.w-565 {
  max-width: 565px;
}

/* -------------- Section-0: Header */
#section-0 {
  background: url("../img/bk_shape.svg") no-repeat -15% center / 50%;
  padding: 45px 100px 0;
  min-height: 90vh;
}

#section-0 h1 span {
  color: var(--clr-primary);
}

#section-0 .text :is(img, h1, h2, p) {
  max-width: 500px;
}

#section-0 h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 65px;
  margin: 70px 0 50px;
}

#section-0 h2 {
  font-size: 35px;
  font-style: italic;
  font-weight: 700;
  line-height: 40px;
}

#section-0 p {
  margin: 20px 0 65px;
  font-size: 25px;
  line-height: 30px;
}

#section-0 .orange-button,
#section-6 .orange-button {
  width: 220px;
  height: 60px;
  border-radius: 30px;
  background: var(--clr-primary);
  color: white;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

#section-0 .header-img {
  width: 800px;
  height: auto;
  max-width: 95vw;
}

.logo {
  width: auto;
  height: 60px;
}

/* Layout Containers */
#formSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
  min-height: 80vh;
}

.form-box {
  width: 100%;
  max-width: 730px;
}

.form-steps {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
}

fieldset {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.form__wrapper {
  display: flex;
  justify-content: center;
}

/* nav bar */
.header__wrapper {
  border-bottom: 1px solid var(--clr-primary);
  background: #fff;
  height: 100px;
  padding: 0 100px;
  display: flex;
  align-content: center;
  align-items: center;
  gap: 0 40px;
}

/* Typography */
.question {
  text-align: center;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  margin: 40px auto;
}

/* Dropdown */
.custom-select {
  width: 100%;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.custom-select .dropdown-toggle {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  background: var(--card-bg) url("/img/drop.svg") no-repeat 95%/15px;
  transition: all 0.7s ease;
  font-size: 18px;
}

.nav-link:focus-visible {
    outline: 0;
    box-shadow: none !important;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: none !important;
  inset: auto !important;
  width: 100%;
  margin: 3px 0 0 0 !important;
  padding: 0;
  border-radius: 20px;
  overflow-x: hidden;
  max-height: 250px;
  overflow-y: scroll;
}

/* IMPORTANT: allow bootstrap to show it */
.dropdown-menu.show {
  display: block;
}

.dropdown-menu li:hover {
  background: var(--progressfill);
  color: #fff;
}

.dropdown-menu li {
  padding: 15px 20px;
  line-height: 1;
  cursor: pointer;
}

.answers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 660px;
  margin-inline: auto;
}

/* New Horizontal Car Cards Styling */
.answers__wrapper.horizontal-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.answer-card {
  width: unset;
  flex: 1;
}

.answer-card input[type="radio"] {
  display: none;
}

.answer-card label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 18px;
  background-color: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 70px;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--clr-primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.answer-card input[type="radio"]:checked+label .radio-circle::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--progressfill);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.answer-card label .label-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 111%;
}

.answer-card label:hover {
  background-color: var(--card-bg);
}

.answer-card input[type="radio"]:checked+label {
  background-color: var(--white);
  border-color: var(--progressfill);
}

/* Inputs & Forms */
#formSection input[type="text"],
#formSection input[type="email"] {
  width: 100%;
  border-radius: 20px;
  background: var(--card-bg);
  height: 70px;
  padding: 0 0 0 60px;
  margin-block: 10px;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  transition: border 0.3s ease;
  text-align: left;
}

#formSection input:focus {
  outline: none;
  border-color: var(--clr-secondary);
}

.error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 10px;
  text-align: center;
  display: block;
}

/* Buttons */
.steps-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 60px 45px 0;
}

.step1 .cta {
  margin: auto;
}

.cta {
  background: var(--clr-accent);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 11px 30px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cta:hover {
  transform: scale(1.05);
}

.step-back {
  width: 70px;
  height: 50px;
  background: var(--clr-primary);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-next {
  width: 100%;
  max-width: 200px;
}

/* Progress Bar - Improved */
.progress__wrapper {
  width: 800px;
  max-width: 100%;
  margin: 0 auto 0 12%;
}

.progress-container {
  position: relative;
  height: 16px;
}

.progress-bar-bg {
  width: 100%;
  height: var(--progress-height);
  background-color: var(--progressempty);
  border-radius: 999px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--progressfill);
  border-radius: 999px;
  transition: width 0.4s ease-in-out;
}

.progress-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 20px 0 var(--clr-primary);
  background-color: white;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transition: all .5s ease;
}

/* Tooltips */
.tt {
  cursor: pointer;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--clr-primary);
  padding: 15px;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow,
.bs-tooltip-top .tooltip-arrow {
  bottom: -12px;
}

.tooltip-inner {
  margin-bottom: -20px;
}

.step-submit {
  max-width: 160px;
  margin: 40px auto 0;
}

/* terms */

.terms-box {
  display: flex;
}

.termContainer {
  width: unset;
  color: #000;
  font-size: 16px;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-inline: auto;
  margin-top: 15px;
}

.input-icon {
  position: absolute;
  top: 35px;
  left: 35px;
  z-index: 10;
}

/* -------Show form on click---------------- */

.is-hidden {
  display: none;
}

.fx {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  will-change: opacity, transform;
}

.fx-in {
  opacity: 1;
  transform: translateY(0);
}

.fx-out {
  opacity: 0;
  transform: translateY(-10px);
}

.fx-pre {
  opacity: 0;
  transform: translateY(10px);
}

.start-quote #landingHeader {
  display: none;
}

.start-quote #quoteFlow {
  display: block;
  animation: fadeIn 0.25s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Privacy Policy */

.modal-content {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--progressfill) !important;
  border-radius: 30px !important;
  color: black !important;
}

.modal button.close {
  color: var(--progressfill) !important;
}

.modal-title {
  font-weight: 700;
  color: var(--progressfill) !important;
}

.modal .btn {
  transform: translateZ(0);
  border-radius: 40px !important;
  background-color: var(--clr-accent) !important;
  width: 200px !important;
  height: 50px !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin: auto !important;
}

/* when active */
body.show-quote #landingHeader {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

body.show-quote #quoteFlow {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile Responsiveness */

@media (max-width: 991px) {
  #section-0 {
    padding: 45px 10% 0;
  }

  #section-0 h1 {
    font-size: 40px;
    line-height: 45px;
    margin: 40px auto 10px;
  }

  #section-0 h2 {
    font-size: 25px;
    line-height: 30px;
  }

  #section-0 p {
    font-size: 18px;
    line-height: 25px;
    margin: 0 auto 20px;
  }

  #section-0 .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #section-0 .container {
    display: flex;
    justify-content: center;
  }

  #section-0 .header-img {
    margin: 20px auto !important;
  }
}

@media (max-width: 768px) {
  .answer-card {
    min-width: 100%;
    display: flex;
    justify-content: center;
  }

  .answer-card label {
    width: 100%;
    max-width: 350px;
    gap: 10px;
  }


  .answer-card label .label-text {
    font-size: 15px;
  }

  .question {
    margin-bottom: 25px;
  }

  .progress__wrapper {
    padding: 0 20px;
    margin: 0 auto;
  }

  .steps-buttons {
    width: unset;
  }

  .cta,
  .step-back {
    width: 100%;
    max-width: none;
  }

  .step-submit {
    max-width: 160px;
  }

  .header__wrapper {
    flex-direction: column;
    height: 150px;
    justify-content: space-around;
    padding: 0 30px;
  }
}

@media (max-width: 550px) {
  .answers__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .answer-card label {
    height: 50px;
  }

  .question {
    margin: 25px auto;
  }

  .formTop .car {
    height: 55px;
  }

  .step-btn img {
    height: 100%;
  }

  .formTop .input-icon {
    height: 20px;
    top: 28px;
  }

  #formSection input[type="text"],
  #formSection input[type="email"] {
    font-size: 16px;
    height: 55px;
  }

  .cta {
    font-size: 20px;
  }

  .termContainer {
    font-size: 13px;
  }
}