/* Enhanced Radio Button Styles */

/* Base radio button styling */
.form-check-input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    border: 2px solid #dee2e6;
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.form-check-input[type="radio"]:hover {
    border-color: #D4AF37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.1);
}

.form-check-input[type="radio"]:checked {
    background-color: #D4AF37;
    border-color: #D4AF37;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input[type="radio"]:focus {
    border-color: #D4AF37;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-check-input[type="radio"]:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Enhanced card-style radio buttons for addresses */
.form-check.enhanced-radio {
    position: relative;
    padding: 0;
    margin-bottom: 1rem;
}

.form-check.enhanced-radio .form-check-input {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 22px;
    height: 22px;
    margin: 0;
    z-index: 2;
}

.form-check.enhanced-radio .form-check-label {
    display: block;
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    margin: 0;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    min-height: 60px;
}

.form-check.enhanced-radio .form-check-label:hover {
    border-color: #D4AF37;
    background-color: #fffbf0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.form-check.enhanced-radio .form-check-input:checked ~ .form-check-label {
    border-color: #D4AF37;
    background-color: #fff8e1;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.15);
    border-width: 1px;
}

.form-check.enhanced-radio .form-check-input:checked {
    background-color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Payment method radio buttons */
.payment-method-radio-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.payment-method-radio-wrapper .form-check-input {
    width: 22px;
    height: 22px;
    margin-right: 0.75rem;
    margin-top: 0;
    flex-shrink: 0;
}

.payment-method-radio-wrapper .form-check-label {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 50px;
    margin: 0;
}

.payment-method-radio-wrapper:hover .form-check-label {
    border-color: #D4AF37;
    background-color: #fffbf0;
}

.payment-method-radio-wrapper .form-check-input:checked ~ .form-check-label {
    border-color: #D4AF37;
    background-color: #fff8e1;
    font-weight: 500;
    border-width: 1px;
}

.payment-method-radio-wrapper .form-check-input:checked {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Cart page address selection */
.card .form-check {
    margin-bottom: 1rem;
}

.card .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

.card .form-check-label {
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.card .form-check-label:hover {
    color: #D4AF37;
}

.card .form-check-input:checked ~ .form-check-label {
    color: #D4AF37;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .form-check-input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    .form-check.enhanced-radio .form-check-input {
        width: 20px;
        height: 20px;
        top: 1rem;
        left: 1rem;
    }

    .form-check.enhanced-radio .form-check-label {
        padding: 1rem 1rem 1rem 3rem;
        min-height: 50px;
    }
}

/* Animation for radio button selection */
@keyframes radioPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.form-check-input[type="radio"]:checked {
    animation: radioPulse 0.6s ease-out;
}

