/* ── Hero carousel ── */
.custom-arrow {
    background-color: rgba(26, 26, 26, 0.75);
    padding: 10px;
    border-radius: 50%;
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-arrow:hover {
    opacity: 1;
    background-color: var(--rush-dark);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23E8FE04' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23E8FE04' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.arrow-left { left: 5%; }
.arrow-right { right: 5%; }

.hero-slogan-wrap {
    top: 12%;
    left: 0;
    right: 0;
    z-index: 3;
}

.slogan-text {
    opacity: 0;
    transform: translateY(20px);
    animation: sloganFadeInUp 1s ease 0.2s forwards;
}

@keyframes sloganFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Vehicle cards ── */
.vehicle-card-accent {
    height: 4px;
    background: var(--rush-yellow);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.vehicle-card-img-wrap {
    height: 180px;
    overflow: hidden;
}

.vehicle-card-img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.vehicle-card-body {
    min-height: 280px;
}

.vehicle-price-badge {
    background: var(--rush-yellow-muted);
    color: var(--rush-dark);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.vehicle-card .package-card:hover {
    border-color: var(--rush-yellow) !important;
    box-shadow: var(--shadow-sm);
}

/* ── Car list filters ── */
.vehicle-item {
    transition: opacity 0.2s ease;
}

.vehicle-item.hidden {
    display: none !important;
}

.form-check-input:checked {
    background-color: var(--rush-yellow);
    border-color: var(--rush-yellow);
}

.form-check-input:focus {
    border-color: var(--rush-yellow);
    box-shadow: 0 0 0 0.2rem var(--rush-yellow-subtle);
}

/* ── Home page sections ── */
.section-muted { background: var(--rush-bg); }
.section-surface { background: var(--rush-surface); }
.section-yellow-tint { background: var(--rush-yellow-muted); }

.how-it-works-decor {
    background: linear-gradient(135deg, var(--rush-bg) 60%, var(--rush-yellow-muted) 100%);
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.decor-circle--tl { top: -120px; left: -120px; }
.decor-circle--br { bottom: -60px; right: -60px; }

.map-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-card iframe {
    border: 0;
    min-width: 200px;
}

/* ── Google reviews carousel ── */
.reviews-carousel-container {
    overflow: hidden;
    position: relative;
    margin: var(--space-xl) 0;
}

.reviews-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: var(--space-lg);
}

.review-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--rush-border);
    min-height: 280px;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--rush-border);
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.review-reply {
    border-left: 3px solid var(--rush-yellow);
    margin-top: var(--space-md);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--rush-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--rush-yellow);
}

@media (max-width: 992px) {
    .review-card { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 768px) {
    .review-card { flex: 0 0 100%; }
    .reviews-carousel { gap: var(--space-md); }
}

/* ── Payment page ── */
.StripeElement {
    box-sizing: border-box;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-sm);
    background-color: var(--rush-surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.StripeElement--focus {
    border-color: var(--rush-yellow);
    box-shadow: 0 0 0 3px var(--rush-yellow-subtle);
}

.StripeElement--invalid {
    border-color: var(--rush-error);
}

.StripeElement--webkit-autofill {
    background-color: var(--rush-yellow-muted) !important;
}

#payment-message {
    display: none;
    color: var(--rush-error);
    margin-top: var(--space-sm);
}

#loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--rush-yellow);
    animation: spin 1s ease-in-out infinite;
    margin-left: 12px;
}

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

#payment-confirm-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background-color: var(--rush-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--rush-border);
    background-color: var(--rush-bg);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.modal-title {
    margin: 0;
    font-size: var(--text-xl);
}

.modal-body { padding: var(--space-lg); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md);
    border-top: 1px solid var(--rush-border);
    gap: var(--space-sm);
}

/* ── Checkout page ── */
.checkout-page {
    background: var(--rush-bg);
}

.checkout-main-card {
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.checkout-header {
    background: var(--rush-dark);
    color: var(--rush-surface);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 3px solid var(--rush-yellow);
}

.checkout-header h2 {
    font-size: var(--text-2xl);
    margin: 0;
    color: var(--rush-surface);
}

.checkout-header p {
    margin: var(--space-xs) 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
}

.checkout-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--rush-dark);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--rush-yellow-muted);
}

