/*** Pricing ***/

/* --- Base Reset and Container Styling --- */
.pricing-container {
    padding: 40px 20px;
    text-align: center;
}

.pricing-header {
    color: #fa5754;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.pricing-subheader {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.current-plan-banner {
    margin-bottom: 20px;
}

/* --- Pricing Cards Layout (Flexbox) --- */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between cards */
    margin: 0 auto;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 10px;
}

.pricing-card {
    flex: 1 1 300px; /* Grow, shrink, and base width */
    max-width: 350px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    margin-right: 0; /* Removing margin-right to rely on gap */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Recommended Plan Highlight --- */
.pricing-card.recommended {
    border: 3px solid #fa5754; /* Accent color for the highlight */
    transform: scale(1.05); /* Make it slightly bigger */
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
}

.pricing-card.recommended:hover {
    transform: translateY(-10px) scale(1.05);
}

/* --- Card Content Styles --- */
.card-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.card-price {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.card-price .amount {
    font-size: 3em;
    font-weight: bold;
    color: #fa5754; /* Primary color */
    display: block;
    line-height: 1;
}

.card-description {
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

/* --- Features List --- */
.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.card-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.95em;
}

.card-features li:last-child {
    border-bottom: none;
}

/* Icons (Font Awesome required for these icons) */
.fas {
    margin-right: 10px;
}
.fa-check-circle {
    color: #28a745; /* Green for included features */
}
.fa-times-circle {
    color: #dc3545; /* Red for missing/excluded features */
}
.fa-times-circle.missing {
    opacity: 0.5; /* Dims the missing feature */
}

/* --- Button Styling --- */
.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #fa5754;
    color: white;
    border: 2px solid #fa5754;
}

.sub-price {
    color: #fa5754;
    font-weight: bold;
    font-size: 18px;
}

.btn-primary:hover {
    background-color: #d64644;
    border-color: #fa5754;
    transform: scale(1.02);
}

/* Highlight the button on the recommended plan */
.pricing-card.recommended .btn-primary {
    background-color: #28a745; /* Different color for emphasis */
    border-color: #28a745;
    font-weight: 800; /* Extra emphasis */
}

.pricing-card.recommended .btn-primary:hover {
    background-color: #1e7e34;
}

/* --- Responsiveness for smaller screens --- */
@media (max-width: 768px) {
    .pricing-container {
        padding: 20px 15px; /* Less padding on mobile */
    }

    .pricing-header {
        font-size: 2em; /* Slightly smaller header */
        margin-bottom: 5px;
    }

    .pricing-subheader {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Reduced gap for mobile */
    }

    .pricing-card {
        width: 100%; /* Full width within container constraints */
        max-width: 400px; /* But not too wide */
        margin-bottom: 0; /* Let gap handle spacing */
        padding: 25px; /* Slightly less padding */
    }

    .pricing-card.recommended {
        transform: none; /* Remove scale transform on mobile */
        border-width: 4px; /* Make border slightly thicker to stand out without scale */
        order: -1; /* Move recommended plan to top on mobile for visibility */
        margin-bottom: 10px; /* A bit extra space after recommended */
    }

    .pricing-card.recommended:hover {
        transform: translateY(-5px); /* Only lift slightly */
    }
}