#self-test-section,
#self-test-results-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background-size: 55%;
  background-repeat: no-repeat;
  background-position: left top;
}

#self-test-section .container {
  max-width: 840px;
  width: 100%;
}

#self-test-results-section .container {
  max-width: 1320px;
  width: 100%;
}

.container {
  padding: 0 20px;
}

.self-test-section {
  background-repeat: no-repeat;
}

.hidden {
  display: none !important;
}

.self-test-header {
  max-width: 630px;
  text-align: center;
  margin: 0 auto;
}

.self-test-results-header {
  max-width: 1280px;
  text-align: center;
  margin: 0 auto;
}

.self-test-header > h1 {
  font-family: "HKGrotesk-Medium", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -1.9%;
}

.self-test-header > p {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: -1.9%;
  color: #1d4074;
}

.self-test-results-header > h1 {
  font-family: "HKGrotesk-Medium", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
  margin: 0;
}

.self-test-results-header > p {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
  color: #1d4074;
  margin: 0;
}

.self-test-results-header > p:last-child {
  font-size: 30px;
  margin-bottom: 40px;
}

#self-test-results-section .stage {
  display: block;
}

.stage {
  display: none;
}

.stage.active {
  display: block;
}

.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  background: none;
  margin: 2.5rem 0;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 19px;
  position: relative;
}

.progress-step:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 2px;
  background: #666666;
  z-index: -1;
}

.progress-step.active {
  background: #7ce9e0;
  color: #1d4074;
}

.progress-step.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border: 2px solid #1d4074;
  border-radius: 50%;
  z-index: -1;
  background: white;
}

.progress-step.completed {
  background: #1d4074;
  color: white;
}

.progress-step.completed:not(:last-child)::before {
  background: #1d4074;
}

.progress-step.inactive {
  background: #f8f8f8;
  border: 1px solid #666666;
}

.form-section {
  padding: 60px;
  background: #e3f6f5;
  text-align: center;
  border-radius: 24px;
}

.form-section h2 {
  font-size: 30px;
  margin-bottom: 30px;
  color: #495057;
  line-height: 150%;
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
}

.question-field,
.results-field,
.underage-message-field {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
}

.question-header h2 {
  color: #1d4074;
}

.question-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.option {
  position: relative;
  min-height: 70px;
  max-height: 100px;
  min-width: 162px;
  max-width: 257px;
  width: auto;
}

.option input[type="radio"],
.option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.option label {
  display: block;
  border: 2px solid #1d4074;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
  color: #1d4074;
  text-align: center;
  height: 100%;
  align-content: center;
  padding: 24px;
  font-size: 20px;
  font-weight: 400;
  font-family: "HKGrotesk-Regular", sans-serif;
  line-height: 150%;
  letter-spacing: -1.9%;
  padding: 12px;
}

.option label:hover {
  background: white;
}

.option input[type="radio"]:checked + label,
.option input[type="checkbox"]:checked + label {
  border-color: #1d4074;
  background: #1d4074;
  color: white;
}

.form-navigation {
  display: flex;
  justify-content: center;
  max-width: 300px;
  margin: 0 auto;
  gap: 20px;
}

.btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 100px;
  height: 60px;
  font-size: 18px;
  font-weight: 400;
  font-family: "HKGrotesk-Regular", sans-serif;
  line-height: 150%;
  letter-spacing: -1.9%;
  padding: 12px;
}

.btn-primary {
  background: #1d4074;
  color: white;
  border-radius: 6px;
  text-transform: none;
}

.btn-secondary {
  background: none;
  color: #1d4074;
  border: 1px solid #1d4074;
  border-radius: 6px;
}

.btn-secondary:hover {
  background: #1d4074;
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.results-form {
  width: 100%;
}

.results-header h2 {
  font-family: "HKGrotesk-Bold", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
  text-align: center;
  color: #1d4074;
  margin-bottom: 20px;
}

.underage-message-header h2 {
  font-weight: 700;
  font-family: "HKGrotesk-Bold", sans-serif;
  color: #1d4074;
}

.underage-message-field p {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-size: 1.2rem;
  line-height: 150%;
  color: #1d4074;
}

.input-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 40px;
  width: 100%;
}

.input-field label {
  margin-bottom: 6px;
  color: #1d4074;
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: -1.9%;
  text-align: center;
  text-transform: capitalize;
}

