@font-face {
  font-family: "Gellix";
  src: url("../fonts/Gellix-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gellix";
  src: url("../fonts/Gellix-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gellix";
  src: url("../fonts/Gellix-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gellix";
  src: url("../fonts/Gellix-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  background: #f2f4d0;
  color: #71897b;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 6.4rem 3.2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form__header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.brand {
  margin-bottom: 8rem;
}
.brand img {
  display: block;
  width: 15rem;
  height: auto;
  margin: 0 auto;
}

.form__intro-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  color: #71897b;
}

.form__eyebrow {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 2.2rem;
  margin: 0;
  width: 100%;
}

.form__title {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 5rem;
  line-height: 6.4rem;
  letter-spacing: 0.5px;
  margin: 0;
  width: 100%;
  color: #71897b;
}

.form__subtitle {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 2.4rem;
  margin: 0;
  width: 100%;
}

.section {
  margin-top: 6.4rem;
}
.section.first-section {
  margin-top: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.section__title {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  color: #71897b;
  margin: 0;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #9aaea2;
}

.section__head-wrapper {
  margin-bottom: 4rem;
}

.section__head .section__title {
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.section__head {
  border-bottom: 1px solid rgba(154, 174, 162, 0.5);
  padding-bottom: 1.6rem;
  margin-bottom: 1rem;
}

.section__tag {
  font-size: 1.1rem;
  font-weight: 500;
  color: #9aaea2;
  white-space: nowrap;
}

.subform {
  margin-bottom: 4rem;
}

@media screen and (min-width: 768px) {
  .subform.reduce-bottom-margin {
    margin-bottom: 2.4rem;
  }
}
.subform__title {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #71897b;
  margin: 0 0 2.4rem;
}

.row {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.row:last-child {
  margin-bottom: 0;
}

.row--2 > .field {
  flex: 1 1 0;
  min-width: 0;
}

.field {
  margin-bottom: 2.4rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field--half {
  max-width: calc(50% - 12px);
}

.field__label {
  display: block;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #71897b;
  margin-bottom: 1.2rem;
  margin-top: 0;
}
.field__label .req {
  color: #e25151;
}
.field__label-note {
  font-weight: 400;
  font-size: 0.9em;
  color: #9aa89f;
}

.field__label-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  position: relative;
}
.field__label-head .field__label {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.tooltip-trigger {
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  justify-content: center;
}
.tooltip-trigger img {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
}
.tooltip-trigger:focus-visible {
  outline: 2px solid #475a50;
  outline-offset: 2px;
  border-radius: 50%;
}

.tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  z-index: 10;
  width: min(32rem, 100vw - 4rem);
  padding: 1.2rem 1.6rem;
  background: #fff;
  border: 1px solid #9aaea2;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(71, 90, 80, 0.12);
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #71897b;
}

.field__label-head:hover .tooltip,
.field__label-head:focus-within .tooltip,
.field__label-head.is-tooltip-open .tooltip {
  display: block;
}

.field__input,
.field__select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #9aaea2;
  border-radius: 0;
  background: transparent;
  color: #71897b;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 2rem;
  padding: 0.8rem 0;
  outline: none;
  appearance: none;
}
.field__input::placeholder,
.field__select::placeholder {
  color: #9aaea2;
}
.field__input:focus,
.field__select:focus {
  border-bottom-color: #475a50;
}
.field__input:-webkit-autofill, .field__input:-webkit-autofill:hover, .field__input:-webkit-autofill:focus, .field__input:-webkit-autofill:active, .field__input:autofill,
.field__select:-webkit-autofill,
.field__select:-webkit-autofill:hover,
.field__select:-webkit-autofill:focus,
.field__select:-webkit-autofill:active,
.field__select:autofill {
  -webkit-box-shadow: 0 0 0 1000px #f2f4d0 inset;
  box-shadow: 0 0 0 1000px #f2f4d0 inset;
  -webkit-text-fill-color: #71897b;
  caret-color: #71897b;
  transition: background-color 5000s ease-in-out 0s;
}

.field__input--other {
  margin-top: 1.2rem;
}

.field__input--date {
  color: #71897b;
}
.field__input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}
.field__input--date:invalid {
  color: #9aaea2;
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-70%) rotate(45deg);
  border-right: 1.5px solid #71897b;
  border-bottom: 1.5px solid #71897b;
  pointer-events: none;
}

.field__select {
  padding-right: 2.4rem;
  cursor: pointer;
}
.field__select option {
  color: #333;
}

.textarea-wrap {
  border: 1px solid #9aaea2;
  border-radius: 4px;
  padding: 0.8rem;
}

.field__textarea {
  width: 100%;
  min-height: 11rem;
  resize: vertical;
  border: none;
  background: transparent;
  color: #71897b;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 2rem;
  padding: 0.8rem;
  outline: none;
}
.field__textarea::placeholder {
  color: #9aaea2;
}

.radio-group {
  display: flex;
  gap: 2.4rem;
  padding-top: 0.4rem;
}
.radio-group--stack {
  flex-direction: column;
  gap: 1.2rem;
}

.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio__circle {
  width: 18px;
  height: 18px;
  border: 1px solid #9aaea2;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
  flex: 0 0 auto;
}

.radio__text {
  font-size: 1.4rem;
  color: #71897b;
}

.radio input:checked + .radio__circle {
  border-color: #475a50;
}
.radio input:checked + .radio__circle::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #475a50;
}

.radio:hover .radio__circle {
  border-color: #475a50;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  margin-bottom: 1.6rem;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox:last-child {
  margin-bottom: 0;
}

.checkbox__box {
  width: 18px;
  height: 18px;
  border: 1px solid #9aaea2;
  border-radius: 4px;
  flex: 0 0 auto;
  margin-top: 1px;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox__text {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #71897b;
}

.checkbox input:checked + .checkbox__box {
  background: #475a50;
  border-color: #475a50;
}
.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #f2f4d0;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.checkbox:hover .checkbox__box {
  border-color: #475a50;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  margin-bottom: 0;
}

.checklist__group .subform__title {
  margin-bottom: 1.6rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
  padding-top: 0.4rem;
}
.checkbox-grid .checkbox {
  margin-bottom: 0;
}

.note {
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(113, 137, 123, 0.85);
  margin: 0 0 1.6rem;
}

.note--tight {
  margin: 0 0 1.6rem;
}

.upload {
  border: 1px dashed #9aaea2;
  border-radius: 6px;
  padding: 2.4rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload:hover, .upload.is-drag {
  border-color: #475a50;
  background: rgba(71, 90, 80, 0.04);
}

.upload__icon {
  color: #71897b;
  margin-bottom: 0.8rem;
}

.upload__prompt p {
  margin: 0.2rem 0;
  font-size: 1.3rem;
  color: #71897b;
}
.upload__prompt p span {
  color: #475a50;
  text-decoration: underline;
}

.upload__hint {
  color: #9aaea2 !important;
  font-size: 1.1rem !important;
}

.upload__file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.3rem;
}

.upload__remove {
  border: none;
  background: none;
  color: #e25151;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.signature {
  position: relative;
  border: 1px solid #9aaea2;
  border-radius: 6px;
  height: 14rem;
  overflow: hidden;
  background: #fff;
  cursor: crosshair;
}
.signature.is-signed {
  border-color: #475a50;
}

.signature__pad {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.signature__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #9aaea2;
  font-size: 1.4rem;
  pointer-events: none;
}

.signature__clear {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  border: none;
  background: none;
  color: #71897b;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: underline;
}

.intro-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgba(113, 137, 123, 0.9);
  margin: -1.6rem 0 3.2rem;
}

.ack-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #71897b;
  margin: 0 0 3.2rem;
}

