/* 
==================================================
EPIC CAR RENTAL - MODERN PRICING PAGE 2025
Premium Subscription Sales Experience
==================================================
*/

:root {
    /* Theme Colors - Matching existing theme */
    --primary-red: #800000;
    --secondary-red: #600000;
    --accent-red: #CC0000;
    --light-red: #FF4D4D;
    
    /* Background Colors */
    --dark-bg: #1d1d1d;
    --darker-bg: #121212;
    --darkest-bg: #0a0a0a;
    --category-color: #1d1d1d;
    
    /* Text Colors */
    --text-primary: #E0E0E0;
    --text-secondary: #B0AEB0;
    --text-light: #cccccc;
    --text-muted: #999999;
    --white: #fff;
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #1d1d1d 0%, #121212 50%, #0a0a0a 100%);
    --gradient-red: linear-gradient(135deg, #800000 0%, #600000 50%, #800000 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-card-hover: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-button: linear-gradient(135deg, #800000 0%, #600000 50%, #800000 100%);
    --gradient-accent: linear-gradient(90deg, #800000 0%, #CC0000 50%, #800000 100%);
    --gradient-popular: linear-gradient(135deg, #CC0000 0%, #800000 50%, #600000 100%);
    
    /* Effects */
    --blur-backdrop: blur(20px);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-red: 0 8px 32px rgba(128, 0, 0, 0.4);
    --shadow-glow: 0 0 50px rgba(128, 0, 0, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Borders & Radius */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-red: rgba(128, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-large: 24px;
    --border-radius-xl: 32px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Pricing Section */
.modern-pricing-section {
    position: relative;
    background: var(--gradient-primary);
    padding: 140px 0 120px; /* Increased top padding to avoid header overlap */
    overflow: hidden;
    min-height: 100vh;
}

/* Animated Background Elements */
.pricing-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.pricing-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(204, 0, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(128, 0, 0, 0.05) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Section */
.modern-pricing-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 80px;
}

.pricing-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-glass);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    backdrop-filter: var(--blur-backdrop);
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--DMSans);
}

.pricing-subtitle::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gradient-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.modern-pricing-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: var(--DMSans);
    line-height: 1.2;
    background: linear-gradient(135deg, #E0E0E0 0%, #B0AEB0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--roboto);
}

/* Pricing Cards Container */
.modern-pricing-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

/* Individual Pricing Cards */
.modern-pricing-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-large);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: var(--blur-backdrop);
    overflow: hidden;
}

.modern-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.modern-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-red);
}

.modern-pricing-card:hover::before {
    transform: scaleX(1);
}

/* Popular Plan Styling */
.modern-pricing-card.popular {
    background: var(--gradient-card-hover);
    border: 2px solid var(--accent-red);
    box-shadow: var(--shadow-red);
    transform: scale(1.05);
}

/* Current Plan Styling */
.modern-pricing-card.current-plan {
    background: var(--gradient-success);
    border: 2px solid #28a745;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.4);
    transform: scale(1.02);
}

.modern-pricing-card.current-plan::before {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    transform: scaleX(1);
    height: 6px;
}

.modern-pricing-card.popular::before {
    background: var(--gradient-popular);
    transform: scaleX(1);
    height: 6px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-red);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--DMSans);
    box-shadow: var(--shadow-medium);
}

.current-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-success);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--DMSans);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.4);
}

/* Plan Header */
.plan-header {
    margin-bottom: 32px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: var(--DMSans);
}

.plan-price {
    position: relative;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--DMSans);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
    margin-right: 4px;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
    font-family: var(--roboto);
}

.plan-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: var(--roboto);
}

/* Features List */
.plan-features {
    margin: 40px 0;
    text-align: left;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-light);
    font-family: var(--roboto);
    transition: var(--transition);
}

.feature-item:hover {
    color: var(--text-primary);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-red);
    flex-shrink: 0;
}

.feature-icon.disabled {
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--white);
}

.feature-text {
    flex: 1;
    font-weight: 500;
}

.feature-item.disabled .feature-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* CTA Buttons */
.plan-cta {
    margin-top: 40px;
}

.modern-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-button);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--DMSans);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.modern-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.modern-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
    text-decoration: none;
}

.modern-cta-button:hover::before {
    left: 100%;
}

.popular .modern-cta-button {
    background: var(--gradient-popular);
    box-shadow: var(--shadow-red);
}

.modern-cta-button.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    box-shadow: none;
}

.modern-cta-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.modern-cta-button.disabled::before {
    display: none;
}

.current-plan .modern-cta-button {
    background: #6c757d;
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    pointer-events: none;
}

.current-plan .modern-cta-button:hover {
    transform: none;
    box-shadow: var(--shadow-medium);
}

/* Value Proposition Section */
.value-proposition {
    margin-top: 80px;
    text-align: center;
}

.value-proposition-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    font-family: var(--DMSans);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.value-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: var(--blur-backdrop);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-red);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-red);
}

.value-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: var(--DMSans);
}

.value-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--roboto);
}

/* Trust Indicators */
.trust-section {
    margin-top: 80px;
    text-align: center;
    padding: 60px 0;
    background: var(--gradient-glass);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-light);
    backdrop-filter: var(--blur-backdrop);
}

.trust-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-family: var(--DMSans);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.trust-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: var(--DMSans);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--roboto);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 24px;
    }
    
    .modern-pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .modern-pricing-section {
        padding: 120px 0 80px; /* Adjusted for mobile header */
    }
    
    .modern-pricing-header {
        margin-bottom: 60px;
    }
    
    .modern-pricing-title {
        font-size: 2.5rem;
    }
    
    .pricing-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .modern-pricing-card {
        padding: 32px 24px;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .value-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .modern-pricing-container {
        padding: 0 16px;
    }
    
    .modern-pricing-card {
        padding: 24px 20px;
    }
    
    .modern-pricing-title {
        font-size: 2rem;
    }
    
    .pricing-description {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-pricing-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.modern-pricing-card:nth-child(1) { animation-delay: 0.1s; }
.modern-pricing-card:nth-child(2) { animation-delay: 0.2s; }
.modern-pricing-card:nth-child(3) { animation-delay: 0.3s; }
.modern-pricing-card:nth-child(4) { animation-delay: 0.4s; }

/* Micro-interactions */
.feature-item {
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Focus states for accessibility */
.modern-cta-button:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .pricing-background,
    .modern-cta-button,
    .trust-section {
        display: none;
    }
    
    .modern-pricing-section {
        background: white;
        color: black;
    }
    
    .modern-pricing-card {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white;
    }
}
