.custom-radio-inline,
.custom-checkbox-inline {
    font-size: 14px;
    line-height: 1.42857143;
}

.custom-radio,
.custom-checkbox {
    font-size: 14px;
    line-height: 1.42857143;
}
.custom-radio-inline:last-child::after,
.custom-checkbox-inline:last-child::after
{
    display: block;
    height: 0;
    clear: both;
    content: "";
    visibility: hidden;
}

.custom-radio-inline .radio,
.custom-checkbox-inline .checkbox{
    float: left;
    margin-left: 10px;
}

.radio, .checkbox {
    padding-left: 20px;
    position: relative;
    display: block;
}
.radio input, .checkbox input {
    opacity: 0;
    position: absolute;
    z-index: 1;
    cursor: pointer;
    margin-left: -20px;
}
.radio input:checked + label::before, .checkbox input:checked + label::before {
    border-color: #0585cd;
}
.radio input:checked  + input[type="hidden"] + label::before, .checkbox input:checked + input[type="hidden"] + label::before {
    border-color: #0585cd;
}

.radio input:checked  + label::after, .checkbox input:checked + label::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 13px;
    height: 13px;
    left: 2px;
    top: 4px;
    margin-left: -20px;
    border: 1px solid #0585cd;
    border-radius: 50%;
    background-color: #0585cd;
}
.radio input:checked + input[type="hidden"] + label::after, .checkbox input:checked + input[type="hidden"] + label::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 13px;
    height: 13px;
    left: 2px;
    top: 4px;
    margin-left: -20px;
    border: 1px solid #0585cd;
    border-radius: 50%;
    background-color: #0585cd;
}
.radio label, .checkbox label {
    display: inline-block;
    position: relative;
    padding-left: 5px;
}
.radio label::before, .checkbox label::before {
    content: '';
    display: inline-block;
    position: absolute;
    width: 17px;
    height: 17px;
    left: 0;
    top: 2px;
    margin-left: -20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
}
.radio.disabled label, .checkbox.disabled label {
    color: #ccc;
}
.radio.disabled label::before, .checkbox.disabled label::before {
    opacity: .54;
    border-color: #ccc;
}
.checkbox input:checked + label::before {
    border-color: #0585cd;
    background-color: #0585cd;
}
.checkbox input:checked + input[type="hidden"] + label::before {
    border-color: #0585cd;
    background-color: #0585cd;
}

.checkbox input:checked  + label::after {
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 13px;
    color: #fff;
    top: 0;
    left: 1px;
    border-color: transparent;
    background-color: transparent;
}

.checkbox input:checked + input[type="hidden"] + label::after {
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 13px;
    color: #fff;
    top: 0;
    left: 1px;
    border-color: transparent;
    background-color: transparent;
}
.checkbox label::before {
    border-radius: 2px;
}



/* Agreement card */
.col-xs-12 .agreement-card,
.agreement-card {
    border: 1px solid #e6e8ec !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06) !important;
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.col-xs-12 .agreement-card:hover,
.agreement-card:hover {
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10) !important;
    border-color: #d9dfe7 !important;
}

.agreement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px !important;
}
.agreement-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agreement-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
}
.agreement-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #0b5fff !important;
    background: #e9f0ff !important;
    border: 1px solid #cfe0ff !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    display: inline-block;
}

.agreement-body {
    display: grid;
    gap: 8px;
}

.agreement-checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

/* Keep the native checkbox for accessibility but upscale it slightly */
.agreement-input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    opacity: 1 !important;
}

/* Optional: modern label */
.agreement-label {
    font-size: 13.5px !important;
    color: #1f2937 !important;
    line-height: 1.45 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
}

/* Link and footnote */
.agreement-link a {
    font-size: 12.5px !important;
    text-decoration: underline !important;
    color: #0b5fff !important;
}
.agreement-link a:hover { 
    text-decoration: none !important; 
}

.agreement-footnote {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.agreement-validation {
    margin: 0 !important;
    padding: 0 !important;
}

.agreement-validation .text-danger {
    font-size: 12.5px !important;
}

/* Focus ring for keyboard users */
.agreement-input:focus-visible + .agreement-label,
.agreement-input:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 3px !important;
    border-radius: 6px !important;
}
