:root {
  --primary: #ff4500;
  --primary-dark: #e63e00;
  --dark: #1a1a1a;
  --light-gray: #f4f4f4;
  --text: #333;
  --muted: #777;
  --seat-taken: #c8c8c8;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--body-font);
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--dark); padding: 12px 0; }
.site-header .logo { height: 48px; width: auto; display: block; }

h1, h2 { font-family: var(--header-font); color: var(--dark); }
h1 { font-size: 2rem; margin: 24px 0 4px; }
h2 { font-size: 1.2rem; margin-bottom: 12px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.event-info { margin-bottom: 24px; }

/* --- Messages --- */
.alert {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert p + p { margin-top: 6px; }
.alert-error   { background: #fdecea; border-color: #f5b5ae; color: #8a1c10; }
.alert-info    { background: #fff3cd; border-color: #f0d58a; }
.alert-success { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }

/* --- Order panel --- */
.order-panel {
  max-width: 520px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 48px;
}
.ticket-info { margin-bottom: 4px; }
.remaining { color: var(--primary-dark); font-weight: 700; }
.type-price { display: block; font-size: .85rem; color: var(--muted); }
.order-panel .quantity-row { padding: 6px 0; }
.event-description { max-width: 640px; margin-bottom: 24px; }
.sold-out {
  max-width: 520px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 48px;
  text-align: center;
}
.sold-out h2 { color: var(--primary); text-transform: uppercase; font-size: 1.6rem; }

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.order-form .quantity-row label { font-size: 1rem; }
.stepper { display: flex; align-items: stretch; }
.order-form .stepper .step {
  width: 44px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  background: var(--dark);
}
.order-form .stepper .step:hover { background: var(--primary); }
.stepper .step:first-child { border-radius: 4px 0 0 4px; }
.stepper .step:last-child  { border-radius: 0 4px 4px 0; }
.stepper input {
  width: 64px;
  font: 700 1.2rem var(--body-font);
  text-align: center;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;
  padding: 8px 4px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
}

/* --- Order form --- */
.order-form { display: grid; gap: 12px; margin-top: 8px; }
.order-form label { display: grid; gap: 4px; font-size: .9rem; }
.order-form input[type=text],
.order-form input[type=email],
.order-form textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
.order-form .checkbox { grid-template-columns: auto 1fr; align-items: start; gap: 8px; }
.order-form .checkbox input { margin-top: 4px; }
.order-form a { color: var(--primary-dark); }
.order-form button {
  font: 700 1rem var(--header-font);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
}
.order-form button:hover:not(:disabled) { background: var(--primary-dark); }
.order-form button:disabled { background: #bbb; cursor: not-allowed; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Confirmation page --- */
.confirmation { max-width: 640px; margin-bottom: 48px; }
.confirmation h2 { font-size: 1.4rem; }
.confirmation h3 { font-family: var(--header-font); margin: 24px 0 8px; }
.confirmation > p { margin-bottom: 16px; }
.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.details dt { color: var(--muted); }
.details dd { word-break: break-word; }
@media (max-width: 420px) {
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: 8px; }
}

a.button {
  display: inline-block;
  font: 700 1rem var(--header-font);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
a.button:hover { background: var(--primary-dark); }
