@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jost:ital,wght@0,100..900;1,100..900&family=Joti+One&family=Raleway:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-blue: #0071bc;
  --action-yellow: #edf710;
  --text-dark: #333;
  --text-muted: #666;
  --border-color: #e0e0e0;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 120px;
  background: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 291px;
  height: 90px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Button */
.quote-btn {
  background: #edf710;
  border: none;
  padding: 9px 24px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  width: 142px;
  height: 40px;
  display: block;
}

.quote-btn:hover {
  background: #edf710;
}

.stepper-wrapper-container {
  background-color: #0770bb;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stepper-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.form-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* The connecting line */
.form-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 62%;
  width: 75%;
  height: 4px;
  background-color: #ffffff33;
  z-index: 1;
  border-radius: 100px;
}

.step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ffffff33;
  color: #ffffff33;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 24px;
}

.step-name {
  color: #ffffff33;
  font-family: Inter;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5%;
}

/* Active State Styling */
.form-step.active-step .step-counter {
  border: 1px solid #edf710;
  color: #edf710;
}

.form-step.active-step .step-name {
  color: #edf710;
}

/* Active State Styling */
.form-step.previous-step .step-counter {
  border: 1px solid #edf710;
  color: black;
  background-color: #edf710;
}

.form-step.previous-step .step-name {
  color: #edf710;
}

.form-step.previous-step:not(:last-child)::after {
  background-color: #edf710;
}

.form-container {
  display: none;
  width: 100%;
  max-width: 712px;
  background: white;
  border-radius: 16px;
  box-shadow: 0px 3px 3px 0px #0000001f;
  margin: 70px auto 100px auto;
}

.form-active {
  display: block;
}

/* Header */
.form-header {
  background-color: var(--primary-blue);
  color: white;
  padding: 24px 32px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
}

.form-step-counter {
  color: var(--action-yellow);
  font-family: Inter;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 15%;
}

.form-header h1 {
  margin: 5px 0 10px 0;
  font-family: Inter;
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0.5%;
}

.form-header p {
  font-family: Inter;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5%;
  color: #ffffff99;
  margin-bottom: 0;
}

/* Options */
.options-list {
  padding: 20px 30px;
  border: 1px solid #00000026;
}

.option-card {
  display: block;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid #171e6f33;
}

.option-card input:hover + .option-content {
  outline: 2px solid #0770bb;
  background-color: #f0f7ff;
  border-radius: 8px;
}

/* Center the checkmark */
.option-card input:hover + .option-content .radio-custom {
  border: 2px solid #0770bb;
}

.option-card input:checked + .option-content {
  background-color: #f0f7ff;
  outline: 2px solid #0770bb;
  border-radius: 8px;
}

.option-card input:checked + .option-content .radio-custom {
  border-color: #0770bb;
  background-color: #0770bb;
  background: #0770bb !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center the checkmark */
.option-card input:checked + .option-content .radio-custom::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  font-size: 12px;
}

/* Hide default radio */
.option-card input {
  display: none;
}

.option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}

.text strong {
  display: block;
  color: #000000;
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.5%;
}

.text span {
  color: #000000;
  font-family: Inter;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5%;
}

/* Custom Radio Circle */
.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 15px;
}

