:root {
  color-scheme: light;
  --brand: #0757f8;
  --brand-dark: #0644c9;
  --ink: #11264c;
  --muted: #71809a;
  --line: #dce5f2;
  --page: #f3f6fb;
  --white: #ffffff;
  --success: #0b8a63;
  --error: #c74646;
  --radius: 12px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(7, 87, 248, 0.22);
  outline-offset: 3px;
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px 30px;
  background: var(--white);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}

.app-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.app-brand {
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.form-panel__inner {
  width: 100%;
}

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

.form-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1;
}

.step-view {
  animation: reveal 180ms ease both;
}

.step-view[hidden] {
  display: none;
}

.seller-list {
  display: grid;
  gap: 10px;
}

.seller-option {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.seller-option:hover {
  border-color: rgba(7, 87, 248, 0.56);
  background: #f7f9ff;
}

.seller-option:active {
  transform: scale(0.99);
}

.selected-seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.selected-seller strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  flex: 0 0 auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 750;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.field-group input,
.field-group select {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field-group select {
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 17px) 24px, calc(100% - 11px) 24px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  appearance: none;
}

.field-group input::placeholder {
  color: #9ba8ba;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(7, 87, 248, 0.1);
}

.field-group input.is-invalid,
.field-group select.is-invalid {
  border-color: var(--error);
}

.field-error {
  margin: 5px 0 0;
  color: var(--error);
  font-size: 0.76rem;
  line-height: 1.35;
}

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

.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 800;
  transition: background 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.submit-button:hover {
  background: var(--brand-dark);
}

.submit-button:active {
  transform: scale(0.99);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-status--success {
  color: var(--success);
}

.form-status--error {
  color: var(--error);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 560px) {
  .app-shell {
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
    border-radius: 18px;
    box-shadow: 0 14px 50px rgba(30, 63, 121, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
