body {
    margin: 0 auto;
}

/* --- Pricing Sectie --- */
h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pricing-section {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.billing-toggle {
    display: inline-flex;
    background-color: #f0f0f0;
    border-radius: 99px;
    padding: 5px;
    margin-bottom: 48px;
}

.billing-toggle .toggle-btn {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    font-family: inherit;
}

.billing-toggle .toggle-btn span {
    color: #007aff;
    font-weight: 600;
    margin-left: 6px;
}

.billing-toggle .toggle-btn.active {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.pricing-card.recommended {
    border-color: #007aff;
    border-width: 2px;
    position: relative;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 600;
}

.billing-period {
    color: #1a1a1a;
    display: block;
}

.card-description {
    color: #555;
    margin-bottom: 24px;
    min-height: 50px; /* Houdt de kaarten uitgelijnd */
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1; /* Zorgt dat de knop onderaan blijft */
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.features-list li svg {
    color: #007aff;
    flex-shrink: 0; /* Voorkomt dat het icoon krimpt */
}

.btn.full-width {
    width: 100%;
    text-align: center;
}

.card-subtext {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

/* --- Uitklapbare Tabel --- */
.view-all-features {
    margin-top: 48px;
}

#toggle-features-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
#toggle-features-btn svg {
    transition: transform 0.3s ease;
}
#toggle-features-btn.expanded svg {
    transform: rotate(180deg);
}


.features-table-container {
    margin-top: 48px;
    transition: transform 0.5s ease, max-height 0.5s ease-out, opacity 0.5s ease;
    overflow: hidden;
    max-height: 1800px; /* Zorg dat dit hoog genoeg is voor de content */
    opacity: 1;
    transform: translateY(0);
}

.features-table-container.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-100px);
}

.table-wrapper {
    overflow-x: auto; /* Maakt horizontaal scrollen mogelijk op mobiel */
}

.features-table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.features-table-container th,
.features-table-container td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.features-table-container th {
    font-weight: 600;
}

.features-table-container th:first-child, .features-table-container td:first-child {
    width: 40%; /* Geef de eerste kolom een vaste breedte */
    text-align: left;
    font-weight: 500;
}

.features-table-container td.category-header {
    background-image: linear-gradient(to right, #f0f0f0 , white);
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-radius: 8px;
}



.features-table-container td {
    color: #555;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 32px 40px;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 200px); /* TOEGEVOEGD: Beperkt de hoogte */
    overflow-y: auto; /* TOEGEVOEGD: Maakt scrollen mogelijk */
}

.modal-overlay.is-active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-content h2 { margin-bottom: 8px; font-size: 24px; font-weight: 600; }
.modal-content p { margin-bottom: 24px; color: #555; }
.form-group { margin-bottom: 20px; }
.form-group label { font-weight: 500; margin-bottom: 8px; font-size: 15px !important; display: flex !important;}
.form-group input[type="url"], .form-group input[type="number"], .form-group input[type="file"], .form-group input[type="range"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

/* Specifieke styling voor de range-slider */
.form-group input[type="range"] {
    padding: 0;
}


.checkbox-group { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 1.2em; height: 1.2em; accent-color: #007aff; }

#plan-result { margin-top: 24px; }
.recommended-plan-card { margin-top: 16px; padding: 24px; border-radius: 12px; background-color: #f9f9f9; border: 1px solid #e5e7eb; }
.recommended-plan-card strong { font-size: 24px; font-weight: 600; color: #007aff; display: block; margin-bottom: 8px; }
.recommended-plan-card p { font-weight: 500; margin-bottom: 12px; }
.recommended-plan-card ul { list-style-position: inside; padding-left: 0; margin-bottom: 24px; color: #555; }
.recommended-plan-card ul li { margin-bottom: 8px; }
#go-to-plan-btn { width: 100%; }

/* --- Tablet & Kleiner (max-width: 992px) --- */
@media screen and (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Alles onder elkaar */
        max-width: 500px;
        margin: 0 auto;
        padding: 0 20px; /* NIEUW: Zorgt voor marge aan de zijkanten */
        gap: 24px;
    }

    .pricing-card {
        padding: 24px;
    }

    /* AANGEPAST: Order verwijderd zodat Starter -> Pro -> Business volgorde behouden blijft */
    .pricing-card.recommended {
        order: 0; 
        margin-bottom: 0;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
    }

    /* NIEUW: Verberg de grote tabel op mobiel */
    .features-table-container {
        display: none !important;
    }
    
    /* NIEUW: Toon de mobiele selector container */
    #mobile-features-container {
        display: block !important;
    }
}

/* --- Mobiel (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    .pricing-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    h2 {
        font-size: 2rem; /* Kleinere titel */
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 16px;
    }

    .billing-toggle {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
    }

    .billing-toggle .toggle-btn {
        width: 100%;
        margin: 2px 0;
        border-radius: 12px;
    }

    .price-amount {
        font-size: 40px;
    }

    .modal-content {
        padding: 24px;
    }

    .modal-content h2 {
        font-size: 20px;
        padding-right: 24px; /* Ruimte voor kruisje */
    }

    /* Tabel aanpassingen voor kleine schermen */
    .features-table-container th:first-child, 
    .features-table-container td:first-child {
        min-width: 140px;
        font-size: 14px;
        padding: 12px;
    }
    
    .features-table-container th,
    .features-table-container td {
        padding: 12px;
        font-size: 14px;
    }
}

/* --- Mobiele Features Selector (Standaard verborgen op desktop) --- */
#mobile-features-container {
    display: none;
    margin-top: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.mobile-selector-wrapper {
    text-align: center;
    margin-bottom: 24px;
    background: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.mobile-selector-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

#mobile-plan-selector {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

.mobile-feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.mobile-feature-name {
    color: #555;
    font-weight: 500;
    padding-right: 12px;
}

.mobile-feature-value {
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    min-width: 40px;
}

/* Categorie headers in de mobiele lijst */
.mobile-feature-category {
    background-color: #f0f0f0;
    color: #1a1a1a;
    font-weight: 700;
    padding: 10px 12px;
    margin-top: 20px;
    margin-bottom: 8px;
    border-radius: 6px;
    text-align: left;
}