/* Public booking pages — extends workspace.css (same palette and type) */
.app-public { background: var(--bg-cream); min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 112px 0 64px; }
.app-back { padding: 10px 20px; font-size: 0.9rem; }
.app-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.app-wide { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.page-title { margin-bottom: 8px; }
.page-lead { color: var(--text-body); margin-bottom: 28px; }

.card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.card h2 { font-size: 1.25rem; margin-bottom: 4px; letter-spacing: 0; }
.card .hint { color: #777; font-size: .9rem; margin-bottom: 18px; }

.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; line-height: 1.5; }
.alert-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F5C2BC; }
.alert-success { background: #E8F6EC; color: #176B2C; border: 1px solid #BDE5C7; }
.alert-info { background: #FFF0ED; color: #7A2A10; border: 1px solid #FFD3C6; }
.alert ul { margin: 6px 0 0 18px; }

.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: #888; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field input[type=password], .field select, .field textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid #dcdcdc; border-radius: 9px;
    font-size: 1rem; background: #fff; color: var(--text-dark); font-family: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 92, 38, .15); outline: none; }
.field .error-text { color: #B3261E; font-size: .85rem; margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.field label.check { display: flex; font-weight: 400; margin-bottom: 0; cursor: pointer; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkg { position: relative; display: block; min-width: 0; }
.pkg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pkg .pkg-body { display: flex !important; flex-direction: column; gap: 4px; box-sizing: border-box; width: 100%; height: 100%; border: 2px solid #e2e2e2; border-radius: 12px; padding: 16px; background: #fff; transition: border-color .2s, background .2s; }
.pkg input:checked + .pkg-body { border-color: var(--primary); background: var(--primary-light); }
.pkg input:focus-visible + .pkg-body { outline: 3px solid rgba(255, 92, 38, .4); outline-offset: 2px; }
.pkg .pkg-name { display: block; font-weight: 700; }
.pkg .pkg-price { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.pkg .pkg-sum { display: block; font-size: .85rem; line-height: 1.4; color: #666; }
.session-preview { background: var(--primary-light); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-top: 4px; }

.submit-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.submit-row .btn-primary { min-width: 220px; }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---- Registration form extras ---- */
.card h2 + .field, .card h2 + .grid-2 { margin-top: 16px; }
.privacy-note { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 0; margin-bottom: 20px; }
.privacy-note summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: .95rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy-note summary::-webkit-details-marker { display: none; }
.privacy-note summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--primary); font-weight: 500; }
.privacy-note[open] summary::after { content: '\2212'; }
.privacy-note summary:focus-visible { outline: 3px solid rgba(255, 92, 38, .4); outline-offset: -3px; border-radius: 14px; }
.privacy-note p { margin: 0; padding: 0 20px 12px; font-size: .92rem; line-height: 1.6; color: #555; }
.privacy-note p:last-child { padding-bottom: 18px; }

.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; }
.field label.choice { margin-bottom: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice span { display: block; box-sizing: border-box; border: 2px solid #e2e2e2; border-radius: 10px; padding: 10px 14px; font-size: .92rem; line-height: 1.3; background: #fff; transition: border-color .2s, background .2s; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-light); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid rgba(255, 92, 38, .4); outline-offset: 2px; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.decl { display: grid; gap: 14px; }
.decl.has-error { border: 1px solid #B3261E; border-radius: 10px; padding: 14px; background: #FFF8F7; }
.decl .error-text { color: #B3261E; font-size: .85rem; }

.info-box { background: var(--bg-cream, #FFF6F2); border: 1px solid #FFD9CC; border-radius: 10px; padding: 14px 16px; margin: 4px 0 20px; font-size: .9rem; color: #5a3a2e; }
.info-box ul { margin: 6px 0 0 18px; }
.info-box li { margin: 2px 0; line-height: 1.5; }
.field textarea, .field input[type=text] { font-family: inherit; }
[hidden] { display: none !important; }

.summary { width: 100%; border-collapse: collapse; }
.summary td { padding: 11px 4px; border-bottom: 1px solid #f0f0f0; font-size: .95rem; vertical-align: top; }
.summary td:first-child { color: #777; width: 36%; }
.summary td:last-child { font-weight: 600; }

.qr-box { text-align: center; padding: 8px 0 4px; }
.qr-box img { display: inline-block; width: 260px; height: 260px; border: 1px solid #eee; border-radius: 12px; image-rendering: pixelated; }
.qr-code-text { font-size: .8rem; letter-spacing: 1.5px; color: #777; margin-top: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.btn-row .btn-primary, .btn-row .btn-outline { padding: 13px 22px; }

.status-chip { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 700; }
.chip-pending { background: #FFF3CD; color: #7A5B00; }
.chip-approved { background: #E8F6EC; color: #176B2C; }
.chip-rejected, .chip-cancelled, .chip-notreceived { background: #FDECEA; color: #8A1C12; }

.hours-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hours-pick label { position: relative; display: block; }
.hours-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hours-pick span { display: block; text-align: center; border: 2px solid #e2e2e2; border-radius: 10px; padding: 14px 6px; font-weight: 700; background: #fff; }
.hours-pick small { display: block; font-weight: 500; color: #777; margin-top: 2px; }
.hours-pick input:checked + span { border-color: var(--primary); background: var(--primary-light); }

.app-footer { background: var(--bg-dark); color: #bbb; padding: 26px 0; font-size: .88rem; text-align: center; }
.app-footer p { color: #bbb; font-size: .88rem; margin: 3px 0; }
.app-footer a { color: #fff; }

@media (max-width: 720px) {
    .app-main { padding-top: 100px; }
    .pkg-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .choice-grid { flex-direction: column; }
    .card { padding: 20px; }
    .hours-pick { grid-template-columns: repeat(2, 1fr); }
    .submit-row .btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
