﻿
.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===========================
   Choice Card
   =========================== */

.choice-card {
    display: flex;
    align-items: center;
    min-width: 160px;
    min-height: 70px;
    padding: 0 18px;
    background: #fff;
    border: 2px solid #999;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    transition: background-color .15s, border-color .15s, box-shadow .15s, transform .10s;
}

    /* Hide the real radio button */

    .choice-card input[type=radio] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* Hover */

    .choice-card:hover {
        background: #F4F9FF;
        border-color: #0078D7;
        transform: translateY(-2px);
    }

    /* Selected */

    .choice-card:has(input:checked) {
        background: #DCEEFF;
        border: 3px solid #0067B8;
        color: #003B70;
        box-shadow: 0 3px 10px rgba(0,0,0,.16);
    }

    /* Keyboard */

    .choice-card:has(input:focus-visible) {
        outline: 3px solid #80BDFF;
        outline-offset: 3px;
    }

    /* Mouse click */

    .choice-card:active {
        transform: translateY(0);
    }

/* ===========================
   Internal Layout
   =========================== */

.choice-check,
.choice-spacer {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.choice-check {
    visibility: hidden;
    color: #0067B8;
    font-size: 22px;
    font-weight: bold;
}

.choice-card:has(input:checked) .choice-check {
    visibility: visible;
}

.choice-label {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    white-space: nowrap;
}
