:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f5f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(116, 80, 255, 0.08), transparent 32rem), #f3f5f8;
}

.page {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6554d9;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: #647087;
  font-size: 18px;
  line-height: 1.6;
}

.status {
  padding: 10px 16px;
  border: 1px solid #d8dcea;
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid #dfe3ec;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 35px rgba(21, 31, 51, 0.06);
}

.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 10px;
  background: #ece9ff;
  color: #5643d8;
  font-weight: 800;
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.card p {
  margin: 8px 0;
  font-weight: 700;
}

.card span {
  display: block;
  margin-top: 14px;
  color: #7c879b;
  font-size: 14px;
  line-height: 1.5;
}

.arrow {
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #929bad;
}

.notice,
.endpoint {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid #dfe3ec;
  border-radius: 16px;
  background: white;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 18px;
}

.endpoint code {
  padding: 8px 12px;
  border-radius: 8px;
  background: #172033;
  color: white;
}

.endpoint span {
  color: #6b768b;
}

@media (max-width: 1050px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    height: 28px;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 28px, 1400px);
    padding: 32px 0;
  }

  .hero {
    flex-direction: column;
  }
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(460px, 100%);
}

.auth-card {
  padding: 38px;
  border: 1px solid #dfe3ec;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 70px rgba(21, 31, 51, 0.10);
}

.auth-title {
  font-size: 38px;
}

.auth-copy {
  margin: 16px 0 30px;
  color: #647087;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccd2df;
  border-radius: 10px;
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: #6554d9;
  box-shadow: 0 0 0 3px rgba(101, 84, 217, 0.10);
}

.auth-form button,
.secondary-button {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-form button {
  background: #172033;
  color: white;
}

.secondary-button {
  background: #eef0f5;
  color: #172033;
}

.auth-error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff0f0;
  color: #9d2222;
  font-size: 14px;
  font-weight: 700;
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  background: white;
}

.user-panel > div {
  display: grid;
  gap: 2px;
}

.user-panel span {
  color: #7c879b;
  font-size: 12px;
}

.user-panel form {
  margin: 0;
}

.form-body {
  min-height: 100vh;
  background: #f3f5f8;
}

.catering-page {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #5546c7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.form-header h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.form-header .subtitle {
  margin-top: 10px;
  font-size: 16px;
}

.form-card {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid #e0e4ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(21, 31, 51, .08);
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.step-progress li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 3px solid #e4e7ef;
  color: #8790a1;
  font-size: 13px;
}

.step-progress li.active {
  border-color: #6554d9;
  color: #27214f;
}

.step-progress li span,
.success-mark {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef0f5;
  font-weight: 800;
}

.step-progress li.active span,
.success-mark {
  background: #ece9ff;
  color: #5546c7;
}

.form-context {
  margin: 0 0 24px;
  color: #647087;
  font-size: 14px;
  line-height: 1.55;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden],
.conditional-field[hidden] {
  display: none !important;
}

.form-step > legend {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
}

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

.field-grid > label,
.field-group {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #263147;
  font-size: 14px;
  font-weight: 700;
}

.field-grid input:not([type="checkbox"]):not([type="radio"]),
.field-grid select,
.field-grid textarea,
.phone-grid select,
.phone-grid input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cdd3df;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 400;
}

.field-grid textarea {
  resize: vertical;
}

.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus {
  border-color: #6554d9;
  outline: 3px solid rgba(101, 84, 217, .12);
}

.field-grid small,
.field-group small {
  color: #778196;
  font-size: 12px;
  font-weight: 400;
}

.full-width {
  grid-column: 1 / -1;
}

.field-label,
.choice-field legend {
  color: #263147;
  font-size: 14px;
  font-weight: 700;
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 10px;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 4px 16px 4px 0;
  color: #354056;
  font-size: 14px;
  line-height: 1.5;
}

.check-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #6554d9;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.form-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e8eaf0;
}

.nav-spacer {
  flex: 1;
}

.primary-button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: #172033;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.form-navigation button[hidden] {
  display: none;
}

.form-error {
  margin-bottom: 22px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff0f0;
  color: #9d2222;
  font-size: 14px;
  line-height: 1.5;
}

.consent-option {
  grid-column: 1 / -1;
  align-items: flex-start;
  margin-top: 10px;
}

.consent-option input {
  margin-top: 2px;
}

.success-card {
  text-align: center;
}

.success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  font-size: 24px;
}

.success-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.success-card p {
  margin: 0 auto 24px;
  color: #647087;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 640px) {
  .catering-page {
    width: min(100% - 24px, 880px);
    padding-top: 20px;
  }

  .step-progress li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
  }

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

  .full-width {
    grid-column: auto;
  }

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

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: #5546c7;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}
