:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #2ecc71;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #f5f7fa;
    line-height: 1.6;
}

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

/* Header styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

/* Language selector */
.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 5px 10px;
    background-color: var(--light);
    color: var(--text);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: var(--dark);
    color: white;
}

/* Main content */
.main {
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 2rem;
}

.price-total {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

/* Form styles */
.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
}

.form-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.form-body {
    padding: 2rem;
}

.form-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 300px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    font-size: 1.2rem;
}

/* Service selection */
.services-container {
    margin-top: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.service-item {
    position: relative;
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-checkbox:checked + .service-label {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--secondary);
}

.service-checkbox:focus + .service-label {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.service-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.service-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.service-description {
    display: none;
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--dark);
    background-color: rgba(52, 152, 219, 0.05);
    border-top: 1px dashed var(--border);
    margin-top: 5px;
}

.service-checkbox:checked ~ .service-description {
    display: block;
}

/* Submit button */
.form-footer {
    padding: 1.5rem 2rem;
    background-color: #f9f9f9;
    text-align: right;
}

.btn-submit {
    background-color: var(--success);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.form-errors {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-body {
        padding: 1.5rem;
    }

    .form-group {
        flex: 1 1 100%;
    }
}

/* Accordion for sections */
.accordion {
    margin-bottom: 1rem;
}

.accordion-header {
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-content {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 1rem;
    display: none;
}

.accordion.active .accordion-header {
    background-color: var(--secondary);
    color: white;
    border-radius: 6px 6px 0 0;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion.active .accordion-content {
    display: block;
}

.btn-with-badge {
    position: relative;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    margin-top: 35px;
}

.inline-checkbox-text {
    margin-left: 8px;
}

.product-title {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.services-title {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.centered-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.form-group-full {
    flex: 1 1 100%;
}

.notice-card {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.notice-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #856404;
}

.notice-checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.notice-icon {
    margin-right: 5px;
    color: #ff6b6b;
}

.notice-text {
    font-size: 16px;
}

.notice-help {
    display: block;
    margin-top: 5px;
    color: #721c24;
}

.btn-amber {
    background-color: #f39c12;
    color: white;
    margin-right: 10px;
}

.btn-violet {
    background-color: #9b59b6;
    color: white;
    margin-right: 10px;
}

.product-section-divider {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--border);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-remove-product {
    margin-left: auto;
}

/* ========================
   AFSPRAAK INTEGRATION
   ======================== */
.appointment-selector-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    margin-bottom: 2rem;
}

.appointment-selector-container .form-header {
    background: #1976d2;
}

.appointment-selector-container .form-header h2 {
    color: white;
}

.appointment-selector-container .form-body {
    padding: 1.5rem;
}

.appointment-details {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border: 1px solid #e0e0e0;
}

.appointment-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointment-details i {
    color: #1976d2;
}

#afspraak-loading {
    text-align: center;
    padding: 1rem;
    color: #1976d2;
}

#afspraak-selector {
    font-size: 1rem;
}

#afspraak-search {
    border-color: #2196f3;
}

#afspraak-search:focus {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
    border-color: #1976d2;
}

.form-group-full {
    flex: 1 1 100%;
}
