:root {
  color-scheme: light dark;
  --color-background: #f6f7ff;
  --color-background-soft: #fdf7ff;
  --color-surface: #ffffff;
  --color-surface-alt: rgba(255, 255, 255, 0.78);
  --color-border: #d8def7;
  --color-border-strong: #c5cdf2;
  --color-text: #1e293b;
  --color-text-muted: #596079;
  --color-primary: #5a4dd6;
  --color-primary-strong: #3f3ac9;
  --color-primary-soft: rgba(90, 77, 214, 0.16);
  --color-accent: #275ed3;
  --color-error-background: #fef4f6;
  --color-error-border: #f4cbd7;
  --color-error-text: #8a1b2f;
  --shadow-soft: 0 24px 60px -30px rgba(82, 99, 205, 0.45),
    0 18px 40px -20px rgba(42, 130, 208, 0.25);
  --shadow-lift: 0 12px 30px rgba(42, 130, 208, 0.25);
  --shadow-focus: 0 0 0 4px rgba(90, 77, 214, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #101c34;
    --color-background-soft: #0f172a;
    --color-surface: #13213c;
    --color-surface-alt: rgba(19, 33, 60, 0.82);
    --color-border: rgba(148, 163, 184, 0.2);
    --color-border-strong: rgba(148, 163, 184, 0.36);
    --color-text: #f8fafc;
    --color-text-muted: #cbd5f5;
    --color-primary: #b5bcff;
    --color-primary-strong: #9da5ff;
    --color-primary-soft: rgba(181, 188, 255, 0.18);
    --color-accent: #6ea4ff;
	--color-error-background: rgba(199, 58, 95, 0.18);
    --color-error-border: rgba(255, 149, 178, 0.65);
    --color-error-text: #ffccd9;
    --shadow-soft: 0 24px 60px -30px rgba(13, 23, 44, 0.9),
      0 18px 40px -20px rgba(24, 64, 152, 0.45);
    --shadow-lift: 0 12px 30px rgba(24, 64, 152, 0.38);
    --shadow-focus: 0 0 0 4px rgba(150, 172, 255, 0.28);
  }
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(155deg, var(--color-background) 0%, var(--color-background-soft) 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 64px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-shell__orbit {
  position: absolute;
  width: min(560px, 65vw);
  height: min(560px, 65vw);
  opacity: 0.65;
  filter: drop-shadow(0 32px 70px rgba(82, 99, 205, 0.35));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-shell__orbit--top {
  top: -160px;
  right: -120px;
}

.page-shell__orbit--bottom {
  bottom: -180px;
  left: -120px;
  transform: scale(-1, 1) rotate(6deg);
  opacity: 0.55;
}

.page-shell > .container {
  z-index: 1;
}
.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-text);
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-text);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-text);
}

p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

ol,
ul {
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
}

.card {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.form-card,
.instructions-card {
  width: 100%;
}

.form-card {
  position: relative;
  z-index: 2;
}

.instructions-card {
  position: relative;
  z-index: 1;
}

.instructions-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
}

.instructions-list {
  width: 100%;
  text-align: left;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 24px;
  counter-reset: howItWorksSteps;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
}

.content-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-muted);
}

.content-list li {
  line-height: 1.6;
}

.content-list--compact {
  gap: 8px;
  padding-left: 16px;
}

.content-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.content-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.content-media img {
  width: 100%;
  height: auto;
  display: block;
}

.not-found-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.not-found-card p {
  max-width: 420px;
}

.not-found-actions {
  display: flex;
  gap: 12px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--color-primary-strong);
  outline: none;
  box-shadow: var(--shadow-focus);
}

.instructions-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.55;
  padding: 20px 18px 20px 76px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  border: 1px solid rgba(90, 77, 214, 0.12);
  color: var(--color-text);
  counter-increment: howItWorksSteps;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.instructions-list li > span {
  color: inherit;
}

.instructions-list li::before {
  content: counter(howItWorksSteps, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary-strong);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(90, 77, 214, 0.18);
}

.form-combined-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.form-combined-fields__field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-combined-fields__field > label {
  margin: 0;
}

.turnstile-wrapper {
  margin: 12px 0;
  }

.turnstile-wrapper--responsive {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.error-callout {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-error-border);
  background: var(--color-error-background);
  color: var(--color-error-text);
  box-shadow: 0 12px 30px rgba(139, 34, 54, 0.08);
}

