/*
  Ace Radio ticket booking - styling
  Matches ace.radio: black background, white text, dark panels, white/black
  monochrome accent (no colour accent - buttons and highlights are white on
  black, or black on white).
  Ace Radio's site uses the "Hellix" typeface. It's a licensed/paid font, so
  it isn't bundled here - if you have the Hellix font files/license, drop them
  into assets/fonts and add an @font-face block above the font stack below.
  Until then this falls back to a similar-weight system font.
*/

:root {
    --bg: #000000;
    --panel: #141414;
    --panel-alt: #1f1f1f;
    --border: #2a2a2a;
    --text: #ffffff;
    --muted: #a3a3a3;
    --accent: #ffffff;
    --accent-ink: #000000;
    --accent-dark: #d4d4d4;
    --danger: #e5484d;
    --radius: 10px;
    --font: 'Hellix', 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.site-header {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.logo {
    height: 56px;
    width: auto;
}

.card {
    background: var(--panel);
    border-radius: 16px;
    padding: 32px;
}

.event-intro {
    text-align: center;
    margin-bottom: 28px;
}

.event-intro h1 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
}

.event-meta {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.price-tag {
    display: inline-block;
    margin: 0;
    padding: 6px 16px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    color: var(--text);
}

/* ---- Structured event meta (date / time / location / description) ---- */

.event-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    text-align: left;
    margin: 0 0 4px;
}

.meta-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.meta-item .ph-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--muted);
}

.meta-item.meta-description {
    grid-column: 1 / -1;
}

.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
}

.meta-value {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 16px;
}

.field-row {
    display: flex;
    gap: 16px;
}

.field-row .field {
    flex: 1;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
}

.qty-field {
    max-width: 140px;
}

.hint {
    font-size: 13px;
    color: var(--muted);
    margin: -4px 0 16px;
}

.guest-card {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.guest-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text);
}

/* ---- Terms & conditions checkbox --------------------------------------- */

.terms-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
}

.terms-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.terms-field a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 0;
    margin-bottom: 8px;
}

.form-error {
    background: rgba(229, 72, 77, 0.12);
    border: 1px solid var(--danger);
    color: #ff8b8e;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.site-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.status-page .card {
    text-align: center;
}

.status-icon {
    margin-bottom: 12px;
    color: var(--text);
}

.status-icon .ph-icon {
    width: 56px;
    height: 56px;
}

.status-page .btn {
    margin-top: 8px;
}

/* ---- Ticket list on the success page ----------------------------------- */

.ticket-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    text-align: left;
}

.ticket-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--panel-alt);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.ticket-list .ticket-number {
    color: var(--muted);
}

.ticket-list .ticket-you {
    color: var(--muted);
    font-size: 12px;
}

/* ---- Events listing page ------------------------------------------- */

.page-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 24px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.event-card:hover {
    border-color: var(--accent);
}

.event-card h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.event-cta {
    display: inline-block;
    margin-top: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.event-description {
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0 0;
}

/* ---- Ticket tier picker --------------------------------------------- */

.tier-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

.tier-option:has(input:checked) {
    border-color: var(--accent);
}

.tier-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.tier-text {
    flex: 1;
}

.tier-name {
    display: block;
    font-weight: 600;
}

.tier-description {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.tier-price {
    font-weight: 600;
    white-space: nowrap;
}

.tier-stock {
    font-size: 12px;
    color: var(--muted);
    min-width: 60px;
    text-align: right;
    white-space: nowrap;
}

.tier-sold-out {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Icons (Phosphor, inline SVG) --------------------------------------- */

.ph-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .field-row {
        flex-direction: column;
        gap: 0;
    }
    .card {
        padding: 24px 18px;
    }
    .event-meta-grid {
        grid-template-columns: 1fr;
    }
}
