:root {
  --bg: #fffaf0;
  --card: #ffffff;
  --text: #24272f;
  --muted: #666b78;
  --line: #383b45;
  --yellow: #ffe9a8;
  --blue: #d8efff;
  --green: #dff5df;
  --red: #ffe0e0;
  --shadow: 0 24px 70px rgba(38, 34, 28, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, #fff0ba 0, transparent 28%),
    radial-gradient(circle at 85% 18%, #dff2ff 0, transparent 26%),
    radial-gradient(circle at 50% 95%, #e2ffe0 0, transparent 30%),
    var(--bg);
}

.page {
  width: min(980px, calc(100% - 28px));
  margin: 32px auto 54px;
  position: relative;
  z-index: 1;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero-card {
  background: linear-gradient(135deg, #fff7d6, #e8f6ff);
}

h1 {
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 0.96;
  margin: 16px 0;
  letter-spacing: -0.06em;
}

h2 {
  margin-top: 0;
}

.lead {
  font-size: clamp(1.05rem, 2.7vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2dbf5b; display: inline-block; }
.pill.success { background: var(--green); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-grid > div,
.result-box {
  border: 2px dashed var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.tiny-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ticket-form {
  display: grid;
  gap: 20px;
}

label span {
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  background: #fffdf8;
  color: var(--text);
}

textarea { resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  outline: 4px solid rgba(255, 218, 82, 0.5);
}

button,
.button {
  appearance: none;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: var(--yellow);
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 20px;
  box-shadow: 6px 6px 0 var(--line);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover,
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--line);
}

.button.secondary { background: var(--blue); }
.button.ghost { background: #fff; }

.error-card {
  background: var(--red);
}

.result-card {
  background: linear-gradient(135deg, #e9f6ff, #fff7d6);
}

.ticket-number {
  margin: 26px 0;
  border: 4px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 22px;
  text-align: center;
  font-size: clamp(2rem, 8vw, 4.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.do-not-call {
  font-size: 1.5rem;
  font-weight: 950;
  margin-bottom: 0;
}

.summary {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.summary div {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #d5d8e1;
  border-radius: 18px;
  padding: 14px 16px;
}

.summary dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.summary dd {
  margin: 5px 0 0;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.footer-note {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.footer-note a,
table a {
  color: var(--text);
  font-weight: 850;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid #e3e3e3;
  vertical-align: top;
}

th {
  background: var(--yellow);
}

.background-badge {
  position: fixed;
  font-size: 8rem;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

.badge-one { left: 2vw; top: 5vh; transform: rotate(-12deg); }
.badge-two { right: 5vw; top: 35vh; transform: rotate(18deg); }
.badge-three { left: 8vw; bottom: 8vh; transform: rotate(10deg); }

@media (max-width: 720px) {
  .card { padding: 22px; border-radius: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .button, button { width: 100%; }
}