.checkout-section-box {
    border: 1.5px solid var(--rush-dark-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    background: var(--rush-bg);
}

.checkout-section-box .checkout-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--space-sm);
}

.checkout-section-box--insurance {
    border-color: var(--rush-border);
    background: var(--rush-surface);
    box-shadow: var(--shadow-sm);
}

.checkout-section-hint {
    margin-top: 0;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--rush-border);
}

.checkout-summary-box {
    background: var(--rush-yellow-muted);
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.checkout-total-amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--rush-dark);
    line-height: 1.1;
}

.checkout-detail-card {
    background: var(--rush-surface);
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-sm);
    height: 100%;
}

.checkout-detail-card .card-body {
    padding: var(--space-md);
}

.checkout-detail-card h6 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rush-gray);
    margin-bottom: var(--space-sm);
}

.checkout-vehicle-card {
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    background: var(--rush-surface);
}

.checkout-vehicle-card .card-body {
    padding: var(--space-lg);
}

.checkout-price-highlight {
    color: var(--rush-dark);
    font-weight: 700;
}

.checkout-fee-text {
    color: var(--rush-dark-secondary);
    font-size: var(--text-sm);
}

.checkout-sidebar {
    position: sticky;
    top: 88px;
}

.checkout-sidebar .checkout-summary-box {
    margin-bottom: var(--space-lg);
}

.checkout-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--rush-yellow-muted);
    color: var(--rush-dark);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: var(--space-md);
}

.package-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1.5px solid #c8c8c8 !important;
    border-radius: var(--radius-md) !important;
    background-color: #f2f2ec !important;
    box-shadow: none;
}

.package-card:last-child {
    margin-bottom: 0 !important;
}

.package-card:hover:not(.selected) {
    border-color: #999999 !important;
    background-color: #e8e8e0 !important;
}

.package-card.selected,
.package-card.border-warning {
    border: 2.5px solid #1a1a1a !important;
    background-color: #E8FE04 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.package-card .form-check-input {
    display: none;
}

/* Price tags — always dark text, never Bootstrap badge white */
.checkout-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    line-height: 1.3;
    color: var(--rush-dark) !important;
}

.checkout-tag--price {
    background: var(--rush-yellow);
    border: 1px solid rgba(26, 26, 26, 0.15);
}

.checkout-tag--excess {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--rush-dark-secondary);
    color: var(--rush-dark-secondary) !important;
}

.package-card.selected .checkout-tag--price {
    background: var(--rush-yellow);
    border-color: var(--rush-dark);
}

.package-card.selected .checkout-tag--excess {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--rush-dark);
    color: var(--rush-dark) !important;
}

.checkout-form .form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--rush-dark-secondary);
}

.checkout-form .form-text {
    font-size: var(--text-xs);
    color: var(--rush-gray);
}

#card-element {
    min-height: 44px;
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--rush-surface);
}

@media (max-width: 991.98px) {
    .checkout-sidebar {
        position: static;
        margin-bottom: var(--space-xl);
    }
}

/* ── Subscription plan cards ── */
.plan-card {
    background: var(--rush-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    border-color: var(--rush-yellow) !important;
    background: var(--rush-yellow-muted);
}

.plan-card.selected {
    border-color: var(--rush-yellow) !important;
    background: var(--rush-yellow-muted);
    box-shadow: 0 0 0 2px var(--rush-yellow-subtle);
}

.plan-card:focus-within {
    box-shadow: 0 0 0 2px var(--rush-yellow-subtle);
    background-color: var(--rush-bg);
}

.plan-badge--12 { background-color: var(--rush-success); }
.plan-badge--6 { background-color: var(--rush-dark-secondary); }
.plan-badge--3 { background-color: var(--rush-yellow); color: var(--rush-dark); }
.plan-badge--1 { background-color: var(--rush-gray); }

/* ── Subscription page ── */
.subscription-hero {
    background-color: var(--rush-bg);
}

.subscription-cta:hover {
    background-color: var(--rush-yellow-hover);
}

.subscription-check {
    color: var(--rush-success);
}

/* ── Utility ── */
.sr-only-form { display: none; }
.sticky-sidebar { top: 20px; z-index: 100; }
.social-icon-img { height: 22px; }
.option-icon-circle {
    width: 50px;
    height: 50px;
}
