:root {
  color-scheme: light;
  --accent: #ACE34D;
  --accent-strong: #7FAB31;
  --ink: #172027;
  --ink-soft: #24313A;
  --muted: #66737D;
  --paper: #FFFFFF;
  --wash: #F4F8F5;
  --wash-strong: #EAF2EE;
  --line: rgba(23, 32, 39, 0.12);
  --teal: #138A7E;
  --danger: #C73737;
  --success: #168358;
  --shadow: 0 18px 45px rgba(23, 32, 39, 0.12);
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(19, 138, 126, 0.13), transparent 36%),
    linear-gradient(315deg, rgba(172, 227, 77, 0.22), transparent 32%),
    var(--wash);
  line-height: 1.6;
  letter-spacing: 0;
}

.order-page {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 48px 0;
}

.page-header {
  margin-bottom: 28px;
}

.back-link {
  color: var(--teal);
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

h1 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.form-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.step-status {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.step-status-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.step-status-head span {
  font-size: 0.95rem;
  font-weight: 750;
}

.step-status-head strong {
  color: var(--ink);
  font-size: 1.1rem;
  text-align: right;
}

.step-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--wash-strong);
}

.step-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.22s ease;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 8px 10px;
  text-align: center;
}

.step-list li.active {
  border-color: rgba(19, 138, 126, 0.55);
  background: var(--wash-strong);
  color: var(--ink);
}

.step-list li.complete {
  border-color: rgba(172, 227, 77, 0.95);
  background: rgba(172, 227, 77, 0.2);
  color: var(--ink-soft);
}

.order-form {
  display: block;
}

.form-step[hidden],
.conditional-field[hidden] {
  display: none;
}

fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.first-order-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.licence-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.licence-controls.full,
.annual-discount-notice.full {
  grid-column: 1 / -1;
}

.field.full {
  grid-column: 1 / -1;
}

.field-label,
label {
  color: var(--ink-soft);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 138, 126, 0.16);
  outline: none;
}
.subscription-native-select {
  display: none;
}

.subscription-select {
  position: relative;
}

.subscription-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 51px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: none;
  font-weight: 650;
  line-height: 1.35;
  padding: 12px 13px;
  text-align: left;
  transform: none;
}

.subscription-select-toggle:hover,
.subscription-select-toggle:focus {
  border-color: var(--teal);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(19, 138, 126, 0.16);
  transform: none;
}

.subscription-select.open .subscription-select-toggle {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 138, 126, 0.16);
}

.subscription-select.invalid .subscription-select-toggle {
  border-color: rgba(199, 55, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(199, 55, 55, 0.14);
}

.subscription-select-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.subscription-select.open .subscription-select-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.subscription-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: min(220px, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 14px 32px rgba(23, 32, 39, 0.14);
  padding: 4px;
}

.subscription-select-menu[hidden] {
  display: none;
}

.subscription-select-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  font-weight: 650;
  line-height: 1.35;
  padding: 9px 10px;
  text-align: left;
  transform: none;
}

.subscription-select-menu button:hover,
.subscription-select-menu button:focus {
  background: var(--wash-strong);
  box-shadow: none;
  transform: none;
}

.subscription-select-menu button[aria-selected="true"] {
  background: rgba(172, 227, 77, 0.24);
  color: var(--ink);
}

.field-error {
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.radio-options.compact {
  max-width: 440px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 12px 13px;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: rgba(19, 138, 126, 0.55);
  background: var(--wash-strong);
}

.radio-option input,
.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.annual-discount-notice {
  margin: -2px 0 0;
  border: 1px solid rgba(19, 138, 126, 0.2);
  border-radius: 8px;
  background: var(--wash-strong);
  color: var(--teal);
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.45;
  padding: 12px 14px;
}

.annual-discount-notice[hidden] {
  display: none;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.review-summary {
  display: grid;
  gap: 20px;
}

.review-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.review-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-section h2,
.declarations h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.review-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
}

.review-section dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-section dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.review-section dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.declarations {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.declaration-intro {
  margin: 0;
  color: var(--muted);
}

.declaration-intro a {
  color: var(--teal);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.declaration-intro a:hover,
.declaration-intro a:focus {
  color: var(--accent-strong);
  text-decoration: underline;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.check-row input {
  margin-top: 2px;
}

.submission-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}


.turnstile-widget {
  display: flex;
  min-height: 65px;
  margin: 8px 0 2px;
}

.submit-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.submit-status[hidden] {
  display: none;
}

.submit-status.info {
  border-color: rgba(19, 138, 126, 0.22);
  background: var(--wash-strong);
  color: var(--teal);
}

.submit-status.success {
  border-color: rgba(22, 131, 88, 0.28);
  background: #ECFDF3;
  color: var(--success);
}

.submit-status.error {
  border-color: rgba(199, 55, 55, 0.3);
  background: #FEF3F2;
  color: var(--danger);
}
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.step-actions.single {
  justify-content: flex-end;
}

button {
  min-height: 48px;
  border: 1px solid rgba(172, 227, 77, 0.85);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 22px;
  box-shadow: 0 10px 22px rgba(172, 227, 77, 0.25);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover,
button:focus {
  background: #B7ED56;
  box-shadow: 0 14px 26px rgba(172, 227, 77, 0.34);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

button:active {
  transform: translateY(0);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(172, 227, 77, 0.85);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(172, 227, 77, 0.25);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button-link:hover,
.button-link:focus {
  background: #B7ED56;
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(172, 227, 77, 0.34);
  transform: translateY(-1px);
}

.button-link.secondary {
  border-color: var(--line);
  background: #FFFFFF;
  box-shadow: none;
}

.button-link.secondary:hover,
.button-link.secondary:focus {
  border-color: rgba(19, 138, 126, 0.45);
  background: #F8FBFA;
  box-shadow: none;
}
.btn-secondary {
  border-color: var(--line);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgba(19, 138, 126, 0.45);
  background: #F8FBFA;
  box-shadow: none;
}

.required {
  color: var(--danger);
}

:focus-visible {
  outline: 3px solid rgba(172, 227, 77, 0.72);
  outline-offset: 3px;
}


.package-option {
  align-items: flex-start;
  min-height: 86px;
}

.package-option input {
  margin-top: 4px;
}

.package-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.package-copy strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.package-copy small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.review-total {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  border: 1px solid rgba(19, 138, 126, 0.22);
  border-radius: 8px;
  background: var(--wash-strong);
  padding: 14px 16px;
}

.review-total span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.review-total strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.2;
}

.review-disclaimer {
  margin-top: 4px;
  color: var(--muted);
  font-style: italic;
}

.review-total small {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.success-page {
  display: grid;
  align-items: center;
}

.success-shell {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.success-kicker {
  margin: 4px 0 -4px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.success-intro {
  max-width: 680px;
}

.success-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.success-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  width: 100%;
}
@media (max-width: 760px) {
  .order-page {
    width: min(100% - 24px, 960px);
    padding: 28px 0;
  }

  .step-status-head {
    display: grid;
    gap: 4px;
  }

  .step-status-head strong {
    text-align: left;
  }

  .step-list {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
  .radio-options,
  .licence-controls,
  .review-section dl {
    grid-template-columns: 1fr;
  }
  .step-actions {
    align-items: stretch;
  }

  button {
    width: 100%;
  }

  .subscription-select-menu {
    max-height: min(180px, 34vh);
  }
  .button-link,
  .success-actions {
    width: 100%;
  }
}