/**
 * Shared radio option cards for training and in-house registration forms.
 * Keeps the radio circle vertically centered with label text on all screen sizes.
 */

#regForm .payment-options,
#regForm .ex-student-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 10px 0 5px 0;
}

#regForm .ex-student-options {
    flex-direction: row;
    flex-wrap: wrap;
}

#regForm .ex-student-options label:has(> input[type="radio"]) {
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
}

#regForm .individual-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background-color: #eef5ff;
    border: 1px dashed #7da6ff;
}

#regForm label:has(> input[type="radio"]) {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0 !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#regForm label:has(> input[type="radio"]:checked) {
    border-color: #1c244b;
    background: #f4f6fb;
    box-shadow: inset 0 0 0 1px #1c244b;
}

#regForm label:has(> input[type="radio"]:hover) {
    border-color: #adb5bd;
    background: #fafbfc;
}

#regForm label > input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #1c244b;
    cursor: pointer;
}

#regForm .individual-option .radio-text {
    display: block;
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

#regForm .individual-option .radio-text-line1,
#regForm .individual-option .radio-text-line2,
#regForm .individual-option .radio-text-line3 {
    display: inline;
}

#regForm .individual-option br {
    display: none !important;
}

@media (max-width: 768px) {
    #regForm .individual-option .radio-text-line1,
    #regForm .individual-option .radio-text-line2,
    #regForm .individual-option .radio-text-line3 {
        display: block;
    }

    #regForm .ex-student-options label:has(> input[type="radio"]) {
        flex: 1 1 100%;
    }
}
