:root {
  color-scheme: light;
  --bg: #fffaf6;
  --ink: #0d0d0d;
  --muted: #7b7b82;
  --line: #e5e5ea;
  --panel: #ffffff;
  --accent: #ff5a12;
  --accent-strong: #ef4b00;
  --accent-soft: #fff0eb;
  --danger: #ff3b0a;
  --danger-soft: #fff0ec;
  --success: #b34700;
  --shadow: 0 30px 90px rgba(33, 23, 16, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 48%, rgba(255, 90, 18, 0.11), transparent 30rem),
    radial-gradient(circle at 90% 52%, rgba(255, 90, 18, 0.13), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
}

.topbar {
  height: 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 174px;
  height: auto;
}

.topbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
}

.topbar a:not(.brand) {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  margin-left: 6px;
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 30px 0 38px;
}

.form-panel {
  border: 1px solid rgba(229, 229, 234, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 72px) 30px;
}

.stepper {
  display: grid;
  grid-template-columns: max-content minmax(48px, 1fr) max-content;
  align-items: center;
  gap: 14px;
  width: min(430px, 100%);
  margin: 0 auto 12px;
}

.stepper i {
  height: 1px;
  background: #d8d8de;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8a8a92;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.step span {
  width: 28px;
  height: 28px;
  border: 1px solid #d8d8de;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #8a8a92;
  font-size: 0.82rem;
}

.step--active {
  color: var(--accent-strong);
}

.step--active span {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 90, 18, 0.12);
}

.form-heading {
  text-align: center;
  margin-bottom: 6px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
}

.form-heading > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.helper-line,
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8a8a92;
  font-size: 0.94rem;
}

.helper-line {
  margin-top: 10px;
}

.helper-line svg,
.privacy-note svg {
  width: 18px;
  height: 18px;
  color: #a0a0a8;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.input-shell {
  min-height: 56px;
  border: 1px solid #dcdce2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(255, 90, 18, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 18, 0.12);
}

.input-shell svg {
  width: 19px;
  height: 19px;
  color: #222222;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0;
}

.field input::placeholder {
  color: #9a9aa2;
}

.field input[readonly] {
  color: #8d8d94;
}

.select-shell {
  grid-template-columns: 24px minmax(0, 1fr);
}

.field select {
  appearance: none;
  cursor: pointer;
  font-weight: 700;
  background:
    linear-gradient(45deg, transparent 50%, #1f1f23 50%) calc(100% - 6px) 24px / 6px 6px
      no-repeat,
    linear-gradient(135deg, #1f1f23 50%, transparent 50%) calc(100% - 1px) 24px / 6px 6px
      no-repeat;
  padding-right: 26px;
}

.submit-button {
  min-height: 58px;
  border: 0;
  border-radius: 11px;
  margin-top: 2px;
  background: linear-gradient(135deg, #ff7a1a 0%, var(--accent) 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.submit-button::after {
  content: " ->";
  margin-left: 18px;
  font-weight: 800;
}

.submit-button--busy::after {
  content: "";
  margin-left: 0;
}

.submit-button:hover {
  box-shadow: 0 16px 34px rgba(255, 90, 18, 0.26);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.privacy-note {
  margin: 0;
}

.status,
.form-message {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.status--visible,
.form-message--visible {
  display: block;
}

.status--info {
  background: var(--accent-soft);
  color: var(--success);
}

.status--error,
.form-message--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.form-message--success {
  background: var(--accent-soft);
  color: var(--success);
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 18px 20px;
  }

  .topbar p {
    font-size: 0.86rem;
  }

  .page-shell {
    min-height: calc(100vh - 74px);
    width: min(100% - 24px, 620px);
    align-items: start;
    padding: 22px 0 30px;
  }

  .profile-form {
    padding: 28px 22px 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    line-height: 1;
  }

  .brand img {
    width: 152px;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
  }

  .stepper i {
    display: none;
  }

  h2 {
    font-size: 2rem;
  }

  .form-heading > p,
  .helper-line,
  .privacy-note {
    font-size: 0.9rem;
  }
}
