/* BLS Certification popup content — two-choice cards (Upload card | Register for course).
   Rendered by the [bls_choice] shortcode inside the existing rc-student/popup block.
   Values mirror the approved mockup 1:1 (left-aligned, not centered). */

.bls-choice {
    max-width: 720px;
    margin: 0 auto;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #55524f;
    text-align: left;
}
.bls-choice * { box-sizing: border-box; }

/* Size the popup box to the mockup (720px + 34px 36px 28px padding, radius 6px)
   regardless of the popup engine — Essential Blocks (.eb-popup-content, dev) or
   rc-student/popup (.rcs-popup-content, prod). Scoped via :has() to popups that
   contain our content, so other popups are untouched. !important beats the engine's
   own injected width (Essential Blocks hardcodes ~650px). */
.eb-popup-content:has(.bls-choice),
.rcs-popup-content:has(.bls-choice) {
    box-sizing: border-box !important;
    width: 720px !important;
    max-width: calc(100vw - 40px) !important;
    padding: 34px 36px 28px !important;
    border-radius: 6px !important;
}
@media (max-width: 760px) {
    .eb-popup-content:has(.bls-choice),
    .rcs-popup-content:has(.bls-choice) {
        padding: 26px 20px 22px !important;
    }
}

/* Title + subtitle are authored as Heading/Paragraph blocks in the popup WP
   content (not in the shortcode); these classes style them to match the mockup. */
.bls-choice__title {
    margin: 0 0 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #002b54;
    text-align: left;
}
.bls-choice__subtitle {
    margin: 0 0 26px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #55524f;
    text-align: left;
}

.bls-choice__cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
}

.bls-choice__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f4f6f9;
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    padding: 22px 20px 20px;
}
.bls-choice__card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #171f34;
}
.bls-choice__card-text {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    color: #55524f;
}
.bls-choice__note {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6f6c69;
}
.bls-choice__note-ico { flex: none; margin-top: 2px; }

.bls-choice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bls-choice__btn--upload {   /* secondary — outline navy */
    background: #fff;
    color: #002b54;
    border-color: #002b54;
}
.bls-choice__btn--upload:hover { background: #002b54; color: #fff; }
.bls-choice__btn--register { /* primary — filled red */
    background: #c00000;
    color: #fff;
    border-color: #c00000;
}
.bls-choice__btn--register:hover { background: #9d0000; border-color: #9d0000; }
.bls-choice__btn:focus-visible { outline: 2px solid #002b54; outline-offset: 2px; }

/* OR divider — vertical line segments above/below the label, between the two cards */
.bls-choice__or {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 700;
}
.bls-choice__or::before,
.bls-choice__or::after {
    content: "";
    flex: 1;
    width: 1px;
    background: #dfe3ea;
}

.bls-choice__footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #dfe3ea;
    font-size: 13.5px;
    color: #7a7772;
}
.bls-choice__footer a { color: #002b54; text-decoration: underline; }

/* Stack on narrow screens: OR becomes a horizontal divider, buttons full width */
@media (max-width: 760px) {
    .bls-choice__title { font-size: 24px; }
    .bls-choice__cards { grid-template-columns: 1fr; }
    .bls-choice__or {
        flex-direction: row;
        padding: 12px 0;
    }
    .bls-choice__or::before,
    .bls-choice__or::after {
        width: auto;
        height: 1px;
    }
    .bls-choice__btn { width: 100%; }
}
