/* Donation UI — built on the event page's own tokens (--event-*) so the
   donate section sits in the layout as if Tickify had shipped it. */

.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 575.98px) {
    .donation-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.amount-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 74px;
    padding: 14px 10px;
    background: var(--event-surface);
    border: 1.5px solid var(--event-border);
    border-radius: 13px;
    color: var(--event-text);
    cursor: pointer;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.amount-chip:hover {
    border-color: var(--event-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.amount-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-chip .chip-amount {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.amount-chip .chip-currency {
    color: var(--event-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.amount-chip.is-selected {
    background: var(--event-dark);
    border-color: var(--event-dark);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .18);
}

.amount-chip.is-selected .chip-currency {
    color: rgba(255, 255, 255, .72);
}

.amount-chip.is-selected::after {
    position: absolute;
    top: 8px;
    right: 10px;
    content: "\f00c";
    color: var(--theme-color, #a9dd36);
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

/* "Choose your amount" spans the full row */
.amount-chip.chip-custom {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 9px;
    min-height: 56px;
    border-style: dashed;
    font-size: 14px;
    font-weight: 700;
}

.custom-amount-panel {
    display: none;
    margin-top: 14px;
}

.custom-amount-panel.is-open {
    display: block;
}

.custom-amount-field {
    position: relative;
}

.custom-amount-field .currency-prefix {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--event-muted);
    font-size: 17px;
    font-weight: 700;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-amount-field input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 44px;
    background: var(--event-surface);
    border: 1.5px solid var(--event-border);
    border-radius: 13px;
    font-size: 19px;
    font-weight: 700;
}

.custom-amount-field input:focus {
    border-color: var(--event-dark);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
    outline: none;
}

/* ------------------------------------------------------------------ donor */

.donor-field {
    margin-bottom: 14px;
}

.donor-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--event-text);
    font-size: 12.5px;
    font-weight: 700;
}

.donor-field label .req {
    color: #d64545;
}

.donor-field input,
.donor-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--event-surface);
    border: 1.5px solid var(--event-border);
    border-radius: 11px;
    color: var(--event-text);
    font-size: 14px;
}

.donor-field input:focus,
.donor-field textarea:focus {
    border-color: var(--event-dark);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
    outline: none;
}

.donor-field .field-hint {
    display: block;
    margin-top: 5px;
    color: var(--event-muted);
    font-size: 11.5px;
}

/* ---------------------------------------------------------------- methods */

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 575.98px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}

.method-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: var(--event-surface);
    border: 1.5px solid var(--event-border);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.method-chip:hover {
    border-color: var(--event-dark);
}

.method-chip.is-selected {
    border-color: var(--event-dark);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
}

.method-chip.is-disabled {
    background: #fafafa;
    cursor: not-allowed;
    opacity: .55;
}

.method-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-chip img {
    width: 54px;
    height: 30px;
    object-fit: contain;
}

.method-chip .method-label {
    color: var(--event-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.method-chip .method-sub {
    display: block;
    color: var(--event-muted);
    font-size: 11px;
    font-weight: 500;
}

/* ---------------------------------------------------------------- summary */

.donation-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    margin-top: 22px;
    background: #f7f7f8;
    border: 1px solid var(--event-border);
    border-radius: 13px;
}

.donation-total .total-label {
    color: var(--event-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.donation-total .total-value {
    color: var(--event-text);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.donate-submit {
    min-width: 210px;
    min-height: 52px;
    padding: 13px 26px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
}

.donate-submit:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.donation-secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--event-muted);
    font-size: 12px;
}

.donation-alert {
    padding: 12px 15px;
    margin-bottom: 16px;
    background: #fdecec;
    border: 1px solid #f3b7b7;
    border-radius: 11px;
    color: #8c2020;
    font-size: 13px;
    font-weight: 600;
}

/* -------------------------------------------------------- result pages */

.result-card {
    max-width: 720px;
    margin: 40px auto;
    padding: 34px 30px;
    background: var(--event-surface);
    border: 1px solid var(--event-border);
    border-radius: var(--event-radius);
    box-shadow: var(--event-shadow);
    text-align: center;
}

.result-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 30px;
}

.result-icon.ok {
    background: #e8f7ec;
    color: #1f8a3b;
}

.result-icon.bad {
    background: #fdecec;
    color: #c0392b;
}

.result-icon.warn {
    background: #fff6e3;
    color: #b7791f;
}

.result-card h1 {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 800;
}

.result-card p {
    color: var(--event-muted);
    font-size: 14px;
}

.receipt-code-badge {
    display: inline-block;
    padding: 9px 18px;
    margin: 14px 0;
    background: #f4f4f5;
    border: 1px dashed var(--event-border);
    border-radius: 10px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
}

/* The organisers' thank-you note on the confirmation page -------------------
   `.result-card` centres everything and greys its paragraphs; this note is a
   letter, so it reads left-aligned in the body colour. */
.gratitude-note {
    margin: 26px 0 4px;
    padding: 24px 26px;
    background: #fbfbfc;
    border: 1px solid var(--event-border);
    border-left: 3px solid #a9dd36;
    border-radius: 0 var(--event-radius) var(--event-radius) 0;
}

.result-card .gratitude-note p {
    margin-bottom: 14px;
    color: var(--event-text);
    font-size: 14.5px;
    line-height: 1.75;
}

.result-card .gratitude-note p:last-child {
    margin-bottom: 0;
}

.gratitude-facts {
    margin: 18px 0;
    padding: 14px 18px;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--event-border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 2;
}

.gratitude-facts li span {
    margin-right: 8px;
}

.result-card .gratitude-closing {
    font-weight: 700;
}

/* Header "Buy Tickets" button ------------------------------------------------
   The theme fades every header link on hover -- `ul#top_menu li a:hover` sets
   `color:#fff; opacity:.7` -- which washes the whole button out, dark fill and
   all, instead of filling it cleanly. That rule carries an id, so a plain
   `.btn-outline-dark:hover` loses the specificity contest; the override has to
   name the id too. */
header.header_in ul#top_menu li a.btn {
    transition: background-color .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease;
}

header.header_in ul#top_menu li a.btn:hover,
header.header_in ul#top_menu li a.btn:focus-visible {
    background-color: var(--event-dark);
    border-color: var(--event-dark);
    color: #fff;
    opacity: 1;
}

