@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ua-primary: #155c63;
  --ua-primary-dark: #103f45;
  --ua-ink: #182b30;
  --ua-muted: #53676d;
  --ua-line: #c7d5d7;
  --ua-soft: #f0f5f4;
}

body.ua-page {
  background: #f7f9f8;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
}

.ua-brand,
.ua-intro,
.ua-form,
.ua-steps,
.ua-steps button,
.ua-step-mobile select,
.ua-button,
.ua-field input,
.ua-field select {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ua-lead,
.ua-section-intro,
.ua-help,
.ua-payment-details {
  color: #000;
}

.ua-intro h1,
.ua-panel h1,
.ua-success h1,
.ua-form > h1 {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 720;
  letter-spacing: -.025em;
}

.ua-intro,
.ua-application,
.ua-success,
.ua-process article,
.ua-payment-method,
.ua-fee {
  box-shadow: none !important;
  background-image: none !important;
}

.ua-process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ua-process article { min-height: 170px; border: 1px solid #dce6e5; }
.ua-process h2 { font-weight: 700; }
.ua-steps { gap: 6px; }
.ua-steps .ua-step-future {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  color: var(--ua-muted);
  font-size: .92rem;
}
.ua-steps .ua-step-future > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ua-line);
  border-radius: 9px;
}
.ua-steps .ua-step-future.is-active { color: var(--ua-ink); font-weight: 700; }
.ua-steps .ua-step-future.is-active > span { color: #fff; background: var(--ua-primary); border-color: var(--ua-primary); }

.ua-field input:focus,
.ua-field select:focus {
  outline: none;
  border-color: var(--ua-primary);
  box-shadow: none !important;
}
.ua-button:focus-visible,
.ua-upload input:focus-visible + label {
  outline: 2px solid var(--ua-primary);
  outline-offset: 2px;
  box-shadow: none !important;
}
.ua-field input,
.ua-field select {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  box-shadow: none !important;
}
.ua-button { border-radius: 12px; font-weight: 700; box-shadow: none; }
.ua-button:hover { background: var(--ua-primary-dark); border-color: var(--ua-primary-dark); }
.ua-button--quiet:hover { color: #fff; }
.ua-phone { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }
.ua-phone select { padding-left: 8px; }
.ua-draft-link { background: #f1f6f4; border: 1px solid var(--ua-line); border-radius: 12px; padding: 12px 16px; }
.ua-draft-link a, .ua-checkout-link { color: var(--ua-primary); font-weight: 700; }

.ua-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 24px 0; border-top: 1px solid var(--ua-line); }
.ua-review > div { padding: 13px 0; border-bottom: 1px solid var(--ua-line); min-width: 0; }
.ua-review dt { color: var(--ua-muted); font-size: .82rem; }
.ua-review dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.ua-privacy { background: #fff; }

.ua-fee { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--ua-line); border-radius: 16px; }
.ua-fee strong { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 1.8rem; font-weight: 720; }
.ua-no-fee { border: 1px solid var(--ua-line); border-radius: 16px; padding: 22px; }
.ua-no-fee p { margin-bottom: 0; color: var(--ua-muted); }
.ua-payment-methods { display: grid; gap: 12px; }
.ua-payment-method { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 18px; border: 1px solid var(--ua-line); border-radius: 14px; }
.ua-payment-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 16px; align-items: center; cursor: pointer; }
.ua-payment-method:has(input:checked) { border-color: var(--ua-primary); background: #f5faf8; }
.ua-payment-choice > span:nth-child(2) { display: grid; gap: 3px; }
.ua-payment-method small { color: var(--ua-muted); }
.ua-payment-method input { accent-color: var(--ua-primary); }
.ua-payment-total { white-space: nowrap; }
.ua-payment-details, .ua-checkout-link { margin-left: 38px; font-size: .89rem; line-height: 1.5; }
.ua-payment-details { color: var(--ua-muted); overflow-wrap: anywhere; }
.ua-payment-reference { margin-top: 24px; }
.ua-payment-proof { margin-top: 20px; }
.ua-payment-proof input[type="file"] { height: auto; min-height: 54px; padding: 12px; border: 1px solid #b9c8cb; background: #fff; box-shadow: none; }
.ua-payment-proof input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 13px; border: 0; border-radius: 8px; color: #fff; background: var(--ua-primary); font: inherit; font-weight: 700; cursor: pointer; }
.ua-proof-ready { margin: 0 0 10px; padding: 11px 13px; border: 1px solid #b8d8ce; border-radius: 10px; color: #234d43; background: #edf7f3; }
.ua-track__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: min(100%, 480px); margin: 32px auto 0; text-align: left; }
.ua-track__form .ua-field,
.ua-track__form .ua-field input { width: 100%; min-width: 0; max-width: none; }
.ua-track__form .ua-button { justify-self: start; }
.ua-track__result { width: min(100%, 480px); margin: 28px auto 0; padding: 22px; text-align: left; border: 1px solid var(--ua-line); border-radius: 16px; }
.ua-track__result h2 { margin: 6px 0; }

@media (max-width: 840px) {
  .ua-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ua-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ua-steps .ua-step-future { justify-content: center; font-size: 0; padding: 10px 6px; }
  .ua-steps .ua-step-future > span { font-size: .85rem; }
}
@media (max-width: 620px) {
  .ua-process, .ua-review { grid-template-columns: 1fr; }
  .ua-process article { min-height: 0; }
  .ua-phone { grid-template-columns: 105px minmax(0, 1fr); }
  .ua-payment-choice { grid-template-columns: 22px minmax(0, 1fr); }
  .ua-payment-total { grid-column: 2; }
  .ua-form { padding: 22px 14px; }
  .ua-fields { gap: 14px; }
  .ua-field input,
  .ua-field select { height: 46px; padding: 0 12px; border-radius: 10px; }
  .ua-field label { margin-bottom: 6px; }
  .ua-upload label { min-height: 46px; padding: 11px 12px; }
}

/* Modern admission shell */
.ua-shell { width: min(1240px, calc(100% - 48px)); margin-top: 18px; }
.ua-brand { min-height: 78px; padding-inline: 8px; }
.ua-brand img { width: 48px; height: 48px; border-radius: 12px; }
.ua-back { border-radius: 12px; }
.ua-intro,
.ua-application,
.ua-success { border-color: #d9e2e3; border-radius: 22px; }
.ua-application { grid-template-columns: 264px minmax(0, 1fr); }
.ua-steps { padding: 32px 22px; background: #f1f5f4; border-right: 1px solid #d9e2e3; }
.ua-step-list { display: flex; flex-direction: column; gap: 7px; }
.ua-step-mobile { display: none; }
.ua-steps button,
.ua-steps .ua-step-future { min-height: 48px; border-radius: 11px; font-size: .91rem; }
.ua-steps button.is-active { border: 1px solid #d9e2e3; }
.ua-form { padding: clamp(32px, 4vw, 58px); }
.ua-panel { max-width: 880px; margin-inline: auto; }
.ua-panel h1 { margin-bottom: 28px; font-size: clamp(1.85rem, 3vw, 2.75rem); }
.ua-panel h2 { margin-top: 46px; }
.ua-grid { gap: 22px 20px; }
.ua-field label { color: #263a40; font-size: .86rem; font-weight: 680; }
.ua-field input,
.ua-field select { height: 54px; border-color: #b9c8cb; border-radius: 10px; background-color: #fff; }
.ua-field input:hover,
.ua-field select:hover { border-color: #8fa4a8; }
.ua-field input:focus,
.ua-field select:focus { border-width: 2px; padding-inline: 13px; }
.ua-upload {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: minmax(148px, max-content) minmax(0, 1fr);
  overflow: hidden;
  border-color: #b9c8cb;
  border-radius: 10px;
}
.ua-upload input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.ua-upload label { min-width: 148px; border-radius: 8px; font-weight: 680; text-align: center; }
.ua-upload [data-file-name] { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-actions { padding-top: 10px; border-top: 1px solid #e4eaeb; }
.ua-button { min-height: 50px; border-radius: 10px; }
.ua-process article { border-radius: 14px; }
.ua-process article > span { border-radius: 9px; }
.ua-privacy,
.ua-fee,
.ua-no-fee,
.ua-payment-method,
.ua-track__result { border-radius: 12px; }
.ua-fee strong { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-weight: 720; }

@media (max-width: 840px) {
  .ua-shell { width: min(100% - 28px, 720px); margin-top: 10px; }
  .ua-application { grid-template-columns: 1fr; }
  .ua-steps {
    display: block;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid #d9e2e3;
    background: #fff;
  }
  .ua-step-list { display: none; }
  .ua-step-mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
  .ua-step-mobile label { color: var(--ua-muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .ua-step-mobile select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 38px 0 14px;
    border: 1px solid #aebfc2;
    border-radius: 10px;
    background: #fff;
    color: var(--ua-ink);
    font: 650 16px/1 "Inter", ui-sans-serif, system-ui, sans-serif;
    box-shadow: none;
  }
  .ua-step-mobile select:focus { outline: 2px solid var(--ua-primary); outline-offset: 2px; box-shadow: none; }
  .ua-step-mobile select:disabled { color: var(--ua-ink); opacity: 1; }
}

@media (max-width: 620px) {
  body.ua-page { background: #fff; }
  .ua-shell,
  .ua-shell--intro { width: 100%; }
  .ua-brand { min-height: 70px; padding: 10px 16px; border-bottom: 1px solid #e3e9ea; }
  .ua-brand img { width: 42px; height: 42px; }
  .ua-intro,
  .ua-application,
  .ua-success { border: 0; border-radius: 0; }
  .ua-step-mobile { grid-template-columns: 1fr; gap: 7px; }
  .ua-step-mobile label { padding-left: 2px; }
  .ua-form { padding: 28px 18px 36px; }
  .ua-grid { gap: 17px; }
  .ua-panel h1 { margin-bottom: 24px; font-size: 1.8rem; }
  .ua-panel h2 { margin-top: 36px; }
  .ua-field input,
  .ua-field select { width: 100%; height: 48px; font-size: 16px; }
  .ua-upload { grid-template-columns: 1fr; }
  .ua-upload label { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; }
  .ua-upload [data-file-name] { padding: 2px 4px; }
  .ua-actions { gap: 10px; margin-top: 30px; }
}
