/* TS2C Elf University — Tickets */

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e0e2e6;
  --text: #1a1c1e;
  --muted: #2f3032;
  --accent: #a11d21;
  --accent-hover: #b82e32;
  --radius: 10px;

  --green-deep: #0f2a1a;
  --green: #14532d;
  --green-title: #1b6b1f;
  --gold: #c9b458;
  --gold-soft: #e8dca8;
  --cream: #f1e8d4;
  --parchment: #e9dfc8;
  --parchment-dark: #d8cba9;
  --ink: #1d1d1b;
  --red: #a4161a;
  --red-deep: #7a0f12;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }


html {
  font-size: clamp(15px, 0.9rem + 0.4vw, 18px);
}

body {
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--green-deep);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Textures ---------- */

.tex-dark {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.35), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #1a3d26, #0c2216 70%);
  color: var(--cream);
}

.tex-parchment {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(120,90,40,.12), transparent 50%),
    repeating-linear-gradient(0deg, rgba(120,90,40,.035) 0 1px, transparent 1px 4px),
    var(--parchment);
  color: var(--ink);
}

.tex-stone {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px),
    #b9ad94;
  color: #111;
}

/* ---------- Form card ---------- */

.form-wrap {
  width: 100%;
  max-width: 34rem; 
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

h1 {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem);
  margin: 0 0 0.25rem;
}

.subtitle {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;  
  margin-bottom: 0.1rem;
  text-align: left;
}

/* ---------- Inputs ---------- */

select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;                         /* 16px+ prevents iOS zoom on focus */
  background: #fff;
  color: var(--text);
}

select { margin-bottom: 1.25rem; }

input[type="text"],
input[type="email"],
input[type="tel"] { margin-bottom: 1rem; }

select:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 29, 33, 0.2);
}

input:has(+ .field-help) { margin-bottom: 0.3rem; }

.field-help {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

/* ---------- Button ---------- */

button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Tickets ---------- */

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.ticket-name  { font-weight: 700; }
.ticket-desc  { color: var(--muted); font-size: 0.85rem; }
.ticket-price { font-size: 0.9rem; margin-top: 0.2rem; }

.ticket-row select {
  width: 4.5rem;
  flex-shrink: 0;
  margin: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin: 1.25rem 0;
}

/* ---------- Attendee fieldsets ---------- */

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.5rem;
  margin: 0 0 1.25rem;
}

legend {
  padding: 0 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}


select {
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.6;                     
  padding-right: 2.2rem;                /* room for the arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f3032' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.ticket-row select {
  padding-left: 0.6rem;
  padding-right: 1.8rem;
  background-position: right 0.55rem center;
}


/* Side-by-side fields (e.g. email + phone) */
.row {
  display: flex;
  gap: 0.75rem;
}
.row > div { flex: 1; min-width: 0; }

/* ---------- Narrow phones ---------- */

@media (max-width: 420px) {
  .ticket-row { flex-wrap: wrap; }
  .ticket-row select { width: 100%; margin-top: 0.5rem; }
  .row { flex-direction: column; gap: 0; }
}

/* ---------- Xtras  ---------- */

  .top-img {
    max-width: 100%;
    max-height: 15vh; 
    width: auto; 
    height: auto;
    display: block;
    margin: 0 auto 1rem;
  }


  .success-icon {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}


.order-details { 
  margin: 0 0 1rem;
   font-weight: 700; 
  font-family: var(--font-sans);
 }

.order-details p { 
  margin: 0; 
}