/* Lift on hover only. Sharing this with :focus-visible would outrank
   Bootstrap's focus ring and leave keyboard users with a shadow that reads
   exactly like hover. */
header.header_in ul#top_menu li a.btn:hover {
    box-shadow: 0 6px 16px rgba(17, 24, 39, .18);
}

header.header_in ul#top_menu li a.btn:active {
    transform: translateY(1px);
}

/* --------------------------------------------------------------
   Simple site footer

   The Tickify CDN stylesheet styles the bare <footer> element, so every
   rule here is scoped to .site-footer and wins on specificity.
-------------------------------------------------------------- */

footer.site-footer {
    margin-top: 0;
    padding: 34px 0 26px;
    background: #111111;
    color: #ffffff;
}

.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 26px;
}

.site-footer-logo img {
    display: block;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.site-footer-nav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus {
    color: #ffffff;
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-social a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1;
    transition: color 0.15s ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus {
    color: #ffffff;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 26px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer-pgw {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-pgw img {
    display: block;
    /* The gateway marks are dark-on-transparent; lift them off the dark bar. */
    background: #ffffff;
    border-radius: 4px;
    padding: 3px 6px;
}

.site-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11.5px;
    text-align: right;
}

@media (max-width: 767.98px) {
    .site-footer-top,
    .site-footer-bottom {
        justify-content: flex-start;
    }

    .site-footer-legal {
        text-align: left;
    }
}