.field__hint {
  display: block;
  font-size: 1.1rem;
  color: rgba(113, 137, 123, 0.7);
  margin-top: 0.6rem;
}

.field__error {
  display: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: #e25151;
  margin-top: 0.8rem;
}

.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea {
  border-bottom-color: #e25151;
}
.field.has-error .textarea-wrap,
.field.has-error .signature {
  border-color: #e25151;
}
.field.has-error .field__error {
  display: block;
}
.field.has-error .radio__circle,
.field.has-error .checkbox__box {
  border-color: #e25151;
}

.form__submit-error {
  display: none;
  margin-top: 2.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #e25151;
  text-align: center;
}
.form__submit-error.is-visible {
  display: block;
}

.form__actions {
  margin-top: 4.8rem;
  display: flex;
  justify-content: center;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #f2f4d0;
  background: #475a50;
  padding: 1.4rem 4rem;
  border-radius: 50px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  background: #3e4f46;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.thankyou {
  text-align: center;
  padding: 9.6rem 2rem;
  color: #71897b;
}
.thankyou__tick {
  color: #475a50;
  margin-bottom: 2.4rem;
}
.thankyou h2 {
  font-family: "Gellix", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 3.2rem;
  color: #475a50;
  margin: 0 0 1.6rem;
}
.thankyou p {
  font-size: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .page {
    padding: 4rem 2rem 6.4rem;
  }
  .row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
  .row--2 > .field {
    margin-bottom: 2.4rem;
  }
  .field--half {
    max-width: 100%;
  }
  .section__title {
    font-size: 2.6rem;
  }
  .brand {
    margin-bottom: 3rem;
  }
  .form__title {
    font-size: 3.2rem;
    line-height: 1.15;
  }
  .form__intro-block {
    gap: 2rem;
  }
  .radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.6rem;
  }
  .radio-group--stack {
    grid-template-columns: 1fr;
  }
  .radio {
    align-items: flex-start;
  }
  .checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (min-width: 767px) {
  .first-section {
    margin-top: 0;
  }
}