.input-field input {
  display: block;
  padding: 12px 24px;
  border: 2px solid #1d4074;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
  height: 60px;
  color: #1d4074;
  font-family: "HKGrotesk-Bold", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: -1.9%;
  width: 100%;
  align-content: center;
}

.consultation-container {
  display: flex;
  gap: 40px;
  border-radius: 12px;
}

.consultation-left {
  text-align: left;
  max-width: 307px;
  width: 100%;
}

.consultation-image {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.consultation-name,
.consultation-title {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -1.9%;
  margin: 0;
}

.consultation-title {
  margin-top: 0;
}

.consultation-title {
  font-weight: 400;
  color: #004080;
}

.consultation-container .results-header {
  text-align: left;
  margin-bottom: 0.5rem;
}

.consultation-container .results-header h2 {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
  margin-bottom: 0rem;
  text-align: left;
}

.consultation-container .results-header p {
  margin-bottom: 0;
  margin-top: 20px;
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: -1.9%;
}

.consultation-container .input-field {
  margin: 0 auto 20px;
}

.consultation-container .form-navigation {
  margin-top: 40px;
}

.consultation-image-mobile {
  display: none;
}

.heading-container {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .self-test-header h1 {
    font-family: "HKGrotesk-Medium", sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 120%;
    letter-spacing: -1.9%;
  }

  .form-section {
    padding: 30px 20px;
  }

  .prescription-inputs {
    grid-template-columns: 1fr;
  }

  .form-navigation {
    max-width: 100%;
  }

  .self-test-results-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .self-test-results-header > h1 {
    font-size: 20px;
    line-height: 120%;
  }

  .self-test-results-header > p {
    font-size: 20px !important;
    line-height: 120%;
  }

  .consultation-name,
  .consultation-title {
    font-size: 20px;
  }

  .consultation-container .results-header h2 {
    font-size: 20px;
  }

  #self-test-section {
    background-size: 80% !important;
  }
}

.image-options {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.image-option span {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -1.9%;
  color: #1d4074;
}

.vision-image {
  max-height: 200px;
}

#stage-results .wpcf7 {
  width: 100%;
}

.wpcf7 input,
.wpcf7 textarea {
  line-height: normal;
  margin: 0;
}

.wpcf7 input::placeholder {
  font-family: "HKGrotesk-Bold", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -1.9%;
  color: #1d407466;
}

.wpcf7-form-control-wrap {
  width: 100%;
}

.wpcf7 .wpcf7-submit {
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 100px;
  font-size: 18px;
  font-weight: 400;
  font-family: "HKGrotesk-Regular", sans-serif;
  line-height: 150%;
  letter-spacing: -1.9%;
  padding: 12px;
}

@media (max-width: 480px) {
  .question-options {
    width: 100%;
  }

  .consultation-image-mobile {
    display: block;
    min-width: 125px;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .consultation-container .results-header h2:first-child {
    margin-bottom: 20px;
  }

  .consultation-container .results-header h2 {
    display: flex;
    gap: 20px;
  }

  .consultation-left {
    display: none;
  }

  .option {
    min-width: unset;
    max-width: unset;
    max-height: unset;
  }

  .question-options[role="group"][aria-labelledby="vision-problems-question"] {
    grid-template-columns: 1fr;
  }

  .heading-with-image {
    display: flex;
    align-items: flex-start;
    gap: 16px !important;
  }

  .heading-with-image img {
    object-fit: fill;
  }

  .consultation-container .results-header p {
    font-size: 20px;
  }

  .image-options {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }

  .image-option {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    grid-template-columns: 1fr 120px;
  }

  .image-option img {
    width: 100%;
  }

  .image-option span {
    white-space: nowrap;
    max-width: none;
    text-align: left;
    display: block;
  }

  #self-test-section {
    background-size: 100% !important;
    background-position-y: 10%;
  }
}

.thank-you-message {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content p {
  font-family: "HKGrotesk-Regular", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 150%;
  letter-spacing: -1.9%;
  color: #1d4074;
  margin: 0;
}

@font-face {
  font-family: "HKGrotesk-Medium";
  font-display: swap;
  src: url("../fonts/HKGrotesk-Medium.woff2") format("woff2"),
    url("../fonts/HKGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}