/* Footer */
.form-footer {
  padding: 30px 30px 30px;
  text-align: center;
  border: 1px solid #00000026;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.continue-btn {
  width: 100%;
  background-color: var(--action-yellow);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.continue-btn:hover {
  box-shadow: 0px 0px 10px 0px #edf710cc;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-family: Inter;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5%;
  color: #000000;
}

.stars {
  color: #000;
}

.footer {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5%;
  gap: 8px;
  padding-top: 16px;
  padding-right: 120px;
  padding-bottom: 16px;
  padding-left: 120px;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container to match the layout spacing */
.form-group {
  margin-bottom: 15px;
  font-family: sans-serif;
}

/* Label styling */
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

.required-star {
  color: #ff0000;
}

/* Textarea styling */
.form-input {
  width: -webkit-fill-available;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #171e6f33;
  font-family: "Inter", sans-serif;
  height: 27px;
}

/* Change placeholder color */
.form-input::placeholder {
  color: #00000080;
  opacity: 1;
}

.form-input:focus {
  outline: 2px solid #0770bb;
}

/* Button group container */
.button-group {
  display: flex;
  gap: 12px;
}

.hidden-radio {
  display: none;
}

.segmented-control {
  display: flex;
  gap: 10px;
}

.segment {
  border: 1px solid #171e6f33;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 16px;
  height: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00000080;
}

.hidden-radio:hover + .segment {
  outline: 2px solid #0770bb;
  color: #0770bb;
}

.hidden-radio:checked + .segment {
  outline: 2px solid #0770bb;
  color: black;
  background-color: #f2f8fb;
}

.btn-container {
  display: flex;
  gap: 15px;
}

.back-btn {
  width: 100px;
  background-color: white;
  border: 1px solid #171e6f33;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.back-btn:hover {
  border: 1px solid #000000;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  font-family: sans-serif;
  font-size: 14px;
  color: #64748b;
}

.dropdown-selected {
  border: 1px solid #171e6f33;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 19px;
}

.custom-dropdown.has-selection .dropdown-selected {
  color: #000;
}

.dropdown-selected.is-active {
  outline: 2px solid #0770bb;
}

/* The Dropdown List Style */
.dropdown-options {
  display: none; /* Hidden until clicked */
  position: absolute;
  width: 100%;
  border-radius: 8px;
  background: white;
  list-style: none;
  padding: 0;
  margin-top: 10px;
  z-index: 1000;
  box-shadow: 0px 1px 2px -1px #0000001a;
  box-shadow: 0px 1px 3px 0px #0000002b;
}

.dropdown-options li {
  margin: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #000000;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  height: 20px;
  display: flex;
  justify-content: start;
  align-items: center;
}

.dropdown-options li:hover {
  background-color: #d1d5db;
}

.dropdown-options li.selected-item {
  background-color: #0770bb !important;
  color: white;
}

.arrow {
  border: solid #6c757d;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -5px;
}

.dropdown-selected.is-active .arrow {
  transform: rotate(225deg);
}

.informationBox {
  display: flex;
  margin-top: 10px;
  color: #000000;
  background: #0770bb0d;
  border: 1px solid #0770bbcc;
  border-radius: 8px;
  font-size: 14px;
  justify-content: start;
  align-items: center;
  padding: 16px 24px;
}

.alertBox {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;

  transition:
    max-height 0.5s ease-out,
    opacity 0.3s ease-in,
    padding 0.3s ease-in,
    border 0.3s ease-in;

  display: flex;
  color: #000000;
  background: #0770bb0d;
  border: 1px solid #0770bbcc;
  border-radius: 8px;
  font-size: 14px;
  justify-content: center;
  align-items: center;
}

.alertBox.visible {
  margin-top: 10px;
  max-height: 100px;
  opacity: 1;
  visibility: visible;
  padding: 16px 24px;
  border-color: #0770bbcc;
  transition:
    max-height 0.5s ease-out,
    opacity 0.3s ease-in,
    visibility 0s linear 0s; /* Show immediately */
}

.showBox {
  max-height: 0;
  opacity: 0;
  visibility: hidden;

  transition:
    max-height 0.5s ease-out,
    opacity 0.3s ease-in,
    padding 0.3s ease-in,
    border 0.3s ease-in;
}

.showBox.visible {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.5s ease-out,
    opacity 0.3s ease-in,
    visibility 0s linear 0s; /* Show immediately */
}

.step-3-form-group-2-col {
  display: grid;
  gap: 10px;
  grid-template-columns: 95px 1fr;
}

.step-3-form-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group-checkbox-input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid black;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

/* Define the checkmark shape */
.form-group-checkbox-input::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  font-size: 10px;
  margin-top: 1px;
}

.form-group-checkbox-input:checked {
  background-color: #0770bb;
  border: 2px solid #0770bb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group-checkbox-label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 12px;
}

.form-group-checkbox-detail {
  font-size: 14px;
  display: block;
  line-height: 1.4;
  font-size: 12px;
}

.step-3-agreement {
  font-size: 12px;
  text-align: center;
  margin-bottom: 0;
}

.step-4-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
  border: 1px solid #00000026;
}

.icon-container {
  margin-bottom: 20px;
}

.icon-container i {
  color: #0770bb;
  font-size: 110px;
}

.qoute-request-receive {
  margin-top: 20px;
  font-size: 24px;
  text-transform: uppercase;
}

.message {
  color: #000000;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 25px;
}

.message strong {
  color: #333333;
}

.next-flow {
  background-color: #afbbcb3d;
  border-radius: 8px;
  padding: 1px 16px;
  text-align: left;
  margin-bottom: 30px;
}

.next-flow h2 {
  color: #0770bb;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.process-content {
  margin: 0;
  font-size: 14px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.process-number {
  background-color: #0770bb;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  width: 24.38px;
  height: 24.38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info {
  font-size: 12px;
  text-align: center;
}

.quote-btn-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 20px 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .logo {
    width: 100%;
    height: auto;
  }
  .quote-btn {
    display: none;
  }
  .quote-btn-mobile {
    display: block;
    grid-column: 1 / -1;
    justify-self: center;
  }
  #multiStepForm {
    padding: 15px;
  }
  .form-container {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .options-list {
    padding: 20px 20px;
  }
  .trust-bar {
    display: flex;
    flex-direction: column;
  }
  .trust-bar span {
    text-align: center;
  }
  .stars {
    display: block;
    grid-column: 1 / -1;
    justify-self: center;
  }
  .form-footer {
    padding: 20px 10px;
  }
  .trustpilot-widget iframe {
    width: 100% !important;
  }
  .step-name,
  .form-step-counter,
  .form-label,
  .text span,
  .segment,
  .form-input,
  .dropdown-selected,
  .dropdown-options li,
  .alertBox.visible,
  .informationBox {
    font-size: 12px;
  }
  .form-label {
    letter-spacing: -0.3px;
  }
  .form-header {
    padding: 20px;
  }
  .form-header h1 {
    font-size: 18px;
  }
  .form-header p {
    font-size: 12px;
    line-height: 16px;
  }
  .option-content {
    padding: 16px;
  }
  .text strong,
  .continue-btn,
  .back-btn {
    font-size: 14px;
  }
  .trust-bar-1st-col-item {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .segmented-control {
    gap: 5px;
  }
  .form-step:not(:last-child)::after {
    left: 70%;
    width: 60%;
  }
  .segmented-control-4-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .step-3-form-group-2-col,
  .step-3-form-group {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 20px;
    text-align: center;
  }
  .step-4-container {
    padding: 20px;
  }
  .icon-container i {
    font-size: 80px;
  }
  .message {
    font-size: 14px;
    line-height: 20px;
  }
  .stepper-wrapper {
    margin-left: -5px;
  }
  .form-group-checkbox-input {
    width: 30px;
    height: 20px;
  }
}
