:root {
  --bg: #f4f7f3;
  --bg-accent: #e0eadf;
  --card: rgba(255, 255, 255, 0.94);
  --line: #d5ddd4;
  --text: #1d2a21;
  --muted: #5e6d63;
  --primary: #1d6b46;
  --primary-dark: #145336;
  --primary-soft: #e7f3ec;
  --shadow: 0 24px 60px rgba(29, 42, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 107, 70, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #eef3ec 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
  background: rgba(29, 107, 70, 0.09);
}

body::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -60px;
  background: rgba(110, 153, 124, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.card {
  width: min(100%, 760px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.form-card {
  padding: 36px;
}

.success-card {
  padding: 56px 36px;
  text-align: center;
}

.intro {
  margin-bottom: 28px;
}

.eyebrow,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.field {
  display: grid;
  gap: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label,
legend {
  font-weight: 700;
  font-size: 0.98rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #859388;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(29, 107, 70, 0.7);
  box-shadow: 0 0 0 4px rgba(29, 107, 70, 0.12);
}

.importance-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.importance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.2s ease;
}

.choice-pill input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(29, 107, 70, 0.14);
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 16px 26px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 20px 34px rgba(20, 83, 54, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 38px rgba(20, 83, 54, 0.28);
  filter: saturate(1.05);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(29, 107, 70, 0.2);
  outline-offset: 3px;
}

.success-card .primary-button {
  margin-top: 28px;
}

@media (max-width: 720px) {
  .form-card,
  .success-card {
    padding: 28px 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .choice-pill,
  .choice-pill span,
  .primary-button {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }
}
