:root {
  color-scheme: dark;
}

.order-page {
  min-height: 100vh;
  background: #151515;
  color: #f2f2f2;
}

.order-page__shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.order-page__back {
  display: inline-block;
  margin-bottom: 34px;
}

.order-page__eyebrow {
  margin: 0 0 8px;
  color: #00a48d;
  font: 400 1.05rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-page__title {
  max-width: 760px;
  margin: 0;
  color: #ffbf00;
  font: 400 clamp(3.5rem, 8vw, 6.5rem)/0.9 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-page__intro {
  max-width: 680px;
  margin: 20px 0 14px;
  color: #bdbdbd;
  font: 500 1rem/1.65 Inter, sans-serif;
}

.order-form__required-note {
  margin: 0 0 38px;
  color: #969696;
  font: 500 0.82rem/1.4 Inter, sans-serif;
}

.order-form__required-note span,
.order-form__field:has(input:required) .order-form__label::after {
  color: #ff5c4d;
  font-weight: 700;
}

.order-form__field:has(input:required) .order-form__label::after {
  content: " *";
}

.order-form {
  display: grid;
  gap: 38px;
}

.order-form__section {
  margin: 0;
  padding: 0 0 38px;
  border: 0;
  border-bottom: 1px solid #383838;
}

.order-form__legend {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  color: #f2f2f2;
  font: 400 2rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.order-form__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.order-form__field--full {
  grid-column: 1 / -1;
}

.order-form__label {
  color: #d0d0d0;
  font: 600 0.82rem/1.35 Inter, sans-serif;
}

.order-form__optional {
  color: #777;
  font-weight: 500;
}

.order-form input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 0;
  background: #101010;
  color: #fff;
  padding: 12px 14px;
  font: 500 1rem/1.4 Inter, sans-serif;
}

.order-form input:focus {
  border-color: #ffbf00;
  outline: 2px solid transparent;
}

.order-form__trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.order-summary {
  min-height: 148px;
  border-left: 3px solid #ffbf00;
  padding: 4px 0 4px 20px;
}

.order-summary__waiting,
.order-summary__loading {
  display: flex;
  align-items: center;
  min-height: 116px;
  margin: 0;
  color: #969696;
  font: 600 0.95rem/1.5 Inter, sans-serif;
}

.order-summary__loading {
  gap: 12px;
  color: #d4d4d4;
}

.order-summary__spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid #4b4b4b;
  border-top-color: #ffbf00;
  border-radius: 50%;
  animation: order-spinner 0.75s linear infinite;
}

.order-summary__prices {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 0;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #bdbdbd;
  font: 600 0.95rem/1.4 Inter, sans-serif;
}

.order-summary__row--total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #454545;
  color: #fff;
  font-size: 1.15rem;
}

.order-summary__row strong {
  color: #ffbf00;
}

.order-form__status {
  min-height: 24px;
  margin: -16px 0 0;
  color: #ff7a66;
  font: 600 0.9rem/1.5 Inter, sans-serif;
}

.order-form__submit {
  justify-self: start;
  min-height: 52px;
  border: 1px solid #ffbf00;
  border-radius: 0;
  background: #ffbf00;
  color: #111;
  padding: 13px 24px;
  font: 700 0.9rem/1 Inter, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.order-form__submit:hover,
.order-form__submit:focus-visible {
  background: transparent;
  color: #ffbf00;
}

.order-form__submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

@keyframes order-spinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .order-page__shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .order-page__back {
    margin-bottom: 26px;
  }

  .order-page__title {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .order-page__intro {
    margin-bottom: 12px;
  }

  .order-form__required-note {
    margin-bottom: 30px;
  }

  .order-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-form__field--full {
    grid-column: auto;
  }

  .order-form__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-summary__spinner {
    animation-duration: 1.5s;
  }
}
