/* HKED Platform Subscription Pricing Styles */

.pricing-container {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pricing-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Use full container width with 4 cards per row on desktop */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    max-width: 380px;
    width: 100%;
    position: relative;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #74b379;
    }

.pricing-card.popular {
    border-color: #49994f;
}

/* Badge for popular card */
.pricing-card.popular::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #49994f;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Active state */
.pricing-card.active {
    border-color: #28a745;
}

.pricing-card.active::before {
    content: "Active";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #49994f;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.plan-billing {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.plan-description {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
}

.features-list li::before {
    font-size: 1.1rem;
}

.cta-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .cta-button.primary {
        background: #49994f;
        color: white;
    }

        .cta-button.primary:hover {
            background: #1b5e20;
            color: white;
            text-decoration: none;
        }

.cta-button.secondary {
    background: #6c757d;
    color: white;
}

.cta-button.secondary:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.cta-button.contact {
    background: #28a745;
    color: white;
}

.cta-button.contact:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.active-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.account-notice {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.account-notice h4 {
    color: #004085;
    margin-bottom: 1rem;
}

.account-notice p {
    color: #004085;
    margin-bottom: 1rem;
}

.annual-billing-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.annual-billing-notice h6 {
    color: #1976d2;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.annual-billing-notice p {
    color: #0d47a1;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Responsive breakpoints to keep layout usable on smaller screens */
@media (max-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }
}