/* Den offentlige side ligger inde i .normal-container som admin/kiosk-appen
   laaser med height:100vh + overflow:hidden (og html/body har overflow:hidden).
   Vi goer derfor siden til sit eget fastlaaste scroll-lag, saa indhold under
   skaermkanten kan scrolles uafhaengigt af de klippede foraeldre. */
.ps-public-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #eef1f4;
    padding: 24px 16px 48px;
    box-sizing: border-box;
}
.ps-public-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 460px;
}
.ps-lang-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 4px 6px;
    font-size: 15px;
    color: #2563a8;
    cursor: pointer;
}
.ps-lang-toggle span { text-decoration: underline; }
.ps-lang-toggle:hover { color: #1b4a80; }
.ps-flag {
    width: 26px;
    height: auto;
    border: 1px solid #d0d5da;
    border-radius: 2px;
    display: block;
    flex: 0 0 auto;
}
.ps-public-logo { display: block; max-width: 160px; height: auto; margin: 0 auto 20px; }
.ps-public-title { font-size: 24px; text-align: center; margin: 0 0 8px; color: #1f2b38; }
.ps-public-text { text-align: center; color: #555; margin: 0 0 20px; line-height: 1.45; }
.ps-public-label { display: block; font-weight: 600; margin: 14px 0 4px; color: #1f2b38; }
.ps-req { color: #d32f2f; }
.ps-public-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px; /* >=16px så iOS ikke zoomer ved fokus */
    border: 1px solid #c3ccd5;
    border-radius: 8px;
}
.ps-public-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}
.ps-public-consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.ps-public-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: #2563a8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.ps-public-btn:disabled { opacity: 0.6; cursor: default; }
.ps-public-error {
    background: #ffebee;
    color: #b71c1c;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ── Konkurrence-tilmelding (KonkurrenceTilmelding.razor + CompetitionSelectionPicker) ── */
.ps-public-card.ps-comp-card { max-width: 520px; }
.ps-comp-dates { text-align: center; color: #555; margin: 0 0 6px; }
.ps-comp-contact { text-align: center; color: #555; margin: 0 0 16px; font-size: 14px; }
.ps-comp-day { font-size: 17px; margin: 22px 0 8px; color: #1f2b38; }
.ps-comp-slot {
    border: 1px solid #c3ccd5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
}
.ps-comp-slot.ps-comp-disabled { opacity: 0.55; background: #f4f6f8; }
.ps-comp-slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ps-comp-free { color: #2e7d32; font-size: 14px; }
.ps-comp-badge {
    background: #ffebee;
    color: #b71c1c;
    border-radius: 10px;
    padding: 1px 10px;
    font-size: 13px;
    font-weight: 600;
}
.ps-comp-note { color: #8a5a00; font-size: 13px; margin-top: 4px; }
.ps-comp-options { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ps-comp-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.ps-comp-radio input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.ps-comp-disabled .ps-comp-radio { cursor: default; }
.ps-comp-class-row { margin-top: 10px; }
.ps-comp-class-row label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.ps-comp-class {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px; /* >=16px så iOS ikke zoomer ved fokus */
    border: 1px solid #c3ccd5;
    border-radius: 8px;
}
.ps-comp-summary {
    margin-top: 18px;
    padding: 10px 12px;
    background: #eef6ee;
    border-radius: 8px;
    font-size: 14px;
}
.ps-comp-summary ul { margin: 6px 0 0; padding-left: 18px; }
.ps-comp-receipt { margin: 0 0 16px; padding-left: 18px; }
.ps-comp-badge.ps-comp-badge-held { background: #e3f2fd; color: #0d47a1; margin-right: auto; }
.ps-comp-person { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
/* "Ret din tilmelding": færre valgt end ved tilmeldingen — kan ikke gemmes. */
.ps-comp-summary.ps-comp-summary-short { background: #fdecea; }
/* Valgt skydetid: grøn kasse så valget springer i øjnene; gul indtil klassen er valgt. */
.ps-comp-slot-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ps-comp-slot.ps-comp-chosen { background: #eef7ee; border: 2px solid #2e7d32; padding: 9px 11px; }
.ps-comp-slot.ps-comp-chosen.ps-comp-incomplete { background: #fff8e1; border-color: #f9a825; }
.ps-comp-badge.ps-comp-badge-chosen { background: #2e7d32; color: #fff; }
.ps-comp-incomplete .ps-comp-badge.ps-comp-badge-chosen { background: #f9a825; color: #3e2c00; }
.ps-comp-radio.ps-comp-radio-on { font-weight: 600; }
