.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Vertically center the login form */
    justify-content: center;
    padding-top: 100px; /* Adjust this value based on your actual header height + some extra space */
                       /* Example: 70px (header) + 30px (breathing room) = 100px */
    padding-bottom: 40px; /* Existing bottom padding */
    padding-left: 15px; /* Add some horizontal padding for smaller screens */
    padding-right: 15px;
    box-sizing: border-box; /* Ensure padding is included in width/height calculations */
    min-height: 100vh;
}

.pricing-page-container { /* Specific container for pricing page content */
    max-width: 1200px; /* Wider for more cards */
    margin: 20px auto;
    padding: 20px;
}

.pricing-page-container h1 {
    font-size: 2.5em;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-section {
    margin-bottom: 60px;
}

.pricing-section h2 {
    font-size: 2em;
    color: #3498db; /* Accent color for section titles */
    text-align: center;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 30px;
}

.pricing-table {
    display: flex;
    justify-content: center; /* Center cards if they don't fill the row */
    flex-wrap: wrap;
    gap: 25px; /* Space between cards */
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px 30px;
    width: 320px; /* Slightly wider cards */
    min-height: 480px; /* Ensure cards have a good base height */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For popular badge */
    overflow: hidden; /* For popular badge ribbon */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
    border-top: 5px solid #007bff; /* Highlight popular plan */
    /* Or use a ribbon as shown below */
}

.popular-badge {
    position: absolute;
    top: -1px; /* Adjust if border-top is used on .popular */
    right: -1px;
    background-color: #007bff; /* Primary color for badge */
    color: white;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 0 8px 0 8px; /* Stylish corner */
    /* For a ribbon effect:
    transform: rotate(45deg);
    top: 20px;
    right: -35px;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); */
}


.pricing-card h3 { /* Plan Name */
    font-size: 1.6em;
    color: #343a40;
    margin-top: 10px; /* Space if popular badge is present */
    margin-bottom: 15px;
}

.student-card h3 small {
    font-size: 0.6em;
    color: #555;
}

.pricing-card .offer-text {
    color: #dc3545; /* Red for offer */
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 2px;
    display: none;
}
.pricing-card .offer-subtext {
    font-size: 0.8em;
    color: #555;
    display: block; /* Puts it on a new line */
    margin-bottom: 10px;
}

.pricing-card .price-original {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 0px;
    display: none;
}

.strike-through { /* Class for original price */
    text-decoration: line-through;
    color: #adb5bd; /* Lighter grey for strikethrough */
}

.pricing-card .price-tag {
    font-size: 2.2em;
    font-weight: 600; /* Semi-bold */
    color: #28a745; /* Green for final price */
    margin-top: 5px;
    margin-bottom: 20px;
}
.pricing-card .price-tag.free {
    color: #007bff; /* Blue for free */
}

.pricing-card .price-duration {
    font-size: 0.5em; /* Smaller text for "/ 6 Months" */
    font-weight: normal;
    color: #555;
    display: block;
}

.features {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1; /* Allows feature list to take available space */
}

.features li {
    font-size: 0.95em;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start; /* Align icon with first line of text */
}

.feature-icon {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
    font-size: 1.1em;
    line-height: 1.4; /* Align with text better */
}

.btn-choose-plan {
    display: block; /* Make button take full width of its container */
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff; /* Primary button color */
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 500;
    margin-top: 20px; /* Ensure it's at the bottom */
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.pricing-card.teacher-card .btn-choose-plan {
    background-color: #17a2b8; /* Info blue for teacher plans */
}


.btn-choose-plan:hover {
    background-color: #0056b3; /* Darker on hover */
}
.pricing-card.teacher-card .btn-choose-plan:hover {
    background-color: #117a8b;
}

.btn-choose-plan:active {
    transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-card {
        width: calc(50% - 30px); /* Two cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .pricing-page-container h1 {
        font-size: 2em;
    }
    .pricing-section h2 {
        font-size: 1.6em;
    }
    .pricing-table {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center stacked cards */
    }
    .pricing-card {
        width: 90%; /* Wider cards when stacked */
        max-width: 350px; /* Max width for single cards */
        min-height: auto; /* Allow height to adjust */
        margin-bottom: 25px;
    }
}


/* --- NEW: Style for the pricing note --- */
.pricing-note {
    max-width: 800px;
    margin: 0 auto 40px auto; /* Margin below the note */
    padding: 12px 20px;
    background-color: #e6f2ff; /* A light, noticeable info-blue background */
    border: 1px solid #b8daff;
    border-left: 5px solid #007bff; /* Accent border */
    border-radius: 6px;
    text-align: center;
}

.pricing-note p {
    margin: 0;
    font-size: 0.95em;
    color: #004085; /* Darker blue text for readability */
}

.pricing-note p strong {
    font-weight: 600; /* Semi-bold for "Note:" */
}
/* ------------------------------------ */



/* --- NEW: Billing Cycle Toggle Switch --- */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.toggle-label {
    font-weight: 500;
    color: var(--qgen-text-secondary, #495057);
    transition: color 0.2s ease;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color, #2196F3);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Highlight the active label */
#billingToggle:not(:checked) ~ .toggle-label:first-of-type,
#billingToggle:checked ~ .toggle-label:last-of-type {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.payment-status-message {
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px;
    border-radius: 4px;
}
.payment-status-message.error {
    color: #721c24;
    background-color: #f8d7da;
}


/* --- Pricing Card Modifications --- */
/* This class is now on the span with the feature text */
/* .pricing-card .features .feature-text {
    
} */