/* css/pricing.css */

/* --- General Section Styles --- */
.pricing-section,
.faq-section {
    text-align: center;
}

.pricing-section {
    padding-top: 0;
}

.pricing-section h1,
.faq-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.pricing-section .subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.faq-section {
    background-color: #fffaf2;
}

/* --- Currency Switcher --- */
.currency-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.currency-switcher-container label {
    font-weight: 500;
    color: #4B5563;
}

#currency-switcher {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    background-color: #ffffff;
    font-weight: 500;
    cursor: pointer;
}


/* --- Pricing Tabs --- */
.pricing-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pricing-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent;
}

.pricing-tab.active {
    color: #ad5207;
    font-weight: 700;
    border-bottom-color: #ad5207;
}

/* --- Pricing Carousel (Mobile/Tablet View) --- */
.grid-container-pricing {
    position: relative;
    overflow: hidden;
    margin-left: -1rem;
    margin-right: -1rem;
    display: flex;
    align-items: center;
}

.pricing-cards-slider {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-grow: 1;
}

.pricing-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    flex: 0 0 65%;
    max-width: 25rem;
    margin: 0 0.75rem;
    transform: scale(0.9);
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.pricing-card.active {
    transform: scale(1);
    opacity: 1;
    z-index: 20;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #ad5207;
    margin: 0.5rem 0;
}

.pricing-card .plan-details {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-card .features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.pricing-card .features-list li {
    margin-bottom: 1rem;
}

.pricing-card .btn-primary {
    width: 100%;
}

.pricing-card .trial-text {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Recommended Card Styles */
.pricing-card.recommended {
    background-color: #ad5207;
    color: white;
    z-index: 10;
}
.pricing-card.recommended.active {
    z-index: 30;
}
.recommended-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e88e07;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.pricing-card.recommended h3,
.pricing-card.recommended .price,
.pricing-card.recommended .plan-details,
.pricing-card.recommended .trial-text {
    color: white;
}
.pricing-card.recommended .list-check li::before {
    color: white;
}
.pricing-card.recommended .btn-primary {
    background-color: white;
    color: #ad5207;
}
.pricing-card.recommended .btn-primary:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}


/* --- Features Showcase Section --- */
.features-showcase-section { color: white; }
.features-showcase-section h3 { color: white; font-size: 1.25rem; margin-bottom: 0.75rem; }
.features-showcase-section p { opacity: 0.9; }
.grid-container-features { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }

/* --- New Styles for Features Showcase Sprites --- */
.feature-sprite-icon {
    background-image: url('../assets/images/css_sprites-pricing.webp');
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-size: 240px 240px; 
}

/* Icon positions scaled for the 120px container */
.icon-teachers { background-position: -120px 0; }
.icon-studies { background-position: 0 0; }
.icon-scheduling { background-position: 0 -120px; }

/* --- FAQ Section --- */
.grid-container-faq { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 1rem; 
    text-align: left; 
}
.faq-item { background-color: white; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); border: 1px solid #eee; }
.faq-question { width: 100%; padding: 1rem 1.5rem; text-align: left; background: none; border: none; cursor: pointer; font-size: 1.125rem; font-weight: 600; color: #ad5207; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question:hover { color: #e88e07; }
.faq-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; position: relative; transition: transform 0.3s ease; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background-color: currentColor; border-radius: 2px; transition: transform 0.3s ease; }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding: 0 1.5rem 1.5rem; margin: 0; line-height: 1.6; }

/* ====== RESPONSIVE STYLES ====== */

@media (min-width: 768px) {
    .pricing-section h1, .faq-section h2 { font-size: clamp(2.5rem, 5vw, 3rem); }
    .grid-container-features { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Desktop View (1024px and up) */
@media (min-width: 1024px) {
    .pricing-tabs-container {
        display: none;
    }
    .grid-container-pricing {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        padding: 3rem 0;
        gap: 2rem;
        margin-left: 0;
        margin-right: 0;
        margin-top: 2rem; /* Added gap for desktop */
    }
    .pricing-cards-slider {
        display: contents;
        transform: none !important;
    }
    .pricing-card {
        flex: 1 1 auto;
        max-width: none;
        margin: 0;
        transform: none;
        opacity: 1;
    }
    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    }
    .pricing-card.recommended {
        transform: scale(1.05);
    }
    .pricing-card.recommended:hover {
        transform: scale(1.05) translateY(-10px);
    }
}