/* =====================================================================
   Amicitia - bestelticket02.css
   Opmaak van bestelticket02.aspx in de huisstijl van AmicitiaMain.aspx
   (Titillium Web, zwart, goud #bc9d6c) met de opbouw van de moderne
   Ticket2-bestelpagina: kaarten, ticketvorm met perforatie, -/+ knoppen
   en een vaste afrekenbalk onderaan het scherm.

   Geen Bootstrap of jQuery. Alle klassen beginnen met "am-".
   De +/- knoppen en het afrekenen zijn gewone ASP.NET-postbacks binnen
   het UpdatePanel; deze css doet uitsluitend presentatie.
   ===================================================================== */

:root {
    --am-black: #111111;
    --am-dark: #1b1b1b;
    --am-panel: #232323;
    --am-veld: #161616;
    --am-gold: #bc9d6c;
    --am-gold-dark: #a6885a;
    --am-gold-licht: #cbae7e;
    --am-cream: #e6dccc;
    --am-white: #ffffff;
    --am-grey: #b5b5b5;
    --am-rand: rgba(188, 157, 108, 0.35);
    --am-rand-sterk: rgba(188, 157, 108, 0.6);
    --am-fout: #ff9b8f;
    --am-kolom: 680px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--am-black);
    color: var(--am-white);
    font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--am-gold); text-decoration: none; }
a:hover { color: var(--am-cream); }

/* ---------- Header (gelijk aan AmicitiaMain.aspx) ---------- */
.am-header {
    border-bottom: 1px solid var(--am-gold);
    background: var(--am-black);
}
.am-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.am-logo img {
    height: 64px;
    width: auto;
    display: block;
}
.am-header-link {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}
.am-header-link::before { content: "\2190\00a0"; }

/* ---------- Kolom ---------- */
.am-pagina {
    max-width: var(--am-kolom);
    margin: 0 auto;
    padding: 20px 20px 150px;   /* onderaan ruimte voor de vaste afrekenbalk */
}

/* ---------- Banner ---------- */
.am-banner { margin: 0 0 22px; }
.am-banner-img {
    display: block;
    max-width: 100%;
    max-height: 78vh;      /* staande posters worden niet schermvullend hoog */
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid var(--am-rand);
    background: #000;
}

/* ---------- Titel, chips, geruststelling ---------- */
.am-kop h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.am-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.am-chips:empty { display: none; }
.am-chip {
    display: inline-block;
    border: 1px solid var(--am-rand-sterk);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--am-cream);
    background: var(--am-dark);
}
.am-gerust {
    color: var(--am-grey);
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 18px;
}

/* ---------- Kaarten ---------- */
.am-kaart {
    background: var(--am-dark);
    border: 1px solid var(--am-rand);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 16px;
}

/* Introtekst komt als HTML uit events.mdb (vaak geplakt uit Outlook, met
   eigen kleuren/lettertypes en witte achtergronden). Die inline-stijlen
   worden hier geneutraliseerd zodat de tekst leesbaar blijft op donker. */
.am-intro { color: var(--am-cream); }
.am-intro [style] {
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.am-intro b, .am-intro strong { color: var(--am-white); font-weight: 600; }
.am-intro div { margin: 0 0 0.6em; }
.am-intro div:last-child { margin-bottom: 0; }
.am-intro p { margin: 0 0 0.9em; }
.am-intro p:last-child { margin-bottom: 0; }
.am-intro br:first-child { display: none; }
.am-intro img { max-width: 100%; height: auto; }
.am-intro ul, .am-intro ol { padding-left: 1.3em; }

/* ---------- Actiecode ---------- */
.am-link { font-weight: 600; }
.am-actie-invoer { margin-top: 12px; }
.am-actie-rij { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.am-veld-code { max-width: 220px; }
.am-actie-resultaat { display: block; margin-top: 8px; color: var(--am-cream); }
.am-knop-klein {
    background: var(--am-panel);
    color: var(--am-gold);
    border: 1px solid var(--am-gold);
    border-radius: 999px;
    padding: 9px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.am-knop-klein:hover { background: var(--am-gold); color: var(--am-black); }

/* ---------- Sectiekoppen ---------- */
.am-sectie {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--am-gold);
    margin: 30px 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.am-sectie::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--am-rand);
}
.am-sectie-sub {
    color: var(--am-grey);
    font-size: 15px;
    margin: 0 0 14px;
}

/* ---------- Ticketkaart met perforatie ---------- */
.am-ticket {
    background: var(--am-dark);
    border: 1px solid var(--am-rand);
    border-radius: 14px;
    margin: 0 0 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.am-ticket-boven {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 12px;
}
.am-ticket-info { min-width: 0; flex: 1 1 auto; }
.am-ticket-naam {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--am-white);
}
.am-ticket-sub {
    display: block;
    color: var(--am-grey);
    font-size: 15px;
    margin-top: 3px;
}
.am-ticket-sub:empty { display: none; }
.am-ticket-prijs {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 700;
    color: var(--am-gold);
    padding-top: 1px;
}
.am-ticket-perforatie {
    position: relative;
    border-top: 2px dashed var(--am-rand-sterk);
}
.am-ticket-perforatie::before,
.am-ticket-perforatie::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--am-black);
    border: 1px solid var(--am-rand);
}
.am-ticket-perforatie::before { left: -11px; }
.am-ticket-perforatie::after { right: -11px; }
.am-ticket-onder {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 18px 14px;
}
.am-uitverkocht {
    color: var(--am-fout);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

/* -/+ stapknoppen (ASP.NET-knoppen, dus <input type="submit">) */
.am-stap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.am-stap-label {
    color: var(--am-grey);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 4px;
}
.am-stap-knop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--am-gold);
    background: transparent;
    color: var(--am-gold);
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .12s ease, color .12s ease;
}
.am-stap-knop:hover,
.am-stap-knop:focus-visible {
    background: var(--am-gold);
    color: var(--am-black);
    outline: none;
}
.am-stap-waarde {
    min-width: 1.6em;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--am-white);
}

