:root {
  color-scheme: light;
  --ink: #000000;
  --text: #151515;
  --muted: #5c7188;
  --faint: #9aa5b1;
  --blue: #0038ff;
  --line: #dddddd;
  --soft: #eeeeee;
  --left: #000000;
  --left-top: #07133b;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #fff;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 56, 255, 0.32);
  outline-offset: 2px;
}

.apply-shell {
  display: grid;
  grid-template-columns: 535px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
}

.trust-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 56, 255, 0.2), transparent 38%),
    linear-gradient(180deg, var(--left-top), var(--left) 38%, #000);
  position: relative;
}

.brand-mark,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  color: #fff;
  font-size: 24px;
}

.brand-mark img,
.mobile-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.trust-content {
  align-self: center;
}

.eyebrow,
.step-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-panel .eyebrow {
  color: rgba(177, 192, 255, 0.92);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  width: 430px;
  margin-bottom: 32px;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.12;
}

.trust-copy p:not(.eyebrow) {
  width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.trust-metrics {
  display: none;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.trust-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  animation: trustBoundaryReveal 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trust-list p:nth-child(1) {
  animation-delay: 120ms;
}

.trust-list p:nth-child(2) {
  animation-delay: 260ms;
}

.trust-list p:nth-child(3) {
  animation-delay: 400ms;
}

.trust-list p:nth-child(4) {
  animation-delay: 540ms;
}

.trust-list p::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

@keyframes trustBoundaryReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-list p {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.trust-note {
  align-self: end;
  margin: 0;
  color: rgb(168, 180, 191);
  font-size: 11px;
  line-height: 1.45;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  width: 432px;
  gap: 8px;
  margin-top: 40px;
}

.trust-chips span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.form-shell {
  display: grid;
  align-content: center;
  width: min(540px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
  background: #fff;
}

.form-header {
  margin-bottom: 24px;
}

.mobile-brand {
  display: none;
}

.form-header h2 {
  margin: 0 0 8px;
  color: #000;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.form-header .eyebrow {
  display: none;
}

.step-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.step-progress span {
  min-height: 26px;
  border-radius: 999px;
  background: #f1f1f1;
  padding: 5px 10px;
  color: #8d98aa;
  font-size: 12px;
  font-weight: 600;
}

.step-progress span.active {
  color: var(--blue);
  background: rgba(0, 56, 255, 0.08);
}

.request-form,
.step-panel {
  min-width: 0;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-kicker {
  display: none;
}

.step-panel h3,
.success-panel h3 {
  margin: 0 0 10px;
  color: #000;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.step-copy,
.success-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.field-grid,
.stock-grid,
.request-type-grid {
  display: grid;
  gap: 12px;
}

.field-grid,
.stock-grid,
.request-type-grid {
  grid-template-columns: 1fr;
}

.stock-grid {
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.check-group legend {
  color: #45515e;
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #000;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

textarea {
  min-height: 112px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a4a4a4;
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.request-type-grid {
  margin-bottom: 16px;
}

.type-card {
  cursor: pointer;
}

.type-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.type-card span {
  display: grid;
  gap: 5px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.type-card input:checked + span {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.type-card strong {
  color: #000;
  font-size: 15px;
}

.type-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.request-detail {
  padding-top: 4px;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.check-group legend {
  width: 100%;
  margin-bottom: 2px;
}

.check-group label {
  border-radius: 8px;
  background: #f1f1f1;
  padding: 6px 10px;
  color: #222;
  font-size: 13px;
}

.check-group input,
.consent input {
  accent-color: var(--blue);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.consent input {
  width: 15px;
  min-height: 15px;
  margin-top: 2px;
}

.action-bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.primary-link {
  min-height: 48px;
  border: 0;
  border-radius: 100px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action,
.primary-link {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.secondary-action {
  color: #000;
  background: #eee;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.form-note.error {
  color: #c43b2f;
}

.success-panel {
  padding-top: 4px;
}

.success-panel:focus {
  outline: none;
}

.success-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.success-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.success-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.success-grid span {
  color: var(--muted);
  font-size: 12px;
}

.success-grid strong {
  min-width: 0;
  color: #000;
  overflow-wrap: anywhere;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .apply-shell {
    grid-template-columns: 1fr;
  }

  .trust-panel {
    display: none;
  }

  .form-shell {
    width: min(540px, calc(100% - 32px));
    align-content: start;
    min-height: 100vh;
    margin-top: 42px;
    padding: 0 0 56px;
  }

  .mobile-brand {
    display: inline-flex;
    margin-bottom: 34px;
    color: #000;
  }
}

@media (max-width: 560px) {
  .form-shell {
    width: calc(100% - 28px);
    margin-top: 28px;
  }

  .form-header h2,
  .step-panel h3,
  .success-panel h3 {
    font-size: 28px;
  }

  .step-progress {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .step-progress span {
    white-space: nowrap;
  }

  .action-bar {
    grid-template-columns: 1fr;
  }

  .action-bar button,
  .primary-link {
    width: 100%;
  }

  .form-note {
    order: -1;
  }
}
