.radio-group-label {
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    align-self: stretch;
}

.label-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.help-container {
    position: relative;
    display: inline-block;
}

.radio-help-icon {
    width: 1.25rem;
    height: 1.25rem;
    aspect-ratio: 1/1;
    opacity: 0.4;
    cursor: help;
    transition: opacity 0.2s ease;
}

.radio-help-icon:hover {
    opacity: 0.8;
}

.help-popup {
    display: none;
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-80%);
    z-index: 1000;
    
    width: 16.0625rem;
    padding: 0.75rem;
    align-items: center;
    gap: 0.625rem;
    
    border-radius: 0.75rem;
    border: 1.5px solid #9F9F9F;
    background: #FFF;
    box-shadow: 0 59px 17px 0 rgba(0, 0, 0, 0.00), 0 38px 15px 0 rgba(0, 0, 0, 0.01), 0 21px 13px 0 rgba(0, 0, 0, 0.02), 0 9px 9px 0 rgba(0, 0, 0, 0.03), 0 2px 5px 0 rgba(0, 0, 0, 0.04);
}

.help-container:hover .help-popup {
    display: flex;
}

.help-text {
    color: var(--Negro, #121212);
    font-family: Outfit;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 0.75rem */
    letter-spacing: -0.015rem;
}

.radio-group {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.radio-label {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-text {   
    display: flex;
    padding: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    flex: 1 0 0;
    border-radius: 4.90563rem;
    background: #F5F5F5;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.radio-label input[type="radio"]:checked + .radio-text {
    background-color: var(--text-dark-color);
    color: white;
    border-color: var(--text-dark-color);
}

@media (hover: hover) and (pointer: fine) {
    .radio-label:hover .radio-text {
        background-color: #e5e7eb;
    }

    .radio-label:hover input[type="radio"]:checked + .radio-text {
        background-color: var(--text-dark-color);
        color: white;
        border-color: var(--text-dark-color);
    }
}


@media (max-width: 768px) {
    .form-label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .radio-text {
        padding: 10px 20px;
        font-size: 15px;
        min-width: 70px;
    }
}

/* Error state styles */
.form-group.has-error .radio-label {
    border-radius: 6.25rem;
    border: 1px solid #F00000;
    background: #F5F5F5;
    box-shadow: 0 0 0 2.5px rgba(240, 0, 0, 0.25);
}