/* ---------- Totalen ---------- */
.am-totaal {
    background: var(--am-dark);
    border: 1.5px solid var(--am-gold);
    border-radius: 14px;
    padding: 12px 18px;
    margin: 18px 0 6px;
}
.am-totaal-rij {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    color: var(--am-cream);
}
.am-totaal-rij > span:last-child { white-space: nowrap; }
.am-totaal-eind {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--am-rand);
    font-size: 20px;
    font-weight: 700;
    color: var(--am-gold);
}

/* ---------- Formulier ---------- */
.am-formulier { padding-bottom: 6px; }
.am-veldgroep { margin: 0 0 16px; }
.am-label {
    display: block;
    font-weight: 600;
    color: var(--am-cream);
    margin: 0 0 6px;
}
.am-label-klein { font-size: 14px; color: var(--am-grey); font-weight: 600; }
.am-veld {
    display: block;
    width: 100%;
    background: var(--am-veld);
    color: var(--am-white);
    border: 1px solid var(--am-rand-sterk);
    border-radius: 10px;
    padding: 11px 13px;
    font: inherit;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.am-veld::placeholder { color: #7d7d7d; }
.am-veld:focus {
    outline: 2px solid var(--am-gold);
    outline-offset: 1px;
    border-color: var(--am-gold);
}
select.am-veld { padding-right: 32px; }
.am-veld-kort { max-width: 220px; }
.am-rij-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.am-rij-adres { margin-top: 10px; }
.am-rij-adres:empty { display: none; }
.am-rij-adres > div:only-child { grid-column: 1 / -1; }
.am-hulp {
    display: block;
    color: var(--am-grey);
    font-size: 14px;
    margin-top: 5px;
}

/* Validatiemeldingen (ASP.NET-validators; display wordt door het
   validatiescript zelf geschakeld, dus hier alleen kleur en maat) */
.am-fout {
    color: var(--am-fout) !important;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

/* Man/Vrouw als keuzepillen (RadioButtonList, RepeatLayout="Flow") */
.am-keuze { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.am-keuze input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.am-keuze label {
    display: inline-block;
    border: 1px solid var(--am-rand-sterk);
    border-radius: 999px;
    padding: 8px 20px;
    color: var(--am-cream);
    cursor: pointer;
    user-select: none;
    transition: background .12s ease, color .12s ease;
}
.am-keuze input[type="radio"]:checked + label {
    background: var(--am-gold);
    border-color: var(--am-gold);
    color: var(--am-black);
    font-weight: 600;
}
.am-keuze input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--am-gold);
    outline-offset: 2px;
}

/* ---------- Betaling ---------- */
.am-akkoord { display: flex; align-items: flex-start; gap: 10px; }
.am-akkoord input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 3px 0 0;
    accent-color: var(--am-gold);
    cursor: pointer;
}
.am-akkoord label { cursor: pointer; }
.am-betaling-tekst {
    color: var(--am-grey);
    font-size: 15px;
    margin: 12px 0 0;
}

/* ---------- Vaste afrekenbalk ---------- */
.am-balk {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(17, 17, 17, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--am-rand-sterk);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.am-balk-binnen {
    max-width: var(--am-kolom);
    margin: 0 auto;
    text-align: center;
}
.am-knop-afrekenen {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, var(--am-gold-licht) 0%, var(--am-gold) 100%);
    border: 1px solid var(--am-gold-dark);
    border-radius: 999px;
    color: var(--am-black);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    -webkit-appearance: none;
    appearance: none;
}
.am-knop-afrekenen:hover:enabled {
    background: linear-gradient(180deg, #d6bc8f 0%, #c4a677 100%);
}
.am-knop-afrekenen:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
/* Hint alleen zolang de knop uitgeschakeld is (akkoord nog niet aangevinkt) */
.am-balk-hint {
    display: none;
    color: var(--am-grey);
    font-size: 13px;
    margin-top: 7px;
}
.am-knop-afrekenen:disabled + .am-balk-hint { display: block; }
.am-bezig {
    margin-top: 8px;
    color: var(--am-cream);
    font-size: 14px;
}
.am-bezig img { height: 18px; width: auto; vertical-align: middle; margin-right: 6px; }

/* ---------- Voet ---------- */
.am-voet {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--am-rand);
    text-align: center;
    color: var(--am-grey);
    font-size: 14px;
    line-height: 1.7;
}
.am-voet strong { color: var(--am-white); font-weight: 600; }

/* ---------- Groot scherm: staande poster niet schermvullend ---------- */
@media (min-width: 900px) {
    .am-banner-img { max-height: 62vh; }
}

/* ---------- Mobiel ---------- */
@media (max-width: 520px) {
    .am-header-inner { padding: 14px 16px; }
    .am-logo img { height: 50px; }
    .am-header-link { font-size: 12px; letter-spacing: 1.5px; }
    .am-pagina { padding: 16px 16px 160px; }
    .am-kop h1 { font-size: 27px; }
    .am-kaart { padding: 16px; }
    .am-ticket-boven { padding: 14px 16px 10px; }
    .am-ticket-onder { padding: 10px 16px 12px; }
    .am-ticket-naam { font-size: 17px; }
    .am-ticket-prijs { font-size: 18px; }
    .am-rij-2 { grid-template-columns: 1fr; }
    .am-veld-kort { max-width: none; }
}
