/* ── Layout ── */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-content {
    flex: 1 0 auto;
    padding-bottom: 20px;
}

/* ── Header ── */
.site-header {
    background: #1e3a5f;
    padding: 0 0 5px 0;
    margin-bottom: 16px;
    overflow: visible;
}
.site-header .header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.site-header img {
    max-height: 110px;
    width: auto;
    position: relative;
    bottom: -20px;
    display: block;
}
.site-header h1, .site-header p { color: #fff; margin: 0; }
.site-header p { opacity: 0.8; font-size: 0.9em; }
.site-header .header-text {
    padding-bottom: 12px;
    text-align: right;
}

/* ── Footer ── */
.site-footer {
    background: #1e3a5f;
    padding: 16px 0;
    margin-top: 20px;
}
.site-footer p {
    color: #fff;
    margin: 0;
    opacity: 0.85;
    font-size: 0.85em;
    line-height: 1.7;
}
.site-footer a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.85;
}
.site-footer a:hover { opacity: 1; }

/* ── Form wrap ── */
.form-wrap { max-width: 680px; margin: 0 auto; }

/* ── Index: contestant blocks ── */
.contestant-block { background: #f8f8f8; padding: 10px 14px; margin-bottom: 10px; border-radius: 4px; border: 1px solid #e0e0e0; }
#price-summary { font-size: 1.1em; }
.uk-margin { margin-top: 8px !important; }
.uk-fieldset { margin-bottom: 6px; }
.day-table td { padding: 3px 6px !important; }
.day-table .col-day  { width: 160px; }
.day-table .col-class { width: 200px; }
.section-heading { font-size: 1.5em; margin: 0 0 10px 0; padding-bottom: 4px; border-bottom: 1px solid #ddd; font-weight: normal; }
.contestant-heading { font-size: 1.2em; margin: 0; font-weight: normal; }
a.copy-contact-link {
    font-size: 0.78em;
    color: #888;
    text-decoration: none;
    cursor: pointer;
}
a.copy-contact-link:hover { color: #444; text-decoration: underline; }
.contestant-subtotal {
    font-size: 0.85em;
    color: #1e3a5f;
    text-align: right;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #ddd;
}
#terms-error { display: none; color: #f0506e; font-size: 0.85em; margin-top: 4px; }
#terms-modal .uk-modal-body { max-height: 80vh; overflow-y: auto; }
#terms-modal h3 { font-size: 1.1em; margin-top: 1.2em; margin-bottom: 0.3em; }
#terms-modal p, #terms-modal li { font-size: 0.9em; line-height: 1.6; }

/* ── Payment method group ── */
.payment-method-group { background: #f8f8f8; border: 1px solid #e0e0e0; border-radius: 4px; padding: 12px 16px; }
.payment-method-group label { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.95em; }
.payment-method-group label:not(:last-child) { border-bottom: 1px solid #eee; }
.payment-method-group input[type=radio] { margin: 0; }
.payment-method-desc { font-size: 0.8em; color: #666; margin-left: 4px; }

/* ── SI rental cost inline display ── */
.si-rental-cost { color: #1e3a5f; font-weight: bold; margin-left: 8px; }

/* ── Confirmation page ── */
.order-number-box { background: #f0f4f8; border: 2px solid #1e3a5f; border-radius: 4px; padding: 16px 20px; margin-top: 12px; }
.order-number-box .order-num { font-size: 1.6em; font-weight: bold; color: #1e3a5f; letter-spacing: 1px; }
.summary-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 16px 20px; margin-top: 16px; }
.summary-box h3 { margin: 0 0 10px; color: #1e3a5f; font-weight: normal; font-size: 1.1em; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.contestant-summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.contestant-summary:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contestant-name { font-size: 1em; margin: 0 0 2px; }
.day-line { font-size: 0.85em; color: #555; margin: 1px 0; }
.subtotal { font-size: 0.9em; color: #1e3a5f; margin-top: 4px; }
.total-line { border-top: 2px solid #1e3a5f; margin-top: 10px; padding-top: 10px; font-size: 1em; }

/* ── Thank-you page ── */
.payment-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 20px 24px; margin-top: 16px; }
.payment-box h3 { margin: 0 0 12px; color: #1e3a5f; font-size: 1.1em; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.payment-box table td { padding: 3px 16px 3px 0; font-size: 0.95em; }
.payment-box table td:first-child { color: #666; }

/* ── Club autocomplete ── */
.club-autocomplete-wrapper { position: relative; }
.club-dropdown {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.club-dropdown div {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
}
.club-dropdown div:hover, .club-dropdown div.active { background: #e8f0fe; }
