:root {
  --form-bg: #f5f1e9;
  --form-card: #fffdf9;
  --form-line: #ded7cc;
  --form-muted: #6b655e;
  --form-focus: #1769aa;
  --form-error: #b42318;
  --form-success: #26734d;
}

[hidden] {
  display: none !important;
}

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

.application-page {
  min-width: 320px;
  background: var(--form-bg);
}

.application-notice {
  color: rgba(255, 255, 255, 0.84);
  background: var(--red-dark);
  font-size: 0.72rem;
}

.application-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.application-notice strong {
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.application-notice a {
  color: var(--white);
  font-weight: 750;
}

.application-header .nav-shell {
  min-height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-actions > a {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.header-actions > a:hover {
  text-decoration: underline;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--form-success);
  font-size: 0.72rem;
  font-weight: 750;
}

.secure-label svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.application-main {
  min-height: calc(100vh - 106px);
  padding: 45px 0 70px;
  background:
    radial-gradient(circle at 94% 3%, rgba(247, 200, 67, 0.12), transparent 20%),
    linear-gradient(180deg, #f7f2e9 0, #f4f1eb 100%);
}

.application-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1240px;
}

.progress-sidebar {
  position: sticky;
  top: 102px;
}

.progress-heading {
  padding: 0 10px 22px;
}

.progress-heading > span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.progress-heading h1 {
  margin: 1px 0 7px;
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.progress-heading p {
  margin: 0;
  color: var(--form-muted);
  font-size: 0.75rem;
}

.step-navigation {
  position: relative;
  display: grid;
  gap: 1px;
}

.step-navigation::before {
  position: absolute;
  z-index: 0;
  top: 23px;
  bottom: 23px;
  left: 26px;
  width: 1px;
  content: "";
  background: #d9d1c6;
}

.step-nav-button {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 5px 10px;
  color: #6e6861;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
}

.step-nav-button:hover:not(:disabled) {
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.58);
}

.step-nav-button:disabled {
  cursor: default;
}

.step-nav-number {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #817a72;
  background: var(--form-bg);
  border: 1px solid #d8d0c6;
  border-radius: 50%;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 850;
}

.step-nav-button.is-current {
  color: var(--red-dark);
  background: var(--white);
  box-shadow: 0 7px 24px rgba(73, 37, 15, 0.07);
}

.step-nav-button.is-current .step-nav-number {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 5px 14px rgba(200, 16, 46, 0.21);
}

.step-nav-button.is-complete {
  color: #4e4943;
}

.step-nav-button.is-complete .step-nav-number {
  color: var(--white);
  background: var(--form-success);
  border-color: var(--form-success);
}

.draft-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  margin: 20px 8px 0;
  color: #514c46;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--form-line);
  border-radius: 10px;
}

.draft-card svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--form-success);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.draft-card div {
  display: grid;
}

.draft-card strong {
  font-size: 0.68rem;
}

