/* Public ticket page (pages/tickets/competition-new.blade.php)
   Pool photo hero cut on the poster's diagonal; tickets as tear-off stubs; order summary stays in view */
@font-face { font-family: "Race Sport"; src: url("../../fonts/race_sport.ttf") format("truetype"); font-display: swap; }
.tkt {
  color-scheme: light;
  --red: #FE0000; --red-dark: #C90000; --ink: #0B1B2B; --muted: #566575;
  --line: #D5DEE6; --deck: #EEF4F8; --paper: #FFFFFF; --warn: #8A5200; --warn-bg: #FFF1D6;
  --display: "Race Sport", "Arial Black", sans-serif; --body: Inter, system-ui, sans-serif;
}
.tkt * { box-sizing: border-box; }
.tkt { min-height: 100vh; background: var(--deck); color: var(--ink); font: 400 16px/1.55 var(--body); }
.tkt h1, .tkt h2, .tkt h3 { color: inherit; }
.tkt [hidden] { display: none !important; }
.tkt a, .tkt a:hover { color: inherit; text-decoration: underline; }
.tkt-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.tkt :focus-visible { outline: 3px solid #0A6EBD; outline-offset: 2px; }

/* Hero */
.tkt-hero { position: relative; color: #fff; background: #063A5E; padding-bottom: 92px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%); }
.tkt-hero-photo { position: absolute; inset: 0; background: url("../../media/banners/ticket-page-hero.jpg") 5% 40% / max(100%, 2400px) auto; }
.tkt-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,28,48,.94) 0%, rgba(4,28,48,.8) 36%, rgba(4,28,48,.1) 70%); }
.tkt-hero .tkt-wrap { position: relative; }
.tkt-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; }
.tkt-topbar img { height: 84px; margin-left: -10px; width: auto; display: block; }
.tkt-topbar span { font-size: 14px; font-weight: 600; }
.tkt-hero h1 { font: 400 clamp(24px, 4.2vw, 50px)/1.14 var(--display); text-transform: uppercase; margin: 36px 0 0; text-wrap: balance; }
.tkt-hero p.tkt-lead { margin: 16px 0 0; font-size: 18px; }
.tkt-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 30px 0 0; padding: 0; list-style: none; }
.tkt-facts li { display: flex; gap: 12px; align-items: flex-start; }
.tkt-facts svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tkt-facts b { display: block; font-weight: 600; }
.tkt-facts small { font-size: 14px; color: #D8E6F0; }
.tkt-facts a { font-weight: 600; }

/* Page */
.tkt-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-block: 28px 72px; }
.tkt-page > * { min-width: 0; }
.tkt section + section { margin-top: 44px; }
.tkt h2 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.tkt-sub { margin: 0 0 18px; color: var(--muted); }

