:root {
  /* A-Z Entertainment brand palette */
  --brand-blue-1: #4bccf9;
  --brand-blue-2: #0abaf7;
  --brand-grey: #c9cbcb;
  --brand-black: #000000;

  --bg: #000000;
  --bg-elev: #0c1216;
  --bg-card: #10181d;
  --line: #223038;
  --text: #f2f8fb;
  --muted: #c9cbcb;
  --accent: #4bccf9;
  --accent-2: #0abaf7;
  --accent-grad: linear-gradient(120deg, #4bccf9 0%, #0abaf7 100%);
  --on-accent: #002430;
  --good: #4bccf9;
  --warn: #0abaf7;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #06232e 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  width: min(640px, 92vw);
  margin: 0 auto;
  padding: 32px 0 48px;
}

/* Brand ------------------------------------------------------------------ */
.brand {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.brand__logo {
  display: block;
  width: min(340px, 100%);
  height: auto;
}

/* Progress --------------------------------------------------------------- */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elev);
  overflow: hidden;
  margin-bottom: 26px;
}
.progress__bar {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--accent-grad);
  transition: width 0.35s ease;
}

/* Steps ------------------------------------------------------------------ */
.step {
  display: none;
  animation: fade 0.35s ease;
}
.step.is-active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

.step__title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.step__lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15.5px;
}

/* Fields ----------------------------------------------------------------- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 7px;
}

.req {
  color: var(--accent-2);
}
.muted {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #5f7079;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 204, 249, 0.18);
}

/* Native date picker — keep calendar control visible on dark theme */
input[type="date"] {
  color-scheme: dark;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: invert(0.75) sepia(1) saturate(5) hue-rotate(155deg);
  padding: 4px;
  border-radius: 6px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(75, 204, 249, 0.12);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0b4' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Checkbox group */
.checkgroup__label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 9px;
}
.checkgroup {
  display: grid;
  gap: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check:hover {
  border-color: var(--muted);
}
.check input {
  width: auto;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--accent-2);
  min-height: 0;
}
.error:empty {
  display: none;
}

.field--invalid input,
.field--invalid select {
  border-color: var(--accent-2);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

/* Branching groups ------------------------------------------------------- */
.branch {
  display: none;
}
.branch.is-active {
  display: block;
}

/* Buttons ---------------------------------------------------------------- */
.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent-grad);
  color: var(--on-accent);
  font-weight: 800;
}
.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--muted);
}

.btn--block {
  width: 100%;
  margin-top: 12px;
}

/* Result ----------------------------------------------------------------- */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.result-card__label {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 10px;
}

.result-card__range {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  margin: 0;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-card__sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.disclaimer {
  background: rgba(10, 186, 247, 0.08);
  border: 1px solid rgba(10, 186, 247, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #cfe9f5;
}
.disclaimer__title {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent);
}
.disclaimer p {
  margin: 0;
}

.flags,
.notes {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.flags li,
.notes li {
  font-size: 13.5px;
  padding: 9px 12px 9px 34px;
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}
.flags li {
  background: rgba(10, 186, 247, 0.1);
  border: 1px solid rgba(10, 186, 247, 0.3);
  color: #d3ecfa;
}
.flags li::before {
  content: "!";
  position: absolute;
  left: 12px;
  font-weight: 800;
  color: var(--accent-2);
}
.notes li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
}
.notes li::before {
  content: "\2713";
  position: absolute;
  left: 12px;
  color: var(--good);
}

.cta {
  text-align: center;
  margin-top: 26px;
}
.cta__lead {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
}

/* Footer ----------------------------------------------------------------- */
.footer {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .step__title {
    font-size: 23px;
  }
  .result-card__range {
    font-size: 32px;
  }
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}