.draft-card span {
  margin-top: 3px;
  color: var(--form-muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.clear-draft {
  display: block;
  padding: 8px;
  margin: 8px auto 0;
  color: #817a72;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.64rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clear-draft:hover {
  color: var(--form-error);
}

.form-column {
  min-width: 0;
}

.mobile-progress {
  display: none;
}

.form-alert {
  padding: 14px 17px;
  margin-bottom: 14px;
  color: #7a271a;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 650;
}

.application-form {
  overflow: hidden;
  background: var(--form-card);
  border: 1px solid #e2dbd1;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(70, 39, 20, 0.09);
}

.website-field {
  position: absolute !important;
  left: -9999px !important;
}

.form-step {
  min-height: 620px;
  padding: 48px 54px 42px;
  animation: step-in 260ms ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

.step-intro {
  max-width: 720px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--form-line);
}

.step-kicker {
  display: inline-block;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-intro h2,
.submission-success h2 {
  margin: 6px 0 9px;
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.step-intro p {
  max-width: 650px;
  margin: 0;
  color: var(--form-muted);
  font-size: 0.88rem;
}

.privacy-callout,
.info-callout,
.review-notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 26px;
  color: #554c40;
  background: var(--cream);
  border: 1px solid #eedb9c;
  border-radius: 10px;
}

.privacy-callout svg,
.info-callout svg,
.review-notice svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.privacy-callout p,
.info-callout p,
.review-notice p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

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

.upload-card {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 14px;
}

.upload-card.has-error {
  border-color: var(--form-error);
}

.upload-card-copy {
  position: relative;
  min-height: 104px;
  padding-right: 38px;
}

.upload-number {
  position: absolute;
  top: -8px;
  right: 0;
  color: #e1d8cc;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-style: italic;
}

.upload-card h3 {
  margin: 0 0 7px;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.upload-card h3 span,
.field > label > span,
.field-group > legend > span,
.yes-no-question > legend > span,
.declaration-card strong > span,
.repeatable-card label > span {
  color: var(--form-error);
}

.upload-card-copy p {
  margin: 0;
  color: var(--form-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  color: var(--red-dark);
  background: #fdf8ed;
  border: 1px dashed #d9ba6c;
  border-radius: 11px;
  cursor: pointer;
  place-content: center;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within,
.upload-zone.is-dragover {
  background: #fff4cf;
  border-color: var(--red);
}

.upload-zone:focus-within {
  outline: 3px solid var(--form-focus);
  outline-offset: 3px;
}

.upload-zone input,
.mini-upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 50%;
  place-items: center;
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.upload-zone strong {
  font-size: 0.85rem;
}

.upload-zone small {
  margin-top: 4px;
  color: var(--form-muted);
  font-size: 0.65rem;
}

.upload-zone img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ede5d9;
  inset: 0;
}

.upload-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-top: 12px;
}

.upload-actions button,
.danger-link {
  padding: 3px;
  color: var(--red-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-actions .danger-link,
.danger-link {
  color: var(--form-error);
}

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

.field-grid + .field-grid {
  margin-top: 20px;
}

.field {
  min-width: 0;
  margin-bottom: 20px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > label,
.field-group > legend,
.yes-no-question > legend {
  display: block;
  margin-bottom: 7px;
  color: #3d3934;
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.4;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea,
.repeatable-card input:not([type="file"]),
.repeatable-card select,
.repeatable-card textarea,
.inline-add input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #302d29;
  background: #fff;
  border: 1px solid #cec6bb;
  border-radius: 8px;
  outline: 0;
  font-size: 0.82rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field textarea,
.repeatable-card textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.repeatable-card input:hover,
.repeatable-card select:hover,
.repeatable-card textarea:hover {
  border-color: #aca397;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.repeatable-card input:focus,
.repeatable-card select:focus,
.repeatable-card textarea:focus,
.inline-add input:focus {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.repeatable-card input[aria-invalid="true"],
.repeatable-card select[aria-invalid="true"],
.repeatable-card textarea[aria-invalid="true"] {
  background: #fff8f7;
  border-color: var(--form-error);
}

.field > small {
  display: block;
  margin-top: 6px;
  color: var(--form-muted);
  font-size: 0.65rem;
}

.field-error {
  min-height: 0;
  margin: 5px 0 0;
  color: var(--form-error);
  font-size: 0.67rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.field-group,
.yes-no-question {
  padding: 0;
  margin: 0 0 25px;
  border: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 185px));
  gap: 10px;
}

.choice-row.compact {
  grid-template-columns: repeat(2, minmax(140px, 210px));
}

.choice-card,
.choice-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-card input,
.choice-pill input,
.large-radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card > span,
.choice-pill > span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 15px 10px 42px;
  color: #514c46;
  background: #fff;
  border: 1px solid #d5cec4;
  border-radius: 8px;
  font-size: 0.78rem;
}

.choice-card > span::before,
.choice-pill > span::before {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 16px;
  height: 16px;
  content: "";
  background: #fff;
  border: 1px solid #aaa197;
  border-radius: 50%;
  transform: translateY(-50%);
}

.choice-card > span::after,
.choice-pill > span::after {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--white);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
}

.choice-card input:checked + span,
.choice-pill input:checked + span {
  color: var(--red-dark);
  background: var(--red-soft);
  border-color: var(--red);
}

.choice-card input:checked + span::before,
.choice-pill input:checked + span::before {
  background: var(--red);
  border-color: var(--red);
}

.choice-card input:checked + span::after,
.choice-pill input:checked + span::after {
  opacity: 1;
}

.choice-card input:focus-visible + span,
.choice-pill input:focus-visible + span,
.large-radio-card input:focus-visible + span {
  outline: 3px solid var(--form-focus);
  outline-offset: 3px;
}

.conditional-panel {
  margin: 4px 0 24px;
  animation: reveal-panel 220ms ease both;
}

@keyframes reveal-panel {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.subsection-card,
.repeatable-section {
  padding: 24px;
  background: #faf7f1;
  border: 1px solid var(--form-line);
  border-radius: 12px;
}

.subsection-card h3,
.repeatable-heading h3,
.final-declaration h3 {
  margin: 0;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.inline-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.inline-add .field {
  margin: 0;
}

.secondary-action {
  min-height: 43px;
  padding: 9px 14px;
  color: var(--red-dark);
  background: #fff;
  border: 1px solid rgba(152, 13, 36, 0.30);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.secondary-action:hover {
  background: var(--red-soft);
  border-color: var(--red);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.nationality-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 9px 6px 11px;
  color: #544e47;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
}

.nationality-tag button {
  display: grid;
  width: 19px;
  height: 19px;
  padding: 0;
  color: var(--form-error);
  background: var(--red-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.question-stack,
.question-block + .question-block {
  margin-top: 26px;
}

.question-block {
  padding-bottom: 25px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--form-line);
}

.radio-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.large-radio-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 130px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.large-radio-card:hover {
  border-color: rgba(200, 16, 46, 0.46);
  transform: translateY(-2px);
}

.large-radio-card:has(input:checked) {
  background: var(--red-soft);
  border-color: var(--red);
  box-shadow: 0 7px 20px rgba(200, 16, 46, 0.10);
}

.radio-card-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: var(--red);
  background: var(--cream);
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.large-radio-card > span:last-child {
  display: grid;
}

.large-radio-card strong {
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.large-radio-card small {
  margin-top: 4px;
  color: var(--form-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.visa-duration {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 17px;
  color: #5c5247;
  background: var(--cream);
  border: 1px solid #eed998;
  border-radius: 8px;
  font-size: 0.72rem;
}

.visa-duration strong {
  color: var(--red-dark);
}

.visa-duration small {
  margin-left: auto;
  color: var(--form-muted);
}

.label-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.label-row > label:first-child {
  margin: 0;
}

.inline-checkbox {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 700;
}

.inline-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.phone-input {
  display: grid;
  grid-template-columns: minmax(82px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
}

.subsection-divider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 35px 0 24px;
}

.subsection-divider::after {
  flex: 1;
  height: 1px;
  margin-left: 15px;
  content: "";
  background: var(--form-line);
}

.subsection-divider span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-suffix,
.currency-input {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.input-suffix > span,
.currency-input > b {
  position: absolute;
  right: 13px;
  color: var(--form-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.input-suffix input {
  padding-right: 55px !important;
}

.currency-input {
  grid-template-columns: auto 1fr auto;
}

.currency-input > span {
  position: absolute;
  z-index: 2;
  left: 13px;
  color: var(--red-dark);
  font-weight: 800;
}

.currency-input input {
  padding-right: 55px !important;
  padding-left: 29px !important;
}

.declaration-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  color: #443f39;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 10px;
  cursor: pointer;
}

.declaration-card:has(input:checked) {
  background: #f1faf5;
  border-color: #79b895;
}

.declaration-card input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--form-success);
}

.declaration-card > span {
  display: grid;
}

.declaration-card strong {
  font-size: 0.77rem;
}

.declaration-card small {
  margin-top: 4px;
  color: var(--form-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.repeatable-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.repeatable-heading p {
  margin: 4px 0 0;
  color: var(--form-muted);
  font-size: 0.7rem;
}

.repeatable-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 10px;
}

.repeatable-card + .repeatable-card {
  margin-top: 13px;
}

.repeatable-card-head {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--form-line);
}

.repeatable-card-head h4 {
  margin: 0;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.repeatable-card .field {
  margin-bottom: 14px;
}

.mini-upload-zone {
  position: relative;
  display: grid;
  min-height: 95px;
  overflow: hidden;
  background: #fdf8ed;
  border: 1px dashed #d9ba6c;
  border-radius: 8px;
  cursor: pointer;
  place-items: center;
  text-align: center;
}

.mini-upload-zone:focus-within {
  outline: 3px solid var(--form-focus);
  outline-offset: 2px;
}

.mini-upload-zone span {
  display: grid;
}

.mini-upload-zone strong {
  color: var(--red-dark);
  font-size: 0.72rem;
}

.mini-upload-zone small {
  color: var(--form-muted);
  font-size: 0.61rem;
}

.mini-upload-zone img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eee5d9;
  inset: 0;
}

.review-sections {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 19px 20px;
  background: #fff;
  border: 1px solid var(--form-line);
  border-radius: 10px;
}

.review-card-head {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee8df;
}

.review-card-head h3 {
  margin: 0;
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.review-edit {
  padding: 5px 8px;
  color: var(--red-dark);
  background: var(--red-soft);
  border: 1px solid rgba(200, 16, 46, 0.20);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 800;
}

.review-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 15px 0 0;
  margin: 0;
}

.review-list > div {
  min-width: 0;
}

.review-list dt {
  color: #898178;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-list dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: #3d3934;
  font-size: 0.75rem;
  font-weight: 650;
}

.review-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
}

.review-thumbnail {
  width: 88px;
}

.review-thumbnail img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  background: #eee6dc;
  border: 1px solid var(--form-line);
  border-radius: 6px;
}

.review-thumbnail span {
  display: block;
  margin-top: 4px;
  color: var(--form-muted);
  font-size: 0.56rem;
  text-align: center;
}

.final-declaration {
  padding: 25px;
  margin-top: 27px;
  background: #faf7f1;
  border: 1px solid var(--form-line);
  border-radius: 12px;
}

.final-declaration h3 {
  margin-bottom: 17px;
}

.final-declaration .declaration-card + .field-error + .declaration-card {
  margin-top: 12px;
}

.form-actions {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 80px;
  padding: 14px 54px;
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid var(--form-line);
  backdrop-filter: blur(12px);
}

.back-button,
.continue-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.back-button {
  color: var(--red-dark);
  background: #fff;
  border: 1px solid #d6cec4;
}

.continue-button,
.submit-button {
  margin-left: auto;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.18);
  text-decoration: none;
}

.continue-button:hover,
.submit-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.submit-button:disabled,
.continue-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.action-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--form-muted);
  font-size: 0.63rem;
}

.save-dot {
  width: 7px;
  height: 7px;
  background: var(--form-success);
  border-radius: 50%;
}

.submission-success {
  padding: 80px 60px;
  background: var(--form-card);
  border: 1px solid #e2dbd1;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(70, 39, 20, 0.09);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: var(--white);
  background: var(--form-success);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 13px 28px rgba(38, 115, 77, 0.22);
}

.success-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.submission-success > p {
  color: var(--form-muted);
  font-size: 0.84rem;
}

.reference-number {
  display: block;
  width: fit-content;
  padding: 10px 16px;
  margin: 15px auto 25px;
  color: var(--red-dark);
  background: var(--cream);
  border: 1px dashed #d4ae43;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.success-note {
  max-width: 560px;
  margin: 0 auto 25px;
}

.submission-success .continue-button {
  width: fit-content;
  margin: 0 auto;
}

.form-footer-note {
  max-width: 760px;
  margin: 17px auto 0;
  color: #7c756d;
  font-size: 0.65rem;
  text-align: center;
}

@media (max-width: 1050px) {
  .application-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
  }

  .form-step {
    padding: 42px 38px 36px;
  }

  .form-actions {
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (max-width: 860px) {
  .application-main {
    padding-top: 22px;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .progress-sidebar {
    display: none;
  }

  .mobile-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--form-line);
    border-radius: 11px;
    box-shadow: 0 7px 25px rgba(70, 39, 20, 0.06);
  }

  .mobile-progress > div:first-child {
    display: grid;
  }

  .mobile-progress span {
    color: var(--red);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-progress strong {
    color: var(--red-dark);
    font-size: 0.82rem;
  }

  .progress-track {
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
    background: #ebe4db;
    border-radius: 99px;
  }

  .progress-track span {
    display: block;
    width: 9%;
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ed5a28);
    border-radius: inherit;
    transition: width 220ms ease;
  }
}

@media (max-width: 640px) {
  .application-notice-inner {
    justify-content: center;
    min-height: 37px;
    text-align: center;
  }

  .application-notice-inner span {
    max-width: 330px;
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .application-notice-inner a,
  .secure-label {
    display: none;
  }

  .application-header .nav-shell {
    min-height: 64px;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions > a {
    font-size: 0.68rem;
  }

  .application-main {
    padding: 14px 0 45px;
  }

  .application-layout {
    width: min(calc(100% - 20px), var(--shell));
  }

  .mobile-progress {
    position: sticky;
    z-index: 20;
    top: 65px;
  }

  .application-form {
    border-radius: 14px;
  }

  .form-step {
    min-height: 0;
    padding: 31px 20px 28px;
  }

  .step-intro {
    padding-bottom: 22px;
    margin-bottom: 23px;
  }

  .step-intro h2 {
    font-size: 2rem;
  }

  .upload-grid,
  .field-grid,
  .radio-card-grid,
  .review-list {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .upload-card {
    padding: 18px;
  }

  .upload-zone {
    min-height: 190px;
  }

  .choice-row,
  .choice-row.compact {
    grid-template-columns: 1fr 1fr;
  }

  .inline-add {
    grid-template-columns: 1fr;
  }

  .secondary-action {
    width: 100%;
  }

  .subsection-card,
  .repeatable-section {
    padding: 17px;
  }

  .repeatable-heading {
    display: grid;
  }

  .repeatable-card {
    padding: 16px;
  }

  .phone-input {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .visa-duration {
    display: grid;
    gap: 2px;
  }

  .visa-duration small {
    margin-left: 0;
  }

  .label-row {
    display: grid;
    gap: 7px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 12px 20px;
  }

  .action-status {
    display: none;
  }

  .continue-button,
  .submit-button {
    width: 100%;
    margin-left: 0;
  }

  .back-button {
    min-width: 87px;
  }

  .submission-success {
    padding: 55px 24px;
    border-radius: 14px;
  }
}

@media (max-width: 410px) {
  .application-header .brand-copy small {
    display: none;
  }

  .application-header .brand-mark {
    flex-basis: 37px;
    width: 37px;
    height: 37px;
  }

  .header-actions > a {
    max-width: 45px;
    line-height: 1.2;
    text-align: right;
  }

  .choice-row,
  .choice-row.compact {
    gap: 7px;
  }

  .choice-card > span,
  .choice-pill > span {
    padding-right: 9px;
    padding-left: 36px;
  }

  .choice-card > span::before,
  .choice-pill > span::before {
    left: 12px;
  }

  .choice-card > span::after,
  .choice-pill > span::after {
    left: 17px;
  }

  .phone-input {
    grid-template-columns: 83px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-step,
  .conditional-panel {
    animation: none;
  }
}
