.tcf-page {
  background: var(--paper);
  color: var(--ink);
}

.tcf-application {
  padding: 80px 0;
  background: var(--ink);
  color: var(--white, #fff);
  border-top: 1px solid var(--line-on-dark);
}

.tcf-application-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.tcf-application-intro {
  position: sticky;
  top: 100px;
}

.tcf-application-intro h2 {
  max-width: 10ch;
  margin: 10px 0 24px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.tcf-application-intro > p {
  max-width: 56ch;
  color: var(--text-soft-on-dark);
}

.tcf-response-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}

.tcf-response-note strong {
  color: var(--highlight-mint);
}

.tcf-response-note span {
  color: var(--text-soft-on-dark);
}

.tcf-form-shell {
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper-secondary);
  color: var(--ink);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}

.tcf-step-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 40px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.tcf-step-tab {
  min-width: 0;
  padding: 16px 12px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}

.tcf-step-tab + .tcf-step-tab {
  border-left: 1px solid var(--line);
}

.tcf-step-tab span {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  font-size: .68rem;
  letter-spacing: .1em;
}

.tcf-step-tab.is-available {
  color: var(--deep-green);
  cursor: pointer;
}

.tcf-step-tab.is-active {
  background: var(--deep-green);
  color: var(--white, #fff);
}

.tcf-step-tab:disabled {
  cursor: default;
}

.tcf-form.is-stepped fieldset[hidden] {
  display: none;
}

.tcf-step-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tcf-step-controls .tcf-step-next:only-child {
  margin-left: auto;
}

.tcf-step-back {
  background: transparent;
  color: var(--ink);
}

.tcf-review-note {
  max-width: 65ch;
  color: var(--text-secondary);
}

.tcf-form fieldset {
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.tcf-form legend {
  width: 100%;
  margin-bottom: 20px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
  font-weight: 700;
}

.tcf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tcf-fields label {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 8px;
  align-content: start;
  font-weight: 700;
}

.tcf-fields label > span {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  color: var(--deep-green);
}

.tcf-fields .wide {
  grid-column: 1 / -1;
}

.tcf-fields label > input,
.tcf-fields label > select,
.tcf-fields label > textarea {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white, #fff);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.tcf-fields label > input,
.tcf-fields label > select {
  min-height: 52px;
}

.tcf-fields label > textarea {
  min-height: 124px;
  resize: vertical;
}

.tcf-fields label > .choices {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.tcf-fields .choices__inner {
  min-height: 52px;
  padding: 10px 42px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white, #fff);
  font-size: 1rem;
}

.tcf-fields .choices__list--single {
  padding: 3px 0;
}

.tcf-fields .choices__list--dropdown,
.tcf-fields .choices__list[aria-expanded] {
  z-index: 20;
  border-color: var(--line-strong);
  border-radius: 0;
  background: var(--white, #fff);
}

.tcf-fields .choices__input {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-default);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.tcf-fields .choices__item--choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--ink);
}

.tcf-fields .choices__item--choice.is-highlighted {
  background: var(--paper-secondary);
}

.tcf-fields .choices__placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.tcf-fields .choices__item--selectable {
  display: flex;
  align-items: center;
}

.tcf-country-sprite {
  display: inline-block;
  width: 20px;
  height: 15px;
  background-image: url('../images/country-flags.webp');
  background-repeat: no-repeat;
  background-size: 320px 240px;
  background-position:
    calc(var(--tcf-flag-column) * -20px)
    calc(var(--tcf-flag-row) * -15px);
}

.tcf-country-flag {
  flex: 0 0 auto;
  margin-right: 10px;
  border: 0;
  box-shadow: 0 0 0 1px rgba(33, 29, 29, .14);
}

.tcf-fields .choices.is-focused .choices__inner,
.tcf-fields .choices.is-open .choices__inner {
  border-color: var(--deep-green);
  outline: 3px solid rgba(40, 179, 75, .28);
  outline-offset: 1px;
}

.tcf-form input:focus,
.tcf-form select:focus,
.tcf-form textarea:focus {
  border-color: var(--deep-green);
  outline: 3px solid rgba(40, 179, 75, .28);
  outline-offset: 1px;
}

.tcf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tcf-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tcf-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.tcf-privacy {
  margin: 22px 0;
  color: var(--text-muted);
  font-size: .92rem;
}

.tcf-privacy a {
  color: var(--deep-green);
  font-weight: 700;
}

.tcf-upload-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tcf-upload-note span {
  color: var(--text-muted);
}

.tcf-form-status {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid;
}

.tcf-form-status h3 {
  margin: 0 0 6px;
}

.tcf-form-status p {
  margin: 0;
}

.tcf-form-status.success {
  border-color: var(--deep-green);
  background: var(--paper);
}

.tcf-form-status.error {
  border-color: var(--ink);
  background: var(--paper);
}

.cf-turnstile {
  margin: 20px 0;
}

.tcf-form button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 960px) {
  .tcf-application-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tcf-application-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .tcf-application {
    padding: 40px 0;
  }

  .tcf-application-grid {
    gap: 30px;
  }

  .tcf-form-shell {
    padding: 24px 18px;
  }

  .tcf-step-nav {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
    margin-bottom: 28px;
  }

  .tcf-step-tab {
    padding: 12px 7px;
    font-size: 0;
    text-align: center;
  }

  .tcf-step-tab span {
    margin: 0;
    font-size: .75rem;
  }

  .tcf-fields {
    grid-template-columns: 1fr;
  }

  .tcf-fields .wide {
    grid-column: auto;
  }

  .tcf-check {
    font-size: .92rem;
  }

  .tcf-application-intro h2 {
    font-size: 2.35rem;
  }
}
