/* ==========================================================================
   Request a service — wizard (js/apply.js)
   Steps: name → phone → email → country → profession → request received.
   The page itself does not scroll; .apply-wizard__main scrolls if needed.
   Typography follows the home page (SF Pro Display + Playfair italic accent),
   fields are underlined, the primary button is the hero's white pill.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
html.ref-flow-bg,
html.ref-flow-bg body {
  background-color: #000;
  background-image: none;
  color-scheme: dark;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* quiet stage: near-black with one warm light low in the frame, like the footer */
.landing-flow-bg {
  background-color: #000;
  background-image:
    radial-gradient(70% 48% at 50% 104%, rgb(255 193 126 / .13) 0, rgb(170 110 35 / .06) 42%, transparent 72%),
    radial-gradient(90% 60% at 50% 40%, rgb(48 36 25 / .55) 0, rgb(20 14 10 / .35) 45%, transparent 80%);
  height: 100lvh;
  inset: 0 0 auto;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 0;
}

/* Boot loader: bouncing silver mark */
.loader {
  align-items: center;
  background: #000;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity .5s ease;
  z-index: 100;
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.loader__o-bounce {
  animation: loader-o-bounce 1.65s cubic-bezier(.45, 0, .25, 1) infinite;
  margin: -1.75rem;
  overflow: visible;
  padding: 1.75rem;
}

.loader__o-inner {
  display: block;
  overflow: visible;
  position: relative;
  width: 4.5rem;
}

.loader__o-glow {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.loader__o,
.loader__o-glow-img {
  display: block;
  height: auto;
  width: 100%;
}

.loader__o-glow-img {
  animation: loader-o-glow-breathe 10s ease-in-out infinite;
  filter: blur(12px) brightness(1.5);
  left: 0;
  opacity: .44;
  position: absolute;
  top: 0;
}

.loader__o {
  object-fit: contain;
  position: relative;
  z-index: 1;
}

@keyframes loader-o-bounce {
  0%, to { transform: translateY(0); }
  50% { transform: translateY(-.85rem); }
}

@keyframes loader-o-glow-breathe {
  0%, to { filter: blur(11px) brightness(1.4); }
  50% { filter: blur(14px) brightness(1.55); }
}

/* Layout column: header space is part of .apply-wizard__header padding */
.page-layout {
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-layout__body,
.page-layout__slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.register-page {
  background: transparent;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0 1.5rem 1.5rem;
}

.sr-only {
  border-width: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Header in the apply flow: only the (non-clickable) mark */
.header--apply-flow {
  min-height: calc(var(--header-pad-y) + 3.92rem);
  padding-bottom: 0;
}

.header__logo-link--static {
  cursor: default;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Wizard frame
   -------------------------------------------------------------------------- */
.apply-wizard {
  --apply-wizard-max-width: 22.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 auto;
  max-width: var(--apply-wizard-max-width);
  min-height: 0;
  transition: max-width .45s cubic-bezier(.22, 1, .36, 1), opacity .6s cubic-bezier(.22, 1, .36, 1), filter .6s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.apply-wizard--instant-width {
  transition: none;
}

.apply-wizard__header {
  --apply-progress-gap: .5rem;
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0 auto;
  max-width: 22.25rem;
  padding: calc(5.02rem + var(--apply-progress-gap)) 1rem 1rem;
  position: relative;
  width: 100%;
  z-index: 3;
}

.apply-wizard__progress {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 3px;
  opacity: 0;
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.apply-wizard__progress--visible {
  opacity: 1;
}

/* "Step 02 of 05" */
.apply-wizard__step {
  color: rgba(255, 193, 126, .9);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1;
  margin: 0;
  min-height: 11px;
  text-transform: uppercase;
}

.apply-progress {
  margin: 0 auto;
  width: 100%;
}

.apply-progress__track {
  background: #ffffff14;
  border-radius: 999px;
  container-type: inline-size;
  height: 1px;
  overflow: hidden;
}

.apply-progress__fill {
  border-radius: 999px;
  height: 100%;
  overflow: hidden;
  width: 0;
  will-change: width;
}

.apply-progress__fill--animate {
  transition: width .55s cubic-bezier(.22, 1, .36, 1);
}

.apply-progress__fill-gradient {
  background: linear-gradient(90deg, rgba(255, 193, 126, .45), rgba(255, 236, 200, .95));
  height: 100%;
  width: 100cqw;
}

/* scrollable middle, full viewport width */
.apply-wizard__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: calc(50% - 50dvw);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1);
  width: 100dvw;
  -webkit-overflow-scrolling: touch;
}

.apply-wizard__main::-webkit-scrollbar {
  display: none;
}

.apply-wizard__main--scrolled {
  mask-image: linear-gradient(180deg, transparent 0, #000 1.5rem, #000);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.5rem, #000);
}

.apply-wizard__content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  margin: 0 auto;
  max-width: var(--apply-wizard-max-width);
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
  text-align: left;
  width: 100%;
}

.apply-wizard__stage {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.apply-wizard__kb-spacer {                /* room for the on-screen keyboard */
  flex: 0 0 auto;
  height: var(--apply-kb-inset, 0);
  pointer-events: none;
  width: 100%;
}

.apply-wizard__footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 1rem;
  opacity: 0;
  padding-bottom: 1.5rem;
  pointer-events: none;
  transform: translate3d(0, 20px, 0);
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.apply-wizard__footer--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0);
}

/* while the application is being sent the stage and footer lift away */
.apply-wizard--content-faded .apply-wizard__stage,
.apply-wizard--content-faded .apply-wizard__footer {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -14px, 0);
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1);
}

/* Continue button — the home page's solid white pill */
.apply-wizard__continue {
  align-items: center;
  appearance: none;
  background: #ffffffe0;
  border: 0;
  border-radius: 28px;
  color: #000000b8;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  gap: .5rem;
  height: 45px;
  justify-content: center;
  letter-spacing: -.01em;
  line-height: 1.5;
  max-width: 100%;
  min-width: 13.5rem;
  outline: none;
  padding: 0 22px;
  position: relative;
  transition: background .3s ease, transform .45s var(--home-ease-out), opacity .3s ease;
  white-space: nowrap;
}

.apply-wizard__continue:hover:not(:disabled) {
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .apply-wizard__continue:hover:not(:disabled) {
    transform: translateY(-2px);
  }
}

.apply-wizard__continue:focus-visible {
  outline: 2px solid hsla(0, 0%, 100%, .45);
  outline-offset: 3px;
}

.apply-wizard__continue:disabled {
  cursor: not-allowed;
  opacity: .38;
  pointer-events: none;
}

.apply-wizard__continue--loading:disabled {
  cursor: wait;
  opacity: 1;
}

.apply-wizard__continue-label::after {
  content: "\2192";               /* → */
  display: inline-block;
  margin-left: .5em;
  transition: transform .45s var(--home-ease-out);
}

.apply-wizard__continue:hover:not(:disabled) .apply-wizard__continue-label::after {
  transform: translateX(3px);
}

.apply-wizard__continue-label--hidden {
  visibility: hidden;
}

.apply-wizard__continue-spinner {
  animation: apply-wizard-continue-spin .7s linear infinite;
  border: 2px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  border-top-color: #000000b8;
  height: 1.1rem;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 1.1rem;
}

@keyframes apply-wizard-continue-spin {
  to { transform: rotate(1turn); }
}

/* Glass button surface (shared with the home page's .liquid-glass) */
.liquid-glass--button {
  --lg-btn-wash-top: .1;
  --lg-btn-wash-mid: .03;
  --lg-btn-base: .08;
  --lg-btn-transition: --lg-btn-wash-top .55s cubic-bezier(.4, 0, .2, 1), --lg-btn-wash-mid .55s cubic-bezier(.4, 0, .2, 1), --lg-btn-base .55s cubic-bezier(.4, 0, .2, 1), box-shadow .55s cubic-bezier(.4, 0, .2, 1), color .3s ease;
  background: linear-gradient(165deg, rgb(255 143 25 / var(--lg-btn-wash-top)) 0, rgb(255 143 25 / var(--lg-btn-wash-mid)) 48%, #fff0), rgb(255 255 255 / var(--lg-btn-base));
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  box-shadow: inset 0 1px #ffdcb952, inset -1px 0 #ffc8961a, inset 0 -1px #ff8f190f, inset 1px 0 #ffffff0a;
  font-family: var(--font-display);
  transform: translateZ(0);
  transition: var(--lg-btn-transition), opacity .3s ease;
  will-change: backdrop-filter;
}

.liquid-glass--button:hover:not(:disabled) {
  --lg-btn-wash-top: .16;
  --lg-btn-wash-mid: .05;
  --lg-btn-base: .12;
  box-shadow: inset 0 1px #ffe1c366, inset -1px 0 #ffc89624, inset 0 -1px #ff8f1914, inset 1px 0 #ffffff0d;
}

@media (hover: none) and (pointer: coarse) {
  .liquid-glass--button {
    --lg-btn-wash-top: .14;
    --lg-btn-wash-mid: .05;
    --lg-btn-base: .16;
  }
}

@property --lg-btn-wash-top { syntax: "<number>"; inherits: false; initial-value: .1; }
@property --lg-btn-wash-mid { syntax: "<number>"; inherits: false; initial-value: .03; }
@property --lg-btn-base { syntax: "<number>"; inherits: false; initial-value: .08; }

/* Back link */
.apply-wizard__back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .5rem;
  color: #ffffff80;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  gap: .5rem;
  height: 2.25rem;
  justify-content: center;
  letter-spacing: -.01em;
  line-height: 1.25rem;
  opacity: 0;
  padding: .5rem 1rem;
  pointer-events: none;
  text-decoration: none;
  transition: opacity .45s ease, color .3s ease;
  white-space: nowrap;
}

.apply-wizard__back::before {
  content: "\2190";               /* ← */
}

.apply-wizard__back--visible {
  opacity: 1;
  pointer-events: auto;
}

.apply-wizard__back--visible:hover:not(:disabled) {
  color: #fff;
}

@media (min-width: 768px) {
  .apply-wizard {
    --apply-wizard-max-width: 34rem;
  }

  .apply-wizard__header {
    max-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.form-field {
  position: relative;
  width: 100%;
}

.form-field__label {
  color: rgba(255, 193, 126, .9);
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

/* underlined field: a hairline that warms up on focus */
.form-field__input-wrapper {
  backface-visibility: hidden;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  display: block;
  isolation: isolate;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease;
  width: 100%;
}

.form-field__input-wrapper:focus-within:not(.form-field__input-wrapper--error) {
  border-bottom-color: rgba(255, 193, 126, .85);
  box-shadow: 0 1px 0 rgba(255, 193, 126, .25);
}

.form-field__input-wrapper--error {
  border-bottom-color: rgba(255, 138, 122, .7);
}

.form-field__input-wrapper--error:focus-within {
  border-bottom-color: #ff8a7a;
  box-shadow: 0 1px 0 rgba(255, 138, 122, .3);
}

.form-field__input {
  background: transparent;
  border: none;
  border-radius: 0;
  caret-color: rgba(255, 193, 126, .9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  line-height: 1.4;
  outline: none;
  padding: .55rem 0 .65rem;
  width: 100%;
}

.form-field__input::placeholder {
  color: #ffffff59;
}

/* native select dressed like the inputs */
.form-field__select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 2rem;
}

.form-field__select:invalid,
.form-field__select option[value=""] {
  color: #ffffff80;
}

.form-field__select option {
  background: #141008;
  color: #fff;
}

.form-field__chevron {
  border-bottom: 1.5px solid #ffffffb3;
  border-right: 1.5px solid #ffffffb3;
  height: 8px;
  pointer-events: none;
  position: absolute;
  right: .4rem;
  top: calc(50% - 6px);
  transform: rotate(45deg);
  transition: border-color .3s ease;
  width: 8px;
}

.form-field__input-wrapper:focus-within .form-field__chevron {
  border-color: rgba(255, 193, 126, .95);
}

.form-field__input:-webkit-autofill,
.form-field__input:-webkit-autofill:hover,
.form-field__input:-webkit-autofill:focus {
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: inset 0 0 0 30px transparent;
  transition: background-color 5000s ease-in-out 0s;
}

.form-field__error {
  color: #ff8a7a;
  font-family: var(--font-display);
  font-size: 13px;
  left: 0;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-top: 6px;
  pointer-events: none;
  position: absolute;
  top: 100%;
}

@media (min-width: 768px) {
  .form-field__label {
    font-size: 12px;
    margin-bottom: .45rem;
  }

  .form-field__input,
  .phone-input {
    font-size: 1.5rem;
  }

  .form-field__input {
    padding: .6rem 0 .7rem;
  }
}

/* Phone field (intl-tel-input inside) */
.form-field--phone {
  isolation: isolate;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.form-field--phone:focus-within {
  z-index: 9999;
}

.phone-input {
  align-items: stretch;
  backface-visibility: hidden;
  background: transparent;
  isolation: isolate;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  line-height: 1.4;
  min-height: 2.75rem;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease;
  width: 100%;
}

.phone-input:focus-within:not(.phone-input--error) {
  border-bottom-color: rgba(255, 193, 126, .85);
  box-shadow: 0 1px 0 rgba(255, 193, 126, .25);
}

.phone-input--error {
  border-bottom-color: rgba(255, 138, 122, .7);
}

.phone-input--error:focus-within {
  border-bottom-color: #ff8a7a;
  box-shadow: 0 1px 0 rgba(255, 138, 122, .3);
}

.phone-input__plus {
  color: #fff;
  font-family: var(--font-display);
  left: 3.6rem;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  z-index: 1;
}

.phone-input .iti {
  --iti-border-color: hsla(0, 0%, 100%, .2);
  --iti-dropdown-bg: rgba(26, 26, 26, .92);
  --iti-icon-color: hsla(0, 0%, 100%, .7);
  --iti-hover-color: hsla(0, 0%, 100%, .12);
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  width: 100%;
}

.phone-input .iti__country-container {
  background: transparent;
  border: none;
  border-radius: 0;
  border-right: 1px solid hsla(0, 0%, 100%, .14);
  min-width: 3rem;
  visibility: visible;
  width: 3rem;
}

.phone-input .iti__selected-country {
  color: #fff;
  padding: 0 .4rem 0 0;
}

.phone-input .iti__country-container .iti__selected-country-primary:hover,
.phone-input .iti__country-container .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
  background-color: transparent;
}

.phone-input .iti__selected-country:focus-visible {
  border-radius: 6px;
  width: stretch;
}

.phone-input .iti__arrow {
  border-top-color: #ffffffb3;
}

.phone-input .iti__arrow--up {
  border-bottom-color: #ffffffb3;
}

.phone-input .iti input.iti__tel-input {
  background: transparent;
  border: none;
  border-radius: 0;
  caret-color: rgba(255, 193, 126, .9);
  color: #fff;
  flex: 1;
  font-family: var(--font-display);
  font-size: inherit;
  letter-spacing: inherit;
  min-width: 0;
  outline: none;
  padding: .55rem 0 .65rem 3.6rem !important;   /* the library sets an inline padding */
  -webkit-text-fill-color: #fff;
}

.phone-input .iti input.iti__tel-input::placeholder {
  color: #ffffff59;
}

.phone-input .iti input.iti__tel-input:-webkit-autofill,
.phone-input .iti input.iti__tel-input:-webkit-autofill:hover,
.phone-input .iti input.iti__tel-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  background-color: transparent;
  box-shadow: inset 0 0 0 1000px transparent;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

/* country dropdown (rendered at the end of <body>) */
.iti--container.iti--inline-dropdown .iti__dropdown-content {
  background: transparent;
  -webkit-backdrop-filter: blur(60px) saturate(120%);
  backdrop-filter: blur(60px) saturate(120%);
  border: 1px solid hsla(0, 0%, 100%, .18);
  border-radius: 1rem;
  box-shadow: inset 0 1px #ffffff40, inset -1px 0 #ffffff1f, inset 0 -1px #ffffff0a, inset 1px 0 #ffffff08, 0 8px 32px #00000080;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
}

.iti--container.iti--inline-dropdown .iti__dropdown-content::-webkit-scrollbar,
.iti--container.iti--inline-dropdown .iti__country-list::-webkit-scrollbar {
  display: none;
}

.iti--container.iti--inline-dropdown .iti__country-list {
  scrollbar-width: none;
}

.iti--container.iti--inline-dropdown .iti__search-input-wrapper {
  border-bottom-color: #fff3;
}

.iti--container.iti--inline-dropdown .iti__search-input {
  background: transparent;
  color: #fff;
  font-family: var(--font-hellix);
  padding: .5rem 1rem .5rem 2.25rem;
}

.iti--container.iti--inline-dropdown .iti__search-input::placeholder {
  color: #ffffff80;
}

.iti--container.iti--inline-dropdown .iti__country {
  color: #fff;
  padding: .5rem 1rem;
}

.iti--container.iti--inline-dropdown .iti__country.iti__highlight {
  background: #ffffff1f;
}

/* SMS consent checkbox */
.sms-consent {
  text-align: left;
  width: 100%;
}

.sms-consent__label {
  align-items: flex-start;
  color: #ffffffb8;
  cursor: pointer;
  display: flex;
  gap: .625rem;
}

.sms-consent__input {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sms-consent__box {
  align-items: center;
  background: #ffffff0a;
  border-radius: 5px;
  box-shadow: inset 0 0 0 .5px #ffffff59;
  color: transparent;
  display: flex;
  flex: 0 0 auto;
  height: 1.125rem;
  justify-content: center;
  margin-top: .1rem;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
  width: 1.125rem;
}

.sms-consent__check {
  height: .75rem;
  width: .75rem;
}

.sms-consent__input:checked + .sms-consent__box {
  background: #c9ae78;
  box-shadow: none;
  color: #111;
}

.sms-consent__input:focus-visible + .sms-consent__box {
  box-shadow: inset 0 0 0 .5px #ffffffb3, 0 0 0 3px #ffffff2e;
}

.sms-consent__label--error .sms-consent__box {
  box-shadow: inset 0 0 0 .5px #ef4444e6;
}

.sms-consent__copy {
  color: #ffffffb8;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.4;
  min-width: 0;
}

.sms-consent__disclosure {
  color: #ffffff59;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
  margin: .35rem 0 0 1.75rem;
}

.sms-consent__disclosure a {
  color: #ffffff8c;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* short helper line under a field (country, profession) */
.apply-step__hint {
  color: #ffffff73;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.45;
  margin: -.5rem 0 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.apply-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  position: relative;
  transition: opacity .35s ease;
  width: 100%;
}

.apply-step.is-leaving {
  opacity: 0;
}

/* Name step: greeting lines appear one after another, then the two fields */
.apply-step-name__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  will-change: transform;
}

.apply-step-name__stack--pending {
  opacity: 0;
  pointer-events: none;
}

.apply-step-name__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.apply-step-name__greeting {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
}

.apply-step-name__line {
  margin: 0;
  text-align: center;
  width: 100%;
}

.apply-step-name__line--split {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .35em;
  justify-content: center;
}

.apply-step-name__line--greeting {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.02em;
  line-height: 1.3;
}

/* Playfair italic word inside a heading or line (like <em> on the home page) */
.apply-accent {
  font-family: var(--font-accent);
  font-size: 1.06em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
}

.apply-step-name__line--subtitle {
  color: #ffffffb8;
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1.45;
  margin: .15rem auto 0;
  max-width: 26em;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.apply-step-name__line--subtitle-visible {
  opacity: 1;
  transform: translateZ(0);
}

.apply-step-name__question {
  min-height: 2.5em;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.apply-step-name__question--open {
  opacity: 1;
  pointer-events: auto;
}

.apply-step-name__line--question {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  min-height: 2.5em;
  text-shadow: 0 0 8px rgba(255, 239, 225, .25);
}

.apply-step-name__part {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.apply-step-name__part--visible {
  opacity: 1;
  transform: translateZ(0);
}

.apply-step-name__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.apply-step-name__field {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

.apply-step-name__field--visible {
  opacity: 1;
  transform: translateZ(0);
}

/* returning visitor: no choreography */
.apply-step-name--reduced .apply-step-name__part,
.apply-step-name--reduced .apply-step-name__line--subtitle,
.apply-step-name--reduced .apply-step-name__question,
.apply-step-name--reduced .apply-step-name__field {
  transition: none !important;
}

/* Other steps: one block (title + field) that flies up into the vertical centre */
.apply-step__block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, calc(var(--center-y, 0px) + var(--fly-distance, 44px)), 0);
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1), transform .85s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  will-change: transform, opacity;
}

.apply-step__block--visible {
  opacity: 1;
  transform: translate3d(0, var(--center-y, 0), 0);
}

.apply-step.is-leaving .apply-step__block {
  opacity: 1;
  transform: translate3d(0, var(--center-y, 0), 0);
  transition: none;
}

.apply-step__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 .25rem;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 239, 225, .25);
  text-wrap: balance;
  width: 100%;
}

.apply-step-phone__name {
  font-family: var(--font-accent);
  font-size: 1.06em;
  font-style: italic;
  letter-spacing: -.03em;
}

.apply-step-phone__question {
  display: block;
  margin-top: .35rem;
}

.apply-step__form-error {
  color: #ff8a7a;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.4;
  margin: -.5rem 0 0;
  opacity: 0;
  text-align: center;
  transition: opacity .3s ease;
}

.apply-step__form-error.is-visible {
  opacity: 1;
}

@media (min-width: 768px) {
  .apply-step-name__line--greeting {
    font-size: 2rem;
  }

  .apply-step-name__line--subtitle {
    font-size: 1.125rem;
  }

  .apply-step-name__line--question,
  .apply-step__title {
    font-size: 2.125rem;
    line-height: 1.2;
  }

  .apply-step__block {
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Request received — a drawn check mark, a short confirmation, a way back
   -------------------------------------------------------------------------- */
.apply-done {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 28rem;
  padding: 1rem 0 3rem;
  text-align: center;
  width: 100%;
}

.apply-done > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

.apply-done--visible > * {
  opacity: 1;
  transform: none;
}

.apply-done--visible .apply-done__title { transition-delay: .55s; }
.apply-done--visible .apply-done__text { transition-delay: .75s; }
.apply-done--visible .apply-done__link { transition-delay: .95s; }

.apply-done__check {
  height: 80px;
  margin-bottom: .75rem;
  position: relative;
  width: 80px;
}

.apply-done__check::before {
  background: radial-gradient(circle, rgb(255 193 126 / .28) 0, rgb(255 193 126 / .1) 40%, transparent 70%);
  border-radius: 50%;
  content: "";
  filter: blur(10px);
  inset: -40%;
  opacity: 0;
  position: absolute;
  transition: opacity 1.2s ease .6s;
}

.apply-done--visible .apply-done__check::before {
  opacity: 1;
}

.apply-done__check svg {
  display: block;
  height: 100%;
  overflow: visible;
  position: relative;
  width: 100%;
}

.apply-done__ring {
  fill: none;
  stroke: rgba(255, 193, 126, .9);
  stroke-dasharray: 233;
  stroke-dashoffset: 233;
  stroke-linecap: round;
  stroke-width: 1.5;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.apply-done__tick {
  fill: none;
  stroke: #fff;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.apply-done--visible .apply-done__ring {
  animation: apply-done-draw 1.1s cubic-bezier(.65, 0, .35, 1) .1s forwards;
}

.apply-done--visible .apply-done__tick {
  animation: apply-done-draw .55s cubic-bezier(.65, 0, .35, 1) .85s forwards;
}

@keyframes apply-done-draw {
  to { stroke-dashoffset: 0; }
}

.apply-done__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 0 8px rgba(255, 239, 225, .25);
}

.apply-done__text {
  color: #ffffffb8;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1.5;
  margin: 0;
  max-width: 26em;
  text-wrap: pretty;
}

.apply-done__text strong {
  color: #fff;
  font-weight: 500;
}

.apply-done__link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #ffffffd9;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  height: 45px;
  letter-spacing: -.01em;
  margin-top: .75rem;
  padding: 0 22px;
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}

.apply-done__link:hover {
  background: #ffffff0f;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

@media (min-width: 768px) {
  .apply-done__text {
    font-size: 1.125rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__o-bounce,
  .loader__o-glow-img {
    animation: none;
  }

  .apply-done > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .apply-done__ring,
  .apply-done__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}