.error-callout > p {
  margin: 0;
  color: inherit;
}

.error-callout > p strong {
  color: inherit;
}

.error-callout__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-error-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.turnstile-slot {
  width: 300px;
  max-width: 100%;
  min-height: 65px;
}

.results-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 24px;
}

.results-table-wrapper table {
  width: 100%;
  min-width: 100%;
}


label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
  color: var(--color-text);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

input:hover,
select:hover {
  border-color: var(--color-primary);
}

input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: var(--shadow-focus);
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  box-shadow: var(--shadow-lift);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(42, 130, 208, 0.28);
  filter: brightness(1.02);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 0 0 6px rgba(58, 80, 214, 0.45);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(90, 77, 214, 0.12);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

th {
  background: rgba(90, 77, 214, 0.08);
  color: var(--color-text);
  font-weight: 600;
}

tr:last-of-type td {
  border-bottom: none;
}

.results-table__row--highlight td {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.results-table__row--highlight td a {
  color: inherit;
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--color-primary-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.loading-indicator__spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 48px 16px 72px;
  }

  .container {
    gap: 24px;
  }

  .card {
    padding: 22px;
  }
  
  .instructions-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .form-combined-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-combined-fields__field {
    gap: 4px;
  }

  .form-combined-fields__field {
    width: 100%;
  }
  
    .instructions-list {
    grid-template-columns: 1fr;
  }

  .instructions-list li {
    padding: 18px 16px 18px 64px;
  }

  .instructions-list li::before {
    left: 18px;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .results-table-wrapper {
    margin-top: 20px;
    padding-bottom: 8px;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px var(--color-border);
  }

  .results-table-wrapper table {
    min-width: 520px;
    border-radius: 0;
    box-shadow: none;
  }

  .results-table-wrapper th,
  .results-table-wrapper td {
    padding: 10px 12px;
    font-size: 0.9rem;
    word-break: break-word;
  }

  .results-table-wrapper td a {
    word-break: break-all;
  }

  .page-shell::before,
  .page-shell::after {
    width: min(420px, 90vw);
    height: min(420px, 90vw);
    opacity: 0.45;
  }
}

.site-header {
  width: min(1080px, 100%);
  display: flex;
  align-items: center;
  z-index: 1;
  margin-bottom: -8px;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-header__link:hover {
  color: var(--color-text);
}

.site-footer {
  width: min(1080px, 100%);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  z-index: 1;
}

.site-footer p {
  font-size: 0.85rem;
}

@media (forced-colors: active) {
  .page-shell::before,
  .page-shell::after {
    display: none;
  }

   .combobox__listbox {
    background-color: Canvas;
    border: 1px solid CanvasText;
  }

  .combobox__option {
    forced-color-adjust: none;
    background: Canvas;
    color: CanvasText;
  }

  .combobox__option--active,
  .combobox__option--selected {
    background: Highlight;
    color: HighlightText;
  }

  .combobox__option--empty {
    color: GrayText;
  }
}

.combobox {
  position: relative;
}

.combobox__input {
  margin-bottom: 0;
}

.combobox--location .combobox__input {
  margin-top: 4px;
}

.combobox__listbox {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  z-index: 8;
}

.combobox--device .combobox__trigger {
  margin-top: 4px;
}

.combobox__trigger {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  background-image: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease,
    background-color 0.2s ease;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.combobox__trigger:hover {
  border-color: var(--color-primary);
}

.combobox__trigger:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: var(--shadow-focus);
}

.combobox__trigger[aria-expanded="true"] {
  border-color: var(--color-primary);
  background-color: rgba(90, 77, 214, 0.08);
}

.combobox__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.combobox__trigger-icon svg {
  width: 16px;
  height: 16px;
}

.combobox__option {
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-text);
  transition: background-color 0.2s ease;
}

.combobox__option--active {
  background-color: var(--color-primary-soft);
}

.combobox__option--selected {
  background-color: rgba(90, 77, 214, 0.18);
  font-weight: 600;
}

.combobox__option--empty {
  cursor: default;
  color: var(--color-text-muted);
  font-weight: 500;
}

.combobox__option--empty:hover {
  background-color: inherit;
}

@media (forced-colors: active) {
  .combobox__trigger {
    forced-color-adjust: none;
    background-color: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
}
