:root {
  --color-bg: #f7f8fa;
  --color-card-bg: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-placeholder: #94a3b8;
  --color-border: #e2e8f0;
  --color-brand-blue: #1d8fe1;
  --color-brand-orange: #e8720c;
  --color-brand-orange-deep: #d2650a;
  --color-error: #dc2626;
  --color-success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 3px rgba(232, 114, 12, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--color-text-primary);
  background: linear-gradient(180deg, #fafbfc 0%, var(--color-bg) 100%);
}

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

.card {
  width: min(100%, 520px);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  animation: rise 260ms ease-out;
}

.card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.wordmark {
  display: block;
  width: 140px;
  max-width: 32vw;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand-blue);
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 32px);
  line-height: 1.1;
  font-weight: 700;
}

.intro {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field span {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-primary);
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-primary);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-placeholder);
}

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

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

select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--color-brand-orange);
  box-shadow: var(--shadow-focus);
  transform: translateY(-1px);
}

.primary-button {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-brand-orange);
  color: white;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.primary-button:hover {
  background: var(--color-brand-orange-deep);
  transform: translateY(-1px);
}

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

.feedback {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  animation: slideUpFade 200ms ease-out;
}

.error {
  color: var(--color-error);
}

.hidden {
  display: none !important;
}

.confirmation-panel {
  display: grid;
  gap: 16px;
  animation: slideUpFade 200ms ease-out;
}

.confirmation-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
  font-size: 24px;
  font-weight: 700;
}

.confirmation-eyebrow {
  margin: 0;
}

.confirmation-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.confirmation-copy {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.confirmation-details {
  margin: 0;
  display: grid;
  gap: 12px;
}

.confirmation-details div {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.confirmation-details dt {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.confirmation-details dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.secondary-button {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.secondary-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

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

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

@media (max-width: 640px) {
  .shell {
    padding: 20px 16px;
  }

  .card {
    padding: 24px;
  }

  .card-header,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wordmark {
    width: 110px;
  }

  textarea {
    min-height: 120px;
  }
}
