/* HEALTHY VOLUNTEERS | CUSTOM SIX-STEP FORM */

.hv-custom {
  --navy: #061F30;
  --teal: #176D74;
  --gold: #C69B55;
  --muted: #56616A;
  --border: #DEE5E6;
  width: 100%;
  padding: 65px 0;
  background: #FFFFFF;
  color: var(--navy);
}

.hv-custom,
.hv-custom *,
.hv-custom *::before,
.hv-custom *::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

.hv-custom [hidden] {
  display: none !important;
}

.hv-custom__container {
  max-width: 960px;
  padding: 0 32px;
  margin: 0 auto;
}

.hv-custom__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.hv-custom__intro > span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hv-custom__intro h2 {
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
}

.hv-custom__intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.hv-custom__form {
  background: #FAFAF9;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 34px;
}

/* CONNECTED SIX-STEP PROGRESS */

.hv-custom__progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 32px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.hv-custom__progress-line {
  position: absolute;
  left: 8.333%;
  right: 8.333%;
  top: 17px;
  height: 3px;
  background: #DBE4E4;
  z-index: 0;
  overflow: hidden;
  border-radius: 8px;
}

.hv-custom__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width .25s ease;
}

.hv-custom__progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hv-custom__progress-item > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #DAE2E2;
  border-radius: 50%;
  background: #FFFFFF;
  color: #7D8B90;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.hv-custom__progress-item small {
  color: #738087;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.hv-custom__progress-item.is-active > span,
.hv-custom__progress-item.is-complete > span {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
}

.hv-custom__progress-item.is-active small {
  color: var(--teal);
  font-weight: 600;
}

/* STEP */

.hv-custom__step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.hv-custom__step > legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
}

.hv-custom__step-description {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* FIELDS */

.hv-custom__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.hv-custom__field {
  min-width: 0;
}

.hv-custom__full {
  grid-column: 1 / -1;
}

.hv-custom__field > label,
.hv-custom__height label,
.hv-custom__conditional > label {
  display: block;
  margin: 0 0 7px;
  color: #233B48;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.hv-custom input[type="text"],
.hv-custom input[type="email"],
.hv-custom input[type="tel"],
.hv-custom input[type="number"],
.hv-custom input[type="date"],
.hv-custom input[type="time"],
.hv-custom textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0 !important;
  padding: 11px 14px;
  border: 1px solid #DCE2E3;
  border-radius: 5px;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  box-shadow: none;
}

.hv-custom textarea {
  min-height: 105px;
  resize: vertical;
}

.hv-custom input::placeholder,
.hv-custom textarea::placeholder {
  color: #98A1A7;
}

.hv-custom input:focus,
.hv-custom textarea:focus {
  border-color: var(--teal) !important;
  outline: 2px solid rgba(23,109,116,.14);
}

.hv-custom input[readonly] {
  background: #EAF3F0;
  color: var(--teal);
  font-weight: 600;
}

.hv-custom__height {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.hv-custom__height label {
  font-size: 12px;
  color: var(--muted);
}

.hv-custom__note {
  color: #687982;
  font-size: 12px;
  line-height: 1.75;
  margin: 15px 0 0;
}

/* QUESTIONS: MINIMAL GAP TO OPTIONS */

.hv-custom__question {
  min-width: 0;
  width: 100%;
  margin: 0 0 12px;
  padding: 17px 19px;
  border: 1px solid #E2E7E7;
  border-radius: 7px;
  background: #FFFFFF;
}

.hv-custom__question > legend {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.hv-custom__question > legend em {
  display: inline-block;
  min-width: 30px;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.hv-custom__options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  clear: both;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.hv-custom__options label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 100px;
  min-height: 42px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #DCE3E3;
  border-radius: 5px;
  background: #FAFBFA;
  cursor: pointer;
}

.hv-custom__options label:has(input:checked) {
  background: #EAF3F0;
  border-color: var(--teal);
}

.hv-custom__options input {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  padding: 0;
  accent-color: var(--teal);
}

.hv-custom__options span {
  color: #3E4D55;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.hv-custom__question.is-invalid {
  border-color: #B65B4F;
  background: #FFF9F8;
}

.hv-custom__conditional {
  clear: both;
  padding-top: 15px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

/* APPOINTMENT AND CONSENT */

.hv-custom__subheading {
  margin: 27px 0 19px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hv-custom__subheading > span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}

.hv-custom__subheading h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.hv-custom__consent {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #E7DFC9;
  border-radius: 7px;
  background: #F5F0E5;
}

.hv-custom__consent > h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px;
}

.hv-custom__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 19px;
  cursor: pointer;
}

.hv-custom__check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 4px 0 0 !important;
  accent-color: var(--teal);
}

.hv-custom__check span {
  color: #4B5559;
  font-size: 13px;
  line-height: 1.85;
}

/* NAVIGATION BUTTONS */

.hv-custom__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.hv-custom__actions--first {
  justify-content: flex-end;
}

.hv-custom .hv-custom__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  min-height: 49px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  background: var(--teal);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
}

.hv-custom .hv-custom__btn:hover {
  background: #0D5058;
  border-color: #0D5058;
  color: #FFFFFF !important;
}

.hv-custom .hv-custom__btn--back {
  background: transparent;
  color: var(--teal) !important;
}

.hv-custom .hv-custom__btn--back:hover {
  background: #EAF3F0;
  color: var(--teal) !important;
}

.hv-custom .hv-custom__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.hv-custom__status {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #A23F36;
}

.hv-custom__status:empty {
  display: none;
}

.hv-custom__status.is-success {
  color: #176D74;
}

.hv-custom :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* TABLET */

@media (max-width: 850px) {
  .hv-custom__container {
    padding: 0 28px;
  }

  .hv-custom__form {
    padding: 26px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .hv-custom {
    padding: 50px 0;
  }

  .hv-custom__container {
    padding: 0 18px;
  }

  .hv-custom__intro h2 {
    font-size: 30px;
  }

  .hv-custom__intro p {
    font-size: 13px;
  }

  .hv-custom__form {
    padding: 21px 15px;
  }

  .hv-custom__progress {
    margin-bottom: 25px;
  }

  .hv-custom__progress-line {
    top: 14px;
  }

  .hv-custom__progress-item > span {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .hv-custom__progress-item small {
    font-size: 8px;
    line-height: 1.25;
  }

  .hv-custom__step > legend {
    font-size: 20px;
  }

  .hv-custom__fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hv-custom__full {
    grid-column: auto;
  }

  .hv-custom input[type="text"],
  .hv-custom input[type="email"],
  .hv-custom input[type="tel"],
  .hv-custom input[type="number"],
  .hv-custom input[type="date"],
  .hv-custom input[type="time"] {
    font-size: 16px;
  }

  .hv-custom__question {
    padding: 15px 14px;
  }

  .hv-custom__question > legend {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .hv-custom__question > legend em {
    min-width: 24px;
  }

  .hv-custom__consent {
    padding: 18px 15px;
  }

  .hv-custom__actions {
    flex-wrap: wrap;
  }

  .hv-custom .hv-custom__submit {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .hv-custom__progress-item small {
    font-size: 7px;
  }

  .hv-custom__actions {
    flex-direction: column;
  }

  .hv-custom .hv-custom__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-custom__progress-fill {
    transition: none;
  }
}

/* CLICK TO CALL CONTACT NUMBER */

.hv-custom__call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #176D74;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hv-custom__call-link:hover {
  color: #0D5058;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .hv-custom__call-link {
    font-size: 14px;
    text-align: center;
  }
}