:root {
  --bg: #f5ede1;
  --bg-accent: #efe4d3;
  --card: rgba(255, 255, 255, 0.88);
  --text: #22313f;
  --muted: #6c7a86;
  --line: rgba(129, 101, 69, 0.18);
  --primary: #ca6a18;
  --primary-deep: #a6520f;
  --shadow: 0 28px 70px rgba(65, 41, 17, 0.16);
  --radius-xl: 32px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(202, 106, 24, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 49, 63, 0.12), transparent 35%),
    linear-gradient(135deg, var(--bg), #f9f5ee 48%, var(--bg-accent));
}

body.modal-open {
  overflow: hidden;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: min(100%, 720px);
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
  animation: rise 420ms ease-out;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -55px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 106, 24, 0.22), transparent 68%);
}

.wordmark {
  display: block;
  width: min(230px, 55vw);
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--primary-deep);
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.98;
}

.intro {
  margin: 18px 0 28px;
  font-size: clamp(18px, 2.8vw, 24px);
  color: var(--muted);
}

.ticket-form,
.modal-form {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

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

.field span {
  font-weight: 700;
  font-size: 14px;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid rgba(77, 58, 38, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

select,
input {
  min-height: 56px;
}

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

select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: rgba(202, 106, 24, 0.9);
  box-shadow: 0 0 0 4px rgba(202, 106, 24, 0.12);
  transform: translateY(-1px);
}

.primary-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  padding: 16px 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
  min-width: 154px;
  box-shadow: 0 16px 30px rgba(165, 82, 15, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(165, 82, 15, 0.34);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.feedback {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.error {
  color: #b42318;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(25, 31, 36, 0.5);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 20;
  animation: fadeIn 180ms ease-out;
}

.hidden {
  display: none !important;
}

.modal-card {
  width: min(100%, 480px);
  background: #fffdf9;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.04;
}

.modal-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #22313f;
  color: white;
  padding: 16px 22px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(34, 49, 63, 0.25);
  z-index: 30;
  animation: slideUp 220ms ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  .card,
  .modal-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .primary-button {
    width: 100%;
  }
}
