/**
 * Easy RTO Frontend Styles
 * @package EasyRTO
 * @version 2.0.0
 */

/* Course Enquiry Form Success Message */
.easy-rto-enquiry-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.easy-rto-enquiry-success strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Course Comparison Widget */
.easy-rto-compare-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 9999;
    max-width: 320px;
    display: none;
}

.easy-rto-compare-widget.active {
    display: block;
}

.easy-rto-compare-widget h4 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
}

.easy-rto-compare-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.easy-rto-compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
}

.easy-rto-compare-item:last-child {
    border-bottom: none;
}

.easy-rto-compare-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
}

.easy-rto-compare-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.easy-rto-compare-btn:hover {
    background: #1d4ed8;
}

/* Add to Compare Button */
.easy-rto-add-compare {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.easy-rto-add-compare:hover {
    background: #e2e8f0;
}

.easy-rto-add-compare.added {
    background: #dbeafe;
    color: #2563eb;
}

/* Loading Spinner */
.easy-rto-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: easy-rto-spin 0.8s linear infinite;
}

@keyframes easy-rto-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .easy-rto-compare-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
