/* public.css – student-facing PIN pages (phone first) */

body.public-body {
    margin: 0;
    background: #f4f5f9;
    color: #1f2430;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.public-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 28px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.public-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.public-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1a1060;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.public-school { font-size: 17px; font-weight: 700; color: #1a1060; line-height: 1.2; }
.public-sub    { font-size: 12px; color: #6b7280; }

.public-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.public-card h1 { font-size: 20px; margin: 0 0 6px; color: #1a1060; }
.public-lead    { font-size: 14px; color: #4b5563; line-height: 1.5; margin: 0 0 16px; }

.public-card .form-group { margin-bottom: 14px; }
.public-card .form-input { width: 100%; box-sizing: border-box; }
.public-card .btn-primary,
.public-card .btn-secondary { width: 100%; justify-content: center; box-sizing: border-box; text-align: center; }

.text-upper { text-transform: uppercase; }

.match-hint { font-size: 12px; margin-top: 4px; min-height: 16px; }
.match-hint.ok  { color: #15803d; }
.match-hint.bad { color: #b91c1c; }

.price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f0edff;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.price-tag strong { font-size: 20px; color: #1a1060; }

/* Honeypot: off screen for people, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Receipt */
.pin-box {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 26px;
    letter-spacing: 2px;
    text-align: center;
    background: #f0edff;
    color: #1a1060;
    padding: 18px 12px;
    border-radius: 10px;
    margin: 14px 0 12px;
    word-break: break-all;
}

.pin-actions { display: flex; gap: 10px; margin-bottom: 16px; }

.receipt-meta { font-size: 13px; color: #4b5563; line-height: 1.7; margin: 0 0 14px; }
.receipt-meta strong { color: #1f2430; }

.notice-list { margin: 0 0 16px; padding-left: 18px; font-size: 13px; color: #374151; line-height: 1.6; }

.public-footer {
    margin-top: auto;
    padding-top: 22px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
}
.public-footer a   { color: #1a1060; text-decoration: none; }
.public-footer a:hover { text-decoration: underline; }
.public-footer .sep { margin: 0 6px; color: #c7cad1; }

@media print {
    .public-header, .public-footer, .pin-actions, .flash { display: none; }
    body.public-body { background: #ffffff; }
    .public-card { box-shadow: none; }
}