/* Base container layout */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: system-ui, sans-serif;
}

/* Label layout and hover cursor */
.modern-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #1a1a1a;
}

/* 1. Hide the default, ugly browser radio button */
.modern-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 2. Style the modern outer circle */
.radio-design {
    width: 32px;         /* Increased from 24px */
    height: 32px;        /* Increased from 24px */
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
}

/* 3. Build the inner dot */
.radio-design::before {
    content: "";
    position: absolute;
    top: 6px;            /* Increased from 4px to keep it centered */
    left: 6px;           /* Increased from 4px to keep it centered */
    width: 16px;         /* Increased from 12px */
    height: 16px;        /* Increased from 12px */
    border-radius: 50%;
    background: #4f46e5;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 3rem;
}


/* 2. Style the modern outer circle 
.radio-design {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1; /* Soft gray border
border-radius: 50%;
margin-right: 12px;
position: relative;
transition: all 0.2s ease-in-out;
background-color: #ffffff;
}

/* 3. Build the inner dot (hidden by default using scale(0))
.radio-design::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4f46e5; /* Modern Indigo color
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect
}
*/

/* --- STATE STYLES --- */

/* Hover state: Darken the border and add a soft shadow glow */
.modern-radio:hover .radio-design {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15);
}

/* Checked state: Change border color and animate the inner dot to scale(1) */
.modern-radio input[type="radio"]:checked + .radio-design {
    border-color: #4f46e5;
}

.modern-radio input[type="radio"]:checked + .radio-design::before {
    transform: scale(1);
}

/* Focus state: Crucial for keyboard accessibility (tabs) */
.modern-radio input[type="radio"]:focus-visible + .radio-design {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.4);
    border-color: #4f46e5;
}
