@font-face {
  font-family: 'Manrope';
  src: local('Manrope Regular'),
       local('Manrope-Regular'),
       url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: local('Manrope Medium'),
       local('Manrope-Medium'),
       url('../fonts/Manrope-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: local('Manrope SemiBold'),
       local('Manrope-SemiBold'),
       url('../fonts/Manrope-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --page-bg: #f3f3f4;
  --card-bg: #ffffff;
  --text: #1f2738;
  --text-strong: #20263a;
  --muted: #667085;
  --border: #e6e8ec;
  --border-strong: #d2d7df;
  --accent: #d31313;
  --accent-dark: #b20d0d;
  --accent-soft: #fff1f0;
  --warning-bg: #fff8e8;
  --warning-text: #8b6000;
  --success-bg: #edf9f1;
  --success-text: #157a43;
  --pill-bg: #f2f4f7;
  --input-bg: #ffffff;
  --input-disabled: #f3f4f6;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  --radius: 4px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-strong);
  font-family: Manrope, Arial, Helvetica, sans-serif;
}
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
.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;
}

.site-header,
.progress-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner,
.progress-inner,
.page-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }

.lang-select {
  min-width: 96px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.progress-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-step {
  color: #8c94a3;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}
.progress-step.is-active { color: var(--text-strong); font-weight: 600; }
.progress-step.is-complete { color: #58677f; font-weight: 600; }
.progress-divider { color: #98a2b3; font-size: 22px; line-height: 1; }

.page-shell { padding: 28px 0 40px; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.92fr) minmax(300px, .82fr);
  gap: 28px;
  align-items: start;
}
.main-column, .side-column { min-width: 0; }
.side-column {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 24px;
}

.card,
.notice {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice { padding: 28px; }
.notice-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.notice-warning,
.notice-success {
  margin-bottom: 18px;
  padding: 18px 22px;
}
.notice-warning { background: var(--warning-bg); color: var(--warning-text); border-color: #efdb9e; }
.notice-success { background: var(--success-bg); color: var(--success-text); border-color: #b8dfc6; }

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-more-info {
  margin: 16px 0 0;
  color: #55607a;
  font-size: 14px;
  line-height: 1.6;
}

.page-more-info a {
  color: #1d5fd0;
  text-decoration: underline;
  word-break: break-word;
}

.page-more-info a:hover {
  text-decoration: none;
}

.notice-content { min-width: 0; }
.page-title {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.page-intro {
  margin: 0;
  max-width: 860px;
  color: #55607a;
  font-size: 14px;
  line-height: 1.6;
}

.form-card { padding: 30px 32px; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.card-header h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: #526581;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.form-grid { display: grid; gap: 22px; }
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.required { color: var(--accent); margin-left: 3px; }

.form-field input,
.form-field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--input-bg);
  color: var(--text-strong);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-field input::placeholder { color: #98a2b3; }
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #c1c9d4;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .05);
}
.form-field input[disabled],
.form-field select[disabled] {
  background: var(--input-disabled);
  color: #667085;
  cursor: not-allowed;
}
.form-field input.invalid,
.form-field select.invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 18, 18, .08);
  background: #fffafb;
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 18, 18, .08);
  background: #fffafb;
}
.form-field.has-error label { color: var(--accent-dark); }
.form-field.has-error .field-hint { color: #7b5b5b; }
.field-hint,
.field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.field-hint { color: #667085; }
.field-error { color: var(--accent); min-height: 18px; }

.form-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
}
.primary-button {
  min-width: 220px;
  min-height: 56px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
.primary-button:hover:not(:disabled):not(.is-disabled) { background: var(--accent-dark); }
.primary-button:disabled { background: #8b8f98; cursor: not-allowed; opacity: .9; }
.primary-button.is-disabled { background: #8b8f98; opacity: .95; }
.primary-button.is-ready { background: var(--accent); }

.summary-card,
.details-card { padding: 28px 30px; }
.summary-card h3,
.details-card h3 {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
}
.summary-block {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.summary-block:first-of-type { border-top: none; padding-top: 0; }
.summary-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 16px;
}
.summary-value {
  display: block;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-strong);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.status-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 auto;
}
.status-pending { background: #f0a500; }
.status-success { background: #12b76a; }
.status-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.status-list li + li { margin-top: 6px; }

@media (max-width: 1080px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-column {
    position: static;
    order: -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .progress-inner,
  .page-grid { width: min(100% - 24px, var(--container)); }
  .header-inner { min-height: 72px; }
  .brand-logo { height: 34px; }
  .notice,
  .form-card,
  .summary-card,
  .details-card { padding: 22px 20px; }
  .notice-info { flex-direction: column; gap: 16px; }
  .card-header { flex-direction: column; align-items: flex-start; }
  .form-grid.two-cols { grid-template-columns: 1fr; }
  .form-field input,
  .form-field select { min-height: 60px; font-size: 17px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .primary-button { width: 100%; min-width: 0; }

  .main-column { display: contents; }

  .notice-info { order: 1; }
  .side-column { order: 2; grid-template-columns: 1fr; }
  .notice-warning,
  .notice-success { order: 3; }
  .form-card { order: 4; }

  .progress-step { font-size: 15px; }
  .page-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .side-column { order: 2; }
  .form-card { order: 4; }

  .page-shell { padding-top: 18px; }
  .summary-card h3,
  .details-card h3 { font-size: 20px; }
  .lang-select { min-width: 82px; height: 44px; }
}


.state-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 40px auto 0;
}

.state-card {
  width: min(760px, 100%);
  margin: 0 auto;
  min-height: 112px;
  padding: 34px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.state-message {
  margin: 0;
  color: #55607a;
  font-size: 18px;
  line-height: 1.55;
}

.state-secondary {
  margin: 12px 0 0;
  color: #7b869c;
  font-size: 14px;
  line-height: 1.5;
}
