﻿
.inl-bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.inl-opacity-50 {
    opacity: .5;
}

.inl-opacity-75 {
    opacity: .75;
}

.list-group {
    width: auto;
    max-width: 600px;
    margin: 1rem auto;
}

/* Container for the radio button group */
.inl-list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.inl-form-check-input:checked + .form-checked-content {
    opacity: .5;
}

.inl-form-check-input-placeholder {
    pointer-events: none;
    border-style: dashed;
}

[contenteditable]:focus {
    outline: 0;
}

.inl-list-group-checkable {
    display: grid;
    gap: .5rem;
    border: 0;
}

    .inl-list-group-checkable .list-group-item {
        cursor: pointer;
        border-radius: .5rem;
    }

.inl-list-group-item-check {
    /*    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
    */

    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

    .inl-list-group-item-check:hover + .list-group-item {
        /*        background-color: var(--bs-light);*/
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .inl-list-group-item-check:checked + .list-group-item {
        color: #fff;
        background-color: #405d6c;
    }

    .inl-list-group-item-check[disabled] + .list-group-item,
    .inl-list-group-item-check:disabled + .list-group-item {
        pointer-events: none;
        filter: none;
        opacity: .5;
    }

    /* Hide default radio button */
    .inl-list-group-item-check input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Custom radio button */
.custom-radio {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.inl-radio-label {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    flex: 1;
    cursor: pointer;
    user-select: none;
}



/* Container for the radio button group *******|||||||||||||||*************/
/* Container for the radio button group */
.inl-list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Modified class for appealing full-width radio buttons - Grey Theme */
.inl-list-group-item-check {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

    /* Hover effect */
    .inl-list-group-item-check:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* Active/Selected state */
    .inl-list-group-item-check.selected,
    .inl-list-group-item-check input[type="radio"]:checked {
        background: #e5e7eb;
        border-color: #6b7280;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Hide default radio button */
    .inl-list-group-item-check input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Custom radio button - Grey Theme */
.custom-radio {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Hover state for custom radio */
.inl-list-group-item-check:hover .custom-radio {
    border-color: #9ca3af;
}

/* Selected state for custom radio */
.inl-list-group-item-check input[type="radio"]:checked + .custom-radio {
    border-color: #4b5563;
    background: #4b5563;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.15);
}

    .inl-list-group-item-check input[type="radio"]:checked + .custom-radio::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
    }

/* Label styling */
.radio-label {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

/* Selected label styling */
.inl-list-group-item-check input[type="radio"]:checked ~ .radio-label,
.inl-list-group-item-check input[type="radio"]:checked + .custom-radio + .radio-label {
    color: #111827;
    font-weight: 600;
}

/* Active click effect */
.inl-list-group-item-check:active {
    transform: scale(0.99);
}

/* Focus state for accessibility */
.inl-list-group-item-check input[type="radio"]:focus + .custom-radio {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
    border-color: #6b7280;
}

/* Optional: Add subtle border glow on focus within */
.inl-list-group-item-check:focus-within {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Disabled state */
.inl-list-group-item-check.disabled,
.inl-list-group-item-check input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

    .inl-list-group-item-check.disabled:hover {
        transform: none;
        box-shadow: none;
    }

/* Variant: Darker grey theme (alternative) */
.inl-list-group-item-check.dark-grey {
    background: #e5e7eb;
    border-color: #9ca3af;
}

    .inl-list-group-item-check.dark-grey .radio-label {
        color: #1f2937;
    }

    .inl-list-group-item-check.dark-grey:hover {
        background: #d1d5db;
        border-color: #6b7280;
    }

/* Variant: Light grey with shadow (alternative) */
.inl-list-group-item-check.shadow-grey {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .inl-list-group-item-check.shadow-grey:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #d1d5db;
    }

/* Divider between options (optional) */
.inl-list-group-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 4px 0;
}