/* MapaSEO Pricing Page Styles */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap' );

/* MapaSEO Brand Colors */
:root {
    --mapaseo-primary: #2E7D32; /* Green */
    --mapaseo-secondary: #1976D2; /* Blue */
    --mapaseo-accent: #FFA726; /* Orange */
    --mapaseo-dark: #263238;
    --mapaseo-light: #F5F5F5;
    --mapaseo-success: #43A047;
    --mapaseo-gradient: linear-gradient(135deg, #2E7D32 0%, #1976D2 100%);
}

/* General Styles */
.mapaseo-pricing-page {
    font-family: 'Lato', sans-serif;
    color: var(--mapaseo-dark);
    line-height: 1.6;
}

.mapaseo-pricing-page h1, 
.mapaseo-pricing-page h2, 
.mapaseo-pricing-page h3, 
.mapaseo-pricing-page h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.pricing-hero {
    background: var(--mapaseo-gradient);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.toggle-label {
    font-size: 18px;
    font-weight: 600;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .slider {
    background-color: var(--mapaseo-accent);
}

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

.save-badge {
    background: var(--mapaseo-accent);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 5px;
}

/* Pricing Cards */
.pricing-table-section {
    padding: 80px 0;
    background: var(--mapaseo-light);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 25px !important; /* Much more noticeable increase */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important; /* Much stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important; /* Enhanced hover shadow */
}

.pricing-card.featured {
    border: 2px solid var(--mapaseo-accent);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--mapaseo-accent);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 14px;
}

.card-header {
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.plan-name {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--mapaseo-primary);
}

.plan-tagline {
    color: #666;
    margin-bottom: 20px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 24px;
    color: #666;
    margin-right: 5px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--mapaseo-dark);
}

.period {
    font-size: 18px;
    color: #666;
    margin-left: 5px;
}

.sixmonth-total {
    font-size: 14px;
    color: var(--mapaseo-success);
    font-weight: 600;
}

.card-features {
    padding: 30px;
}

.card-features h4 {
    font-size: 16px;
    color: var(--mapaseo-secondary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.card-features h4:first-child {
    margin-top: 0;
}

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

.card-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: var(--mapaseo-success);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.check-icon:before {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.card-footer {
    padding: 30px;
}

.cta-button {
    width: 100%;
    padding: 15px 30px;
    background: var(--mapaseo-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #236027;
}

.featured-cta {
    background: var(--mapaseo-accent);
}

.featured-cta:hover {
    background: #FF8F00;
}

/* Comparison Table */
.compare-plans {
    padding: 80px 0;
}

.compare-plans h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--mapaseo-dark);
}

.comparison-table {
    overflow-x: auto;
    border-radius: 20px !important; /* Added rounded corners */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important; /* Added stronger shadow */
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px !important;
    overflow: hidden;
}

.comparison-table th {
    background: var(--mapaseo-gradient);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table th.featured {
    background: var(--mapaseo-accent);
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table td.featured {
    background: #FFF8E1;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Payment Methods */
.payment-methods {
    padding: 60px 0;
    background: var(--mapaseo-light);
    text-align: center;
}

.payment-methods h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--mapaseo-dark);
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--mapaseo-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 25px !important; /* Much more noticeable increase */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important; /* Much stronger shadow */
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 48px;
    color: var(--mapaseo-primary);
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--mapaseo-dark);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--mapaseo-light);
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--mapaseo-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 25px !important; /* Much more noticeable increase */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important; /* Much stronger shadow */
}

.stars {
    color: var(--mapaseo-accent);
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.author {
    display: flex;
    flex-direction: column;
}

.author strong {
    color: var(--mapaseo-dark);
    margin-bottom: 5px;
}

.author span {
    color: #666;
    font-size: 14px;
}

/* =================================== */
/*          NEW FAQ Section            */
/* =================================== */
.faq {
    padding: 80px 0;
    background: #FFFFFF; /* Changed to white as per design */
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--mapaseo-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between items */
}

.faq-item {
    background: #FFFFFF;
    border-radius: 20px !important; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05) !important; /* Subtle shadow */
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 16px; /* Adjusted font size */
    font-family: 'Lato', sans-serif; /* Consistent font */
    color: #333;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #E8E6FF; /* Light purple background for icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338CA; /* Dark purple for icon */
    font-weight: bold;
    font-size: 14px;
}

.faq-question-text {
    transition: font-weight 0.3s ease;
}

.faq-toggle-icon {
    color: #9CA3AF; /* Chevron color */
    transition: transform 0.3s ease;
    font-size: 20px; /* Ensure icon is visible */
}

.faq-answer {
    padding: 0 24px 0 64px; /* Align answer with question text */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.faq-answer p {
    color: #4B5563; /* Slightly lighter text for answer */
    line-height: 1.7;
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Active state for FAQ item */
.faq-item.active .faq-question-text {
    font-weight: bold; /* Make question text bold when open */
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Adjust as needed, should be larger than any possible answer height */
    padding-bottom: 24px;
    transition: max-height 0.4s ease-in, padding-bottom 0.4s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
    
    .faq-answer {
        padding: 0 24px; /* Adjust padding for mobile */
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 24px;
    }
}

/* Icons (using CSS for simple icons) */
.icon-expertise::before {
    content: "🎯";
}

.icon-results::before {
    content: "📊";
}

.icon-support::before {
    content: "💬";
}

.icon-flexible::before {
    content: "🔄";
}

/* Loading State */
.cta-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.cta-button.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}


/*****************************************/
/* Appointment Section - Enhanced Design */
/*****************************************/

.appointment-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    position: relative;
    overflow: hidden;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e0e0e0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.appointment-image {
    text-align: center;
    position: relative;
}

.appointment-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--mapaseo-gradient);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.appointment-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
    transition: transform 0.3s ease;
}

.appointment-image img:hover {
    transform: scale(1.05);
}

.appointment-text {
    padding: 20px 0;
}

.appointment-text h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--mapaseo-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    background: var(--mapaseo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.appointment-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--mapaseo-accent);
    border-radius: 2px;
}

.appointment-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(8px);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background: var(--mapaseo-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.benefit-item span {
    font-size: 16px;
    color: var(--mapaseo-dark);
    font-weight: 500;
}
/*****************************************/
/* Enhanced CTA Button                    */
/*****************************************/
.appointment-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: var(--mapaseo-gradient);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px; /* Huge radius as requested */
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid transparent;
    min-width: 280px; /* Ensure good button width */
}

.appointment-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.appointment-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.5);
    border-color: var(--mapaseo-accent);
}

.appointment-cta-btn:hover::before {
    left: 100%;
}

.appointment-cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .appointment-text h2 {
        font-size: 36px;
    }
    
    .appointment-cta-btn {
        min-width: 250px;
        padding: 18px 35px;
    }
}

@media (max-width: 768px) {
    .appointment-section {
        padding: 80px 0;
    }
    
    .appointment-text h2 {
        font-size: 32px;
    }
    
    .appointment-subtitle {
        font-size: 16px;
    }
    
    .appointment-cta-btn {
        min-width: 100%;
        padding: 16px 30px;
        font-size: 16px;
    }
}