/* ===========================
   Radio Buttons
   =========================== */
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Hide the native radio, keep it accessible */
.form-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom visual circle */
.form-radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.form-radio label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form-radio input[type="radio"]:checked + label::before {
    background: #c8102e;       /* swap for your brand colour */
    border-color: #c8102e;
    box-shadow: inset 0 0 0 4px #fff;  /* creates the inner dot */
}

.form-radio input[type="radio"]:focus + label::before {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
}

/* ===========================
   Checkboxes
   =========================== */
.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}

.form-check label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;   /* prevents squishing in multi-line labels */
    border: 2px solid #aaa;
    border-radius: 3px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form-check input[type="checkbox"]:checked + label::before {
    background: #c8102e;
    border-color: #c8102e;
    /* Checkmark via SVG data URI — no icon font dependency */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.929L5.5 9.914 2.515 6.929 1.1 8.343l4.4 4.4 9.4-9.4z'/%3E%3C/svg%3E");
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: center;
}

.form-check input[type="checkbox"]:focus + label::before {
    outline: 2px solid #c8102e;
    outline-offset: 2px;
}