/* Ticket stubs */
.tkt-tickets { display: grid; gap: 16px; }
.tkt-ticket { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; background: var(--paper); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.tkt-ticket.tkt-on { border-color: var(--red); box-shadow: 0 8px 22px rgba(11,27,43,.1); }
.tkt-stub { position: relative; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 16px 8px; text-align: center; }
.tkt-ticket.tkt-on .tkt-stub { background: var(--red); }
.tkt-stub::after { content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at 5px 8px, var(--paper) 4.5px, transparent 5px) 0 0 / 10px 16px; }
.tkt-stub b { font: 400 25px/1 var(--display); }
.tkt-stub span { font-size: 13px; font-weight: 600; }
.tkt-info { padding: 20px 20px 20px 26px; align-self: center; }
.tkt-info h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.tkt-info p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tkt-price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.tkt-price b { font-size: 20px; }
.tkt-price span { color: var(--muted); font-size: 14px; }
.tkt-badge { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: var(--warn-bg); color: var(--warn); }
.tkt-badge.tkt-out { background: #FDE4E4; color: #A30000; }
.tkt-qty { display: flex; align-items: center; padding: 20px; }
.tkt-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tkt-stepper button { width: 46px; height: 46px; border: 0; background: var(--deck); color: var(--ink); font-size: 22px; cursor: pointer; }
.tkt-stepper button:hover:not(:disabled) { background: #DCE7EF; }
.tkt-stepper button:disabled { color: #A9B6C2; cursor: not-allowed; }
.tkt-stepper output { width: 46px; text-align: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.tkt-ticket.tkt-sold .tkt-stub { background: #8A98A6; }
.tkt-ticket.tkt-sold h3, .tkt-ticket.tkt-sold .tkt-price b { color: var(--muted); }
.tkt-empty { background: var(--paper); border: 1px dashed #A9BAC8; border-radius: 12px; padding: 28px; }

/* Form */
.tkt-note { background: #DDEDF8; border-radius: 8px; padding: 16px 18px; margin-bottom: 20px; font-size: 15px; }
.tkt-note b { display: block; }
.tkt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.tkt-fields label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.tkt-fields label i { color: var(--red-dark); font-style: normal; }
.tkt-fields input { width: 100%; height: 50px; border: 1px solid #B4C3CF; border-radius: 8px; padding: 0 14px; font: inherit; background: var(--paper); color: var(--ink); }
.tkt-fields small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.tkt-fields .tkt-err { color: #B00000; font-weight: 600; }
.tkt-fields .tkt-bad input { border: 2px solid #B00000; }

/* Terms */
.tkt-terms { columns: 2; column-gap: 36px; padding-left: 22px; margin: 0; font-size: 15px; }
.tkt-terms li { break-inside: avoid; margin-bottom: 10px; padding-left: 4px; }
.tkt-poster { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.tkt-poster-link { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.tkt-dialog { border: 0; padding: 0; border-radius: 10px; max-width: min(1100px, 94vw); max-height: 94vh; overflow: auto; background: #fff; }
.tkt-dialog::backdrop { background: rgba(4,28,48,.82); }
.tkt-dialog img { display: block; width: 100%; }
.tkt-dialog button { position: sticky; top: 10px; float: right; margin: 10px; padding: 10px 16px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 600 15px var(--body); cursor: pointer; }

/* Summary */
.tkt-summary { position: sticky; top: 24px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.tkt .tkt-summary h2 { font-size: 18px; margin: 0; padding: 18px 22px; background: var(--ink); color: #fff; }
.tkt-summary .tkt-in { padding: 20px 22px 24px; }
.tkt-lines { margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.tkt-lines li { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; font-size: 15px; }
.tkt-lines li span:last-child { white-space: nowrap; font-weight: 600; }
.tkt-lines .tkt-none { color: var(--muted); }
.tkt-lines .tkt-vat { color: var(--muted); border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.tkt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; font-weight: 700; }
.tkt-total b { font-size: 26px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tkt-agree { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: 15px; cursor: pointer; }
.tkt-agree input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--red-dark); }
.tkt-pay { width: 100%; min-height: 54px; border: 0; border-radius: 8px; background: var(--red-dark); color: #fff; font: 700 17px var(--body); cursor: pointer; }
.tkt-pay:hover:not(:disabled) { background: #A80000; }
.tkt-pay:disabled { background: #CBD5DD; color: #55636F; cursor: not-allowed; }
.tkt-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.5em; }

/* Phone bar */
.tkt-bar { display: none; }
@media (max-width: 920px) {
  .tkt-hero-photo { background-size: cover; }
  .tkt-page { grid-template-columns: minmax(0, 1fr); }
  .tkt-summary { position: static; }
  .tkt-bar { display: flex; position: sticky; bottom: 0; z-index: 5; justify-content: space-between; align-items: center; gap: 16px; background: var(--ink); color: #fff; padding: 12px 20px; }
  .tkt-bar b { font-size: 20px; display: block; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .tkt-bar small { font-size: 13px; color: #C9D8E4; }
  .tkt .tkt-bar a { background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 8px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .tkt-ticket { grid-template-columns: 84px minmax(0, 1fr); }
  .tkt-stub { grid-row: 1 / 3; }
  .tkt-stub b { font-size: 19px; }
  .tkt-info { padding: 16px 16px 8px 22px; }
  .tkt-qty { padding: 4px 16px 16px 22px; }
  .tkt-fields { grid-template-columns: minmax(0, 1fr); }
  .tkt-terms { columns: 1; }
  .tkt-topbar span { display: none; }
  .tkt-topbar img { height: 68px; }
  .tkt-hero h1 { margin-top: 16px; }
  .tkt-hero-photo { background-position: 46% 30%; }
  .tkt-hero-photo::after { background: rgba(4,28,48,.74); }
}
@media (prefers-reduced-motion: reduce) { .tkt * { transition: none !important; } }
