/* Loader Styling */
#duo-loader {
    display: none;
    /* Customize the loader appearance */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container for radio buttons */
.duo-radio-group {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center; /* Center the buttons horizontally */
    align-items: center;
    margin-top: 10px;
}

/* Hide the radio inputs */
.duo-radio-group input[type="radio"] {
    display: none;
}

/* Style the labels as pill-shaped buttons */
.duo-radio-label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 16px;
    user-select: none; /* Prevents text selection */
    color: #3498db;
}

/* Hover effect */
.duo-radio-label:hover {
    background-color: #f0f8ff;
}

/* Selected state */
.duo-radio-group input[type="radio"]:checked + .duo-radio-label {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Responsive Design */
@media (max-width: 600px) {
    .duo-radio-group {
        flex-direction: column; /* Stack radio buttons vertically on small screens */
        gap: 10px;
    }

    .duo-radio-label {
        width: 100%; /* Make labels full width on small screens */
        text-align: center; /* Center the text */
    }
}
