/**
 * Checkout Page Styles
 */

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-form {
    animation: fadeIn 0.5s ease-out;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Checkbox and Radio custom styles */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Payment method selection hover effect */
input[type="radio"]:checked + span {
    color: var(--color-primary);
}

/* Sticky sidebar */
@media (min-width: 1024px) {
    .sticky {
        position: sticky;
        top: 6rem;
    }
}

/* Error state */
.border-red-500 {
    border-color: #ef4444 !important;
}

/* Success message */
.success-message {
    animation: fadeIn 0.3s ease-out;
}
