/* selective_papers_gate.css - sign-up gate for /selective-entry-practice-papers.html */
.xl button.spp-card__thumb { border: 0; padding: 0; cursor: pointer; width: 100%; background: none; }
.spp-lock-ic { font-size: .9em; margin-right: 2px; }
.xl button.spp-btn { cursor: pointer; }

/* Unlocked panel */
.spp-unlocked__box {
    background: var(--spp-wash); border: 1px solid #cddbfb; border-radius: 16px;
    padding: 28px; max-width: 880px; margin: 0 auto;
}
.spp-unlocked .xl-eyebrow { color: #15803d; }
.spp-unlocked__sub { color: #475569; margin: 4px 0 18px; }
.spp-unlocked__list {
    list-style: none; padding: 0; margin: 0 0 18px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.xl .spp-unlocked__list a {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; height: 100%;
    background: #fff; border: 1px solid #dbe4f7; border-radius: 10px;
    color: var(--spp-navy); font-weight: 600; text-decoration: none; font-size: 15px;
}
.xl .spp-unlocked__list a:hover { border-color: var(--spp-blue); }
.spp-unlocked__list i { color: #dc2626; }
.spp-unlocked__zip { display: inline-flex; align-items: center; gap: 8px; }
.spp-soft {
    margin-top: 22px; padding-top: 18px; border-top: 1px dashed #b9cbf5;
    display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: #1e293b;
}

/* Modal */
.spp-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.spp-modal[hidden] { display: none; }
.spp-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.spp-modal__panel {
    position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
    max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 28px 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}
.spp-modal__close { position: absolute; top: 12px; right: 12px; border: 0; background: none; font-size: 20px; color: #64748b; width: 40px; height: 40px; cursor: pointer; }
.spp-modal__h { font-size: 24px; font-weight: 800; color: var(--spp-navy); margin: 0 32px 6px 0; }
.spp-modal__sub { color: #475569; margin-bottom: 18px; font-size: 15px; }
.spp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.spp-field--full { grid-column: 1 / -1; }
.spp-field label { display: block; font-weight: 600; font-size: 14px; color: #1e293b; margin-bottom: 4px; }
.spp-field input, .spp-field select {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; background: #fff;
}
.spp-field input:focus, .spp-field select:focus { outline: 2px solid var(--spp-blue); outline-offset: 0; border-color: var(--spp-blue); }
.spp-field .is-invalid { border-color: #dc2626; }
.spp-req { color: #dc2626; }
.spp-opt { color: #64748b; font-weight: 400; }
.spp-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 14px; color: #334155; }
.spp-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.spp-err { color: #dc2626; font-size: 13px; min-height: 0; }
.spp-err:empty { display: none; }
.spp-formerr { background: #fef2f2; color: #991b1b; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
#spp-submit { margin-top: 14px; }
.spp-privacy-line { font-size: 13px; color: #64748b; text-align: center; margin: 10px 0 0; }
.spp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
body.spp-modal-open { overflow: hidden; }
.spp-verify__sent { color: #334155; font-size: 15px; margin: 0 0 14px; overflow-wrap: anywhere; }
.spp-field input.spp-code { font-size: 26px; font-weight: 700; letter-spacing: 10px; text-align: center; }
.spp-verify__note { background: #f0fdf4; color: #166534; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.spp-verify__links { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 0; color: #94a3b8; }
.spp-linkbtn { border: 0; background: none; padding: 4px; color: var(--spp-blue); font-weight: 600; font-size: 14px; text-decoration: underline; cursor: pointer; }
.spp-linkbtn:disabled { color: #94a3b8; cursor: default; text-decoration: none; }

@media (max-width: 600px) {
    .spp-grid, .spp-unlocked__list { grid-template-columns: 1fr; }
    .spp-modal { padding: 0; align-items: flex-end; }
    .spp-modal__panel { border-radius: 16px 16px 0 0; max-height: 100vh; padding: 22px 18px 16px; }
    .spp-unlocked__box { padding: 20px 16px; }
    .spp-unlocked__zip { width: 100%; justify-content: center; }
}

/* Keep anchored sections clear of the sticky global navbar. */
#papers, #spp-unlocked { scroll-margin-top: 80px; }
.xl .spp-unlocked__list { margin: 0 0 18px; }
.xl .spp-unlocked__sub { margin: 4px 0 18px; }
