:root {
  --blue-900: #08265a;
  --blue-800: #0b3f91;
  --blue-700: #0f5fd8;
  --blue-500: #2583f5;
  --blue-100: #eaf3ff;
  --blue-50: #f6faff;
  --grey-900: #122033;
  --grey-700: #40536f;
  --grey-500: #6b7a92;
  --grey-200: #d7e3f4;
  --white: #ffffff;
  --green: #16a34a;
  --shadow: 0 18px 42px rgba(15, 47, 95, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--grey-900);
  background:
    radial-gradient(circle at top left, rgba(37, 131, 245, 0.2), transparent 32rem),
    linear-gradient(135deg, #f7fbff, #e8f1ff 55%, #fefefe);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.choice-card {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 460px) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
  justify-content: center;
  padding: 34px;
}

.mobile-frame {
  width: min(100%, 430px);
  border: 10px solid #10244f;
  border-radius: 38px;
  padding: 14px;
  background: #edf5ff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.form-card,
.sticky-summary {
  border: 1px solid var(--grey-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(16, 47, 99, 0.08);
}

.hero-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fef3c7;
  font-size: 1.35rem;
  font-weight: 1000;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.brand-row p,
.hero-card h1,
.hero-copy,
.section-title h2,
.form-card h2,
.form-card p,
.sticky-summary p,
.desktop-preview h2,
.desktop-preview p {
  margin: 0;
}

.brand-row p,
.eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h1 {
  font-size: 1.65rem;
  line-height: 1;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.45;
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title > span {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 1000;
  background: var(--blue-700);
}

.section-title h2 {
  color: var(--blue-900);
  font-size: 1.05rem;
}

label {
  display: grid;
  gap: 6px;
}

label > span,
.sticky-summary span {
  color: var(--grey-500);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--grey-200);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 900;
  background: #f8fbff;
  outline: none;
}

textarea {
  min-height: 92px;
  padding-top: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 131, 245, 0.12);
}

.choice-grid,
.date-grid {
  display: grid;
  gap: 10px;
}

.choice-grid.two,
.date-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 76px;
  gap: 5px;
  align-content: center;
  border: 2px solid #c8d8ef;
  border-radius: 18px;
  padding: 12px;
  background: #f8fbff;
  cursor: pointer;
}

.choice-card.compact {
  min-height: 58px;
  text-align: center;
}

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

.choice-card strong {
  color: var(--blue-900);
  font-weight: 1000;
  line-height: 1.1;
}

.choice-card small {
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 950;
}

.choice-card.selected,
.choice-card:has(input:checked) {
  border-color: var(--blue-700);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 12px 22px rgba(15, 95, 216, 0.22);
}

.choice-card.selected strong,
.choice-card.selected small,
.choice-card:has(input:checked) strong,
.choice-card:has(input:checked) small {
  color: var(--white);
}

.helper-text {
  color: var(--grey-500);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.sticky-summary {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  border-color: var(--blue-500);
  padding: 16px;
}

.sticky-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-summary strong {
  color: var(--blue-700);
  font-size: 1.35rem;
  font-weight: 1000;
}

.sticky-summary p {
  color: var(--grey-500);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.sticky-summary button {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 14px 24px rgba(15, 95, 216, 0.24);
}

.sticky-summary button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.order-submitted .sticky-summary button {
  background: linear-gradient(135deg, #16a34a, #166534);
}

.desktop-preview {
  position: sticky;
  top: 34px;
  display: grid;
  max-width: 640px;
  gap: 16px;
  border: 1px solid var(--grey-200);
  border-radius: 32px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.desktop-preview .eyebrow {
  color: var(--blue-700);
}

.desktop-preview h2 {
  color: var(--blue-900);
  font-size: 2.2rem;
  line-height: 1;
}

.desktop-preview p {
  color: var(--grey-700);
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.55;
}

.submitted-preview {
  display: grid;
  gap: 9px;
  border: 2px solid #bbf7d0;
  border-radius: 22px;
  padding: 16px;
  background: #f0fdf4;
}

.submitted-preview.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.submitted-preview.error h3,
.submitted-preview.error div,
.submitted-preview.error p {
  color: #991b1b;
}

.submitted-preview.submitting {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.submitted-preview.submitting h3,
.submitted-preview.submitting p {
  color: var(--blue-900);
}

.submitted-preview.hidden {
  display: none;
}

.submitted-preview h3 {
  margin: 0;
  color: #166534;
}

.submitted-preview div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #86efac;
  padding-bottom: 7px;
  color: #14532d;
  font-weight: 850;
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
    padding: 0;
  }

  .mobile-frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .desktop-preview {
    display: none;
  }
}

@media (max-width: 390px) {
  .choice-grid.two,
  .choice-grid.three,
  .date-grid {
    grid-template-columns: 1fr;
  }
}
