.kcc-page {
    max-width: 1000px;
    margin: 0 auto;
}

.kcc-page h2 {
    margin-top: 2.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.3em;
}

.kcc-hero-image img,
.kcc-steps-image img,
.kcc-why-image img,
.kcc-service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.kcc-hero-image {
    margin-bottom: 1em;
}

.kcc-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25em;
    margin-top: 1.5em;
}

@media (max-width: 900px) {
    .kcc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .kcc-services-grid {
        grid-template-columns: 1fr;
    }
}

.kcc-services-grid {
    align-items: stretch;
}

.kcc-service-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 1.5em 1.25em;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kcc-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.kcc-service-image {
    margin-bottom: 1em;
}

/* Reserve a fixed title area so the price (and everything below) lines up
   across all four cards, regardless of how many lines the title wraps to. */
.kcc-service-title {
    display: flex;
    align-items: flex-end;
    min-height: 3.6em;
    margin: 0 0 0.6em;
    font-size: 1.15em;
    line-height: 1.25;
}

.kcc-service-price {
    align-self: flex-start;
    margin: 0 0 1em;
    padding: 0.3em 0.85em;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-weight: bold;
    font-size: 0.95em;
    white-space: nowrap;
}

.kcc-service-description {
    margin: 0 0 1em;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kcc-service-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.4em 0 0;
    background: none;
    border: none;
    color: #2271b1;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.kcc-service-more:hover,
.kcc-service-more:focus {
    color: #135e96;
}

.kcc-included-label {
    font-weight: bold;
    margin: 0 0 0.4em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.kcc-included-list {
    margin: 0;
    padding-left: 1.2em;
}

.kcc-included-list li {
    margin-bottom: 0.3em;
}

/* Service "Lees meer" modal */
.kcc-service-modal {
    width: min(500px, 92vw);
    max-height: 85vh;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: auto;
}

.kcc-service-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.kcc-modal-inner {
    position: relative;
    padding: 1.75em;
}

.kcc-modal-close {
    position: absolute;
    top: 0.4em;
    right: 0.5em;
    width: 1.8em;
    height: 1.8em;
    padding: 0;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.kcc-modal-close:hover {
    color: #000;
}

.kcc-modal-title {
    margin: 0 1.5em 0.4em 0;
}

.kcc-modal-description {
    color: #333;
}

.kcc-modal-description p:first-child {
    margin-top: 0;
}

.kcc-steps-list {
    margin-top: 1em;
}

.kcc-steps-list li,
.kcc-important-list li {
    margin-bottom: 0.6em;
}

.kcc-why-content,
.kcc-kai-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: flex-start;
}

.kcc-why-image,
.kcc-kai-image {
    flex: 0 0 280px;
}

.kcc-why-text,
.kcc-kai-text {
    flex: 1 1 300px;
}

.kcc-contact p {
    margin: 0.4em 0;
}

.kcc-faq-list {
    margin-top: 1.5em;
}

.kcc-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75em 1em;
    margin-bottom: 0.6em;
}

.kcc-faq-item summary {
    cursor: pointer;
    font-weight: bold;
}

.kcc-faq-item[open] summary {
    margin-bottom: 0.5em;
}

.kcc-faq-answer p:first-child {
    margin-top: 0;
}

.kcc-faq-answer p:last-child {
    margin-bottom: 0;
}

.kcc-faq-answer ul,
.kcc-faq-answer ol {
    padding-left: 1.5em;
}

/* Werkbank status */
.kcc-status-list {
    list-style: none;
    margin: 1em 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75em;
}

.kcc-status-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1em;
    background: #fafafa;
}

.kcc-status-icon {
    font-size: 1.4em;
    line-height: 1;
}

.kcc-status-label {
    font-weight: bold;
    font-size: 0.95em;
}

.kcc-status-value {
    font-size: 1.05em;
}

.kcc-status-open .kcc-status-value {
    color: #1a7f37;
    font-weight: bold;
}

.kcc-status-closed .kcc-status-value {
    color: #b32d2e;
    font-weight: bold;
}

/* Treatment table */
.kcc-table-wrap {
    overflow-x: auto;
    margin-top: 1.5em;
}

.kcc-treatment-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.kcc-treatment-table th,
.kcc-treatment-table td {
    border: 1px solid #e0e0e0;
    padding: 0.6em 0.75em;
    text-align: left;
    vertical-align: top;
}

.kcc-treatment-table thead th {
    background: #f3f3f3;
}

.kcc-treatment-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.kcc-table-note {
    margin-top: 1.25em;
    border-left: 4px solid #e0a800;
    background: #fff8e5;
    padding: 0.75em 1.25em;
    border-radius: 0 6px 6px 0;
}

.kcc-table-note h3 {
    margin-top: 0;
}

@media (max-width: 600px) {
    .kcc-treatment-table {
        min-width: 0;
    }
    .kcc-treatment-table thead {
        display: none;
    }
    .kcc-treatment-table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
    }
    .kcc-treatment-table td {
        display: flex;
        justify-content: space-between;
        gap: 1em;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .kcc-treatment-table td:last-child {
        border-bottom: none;
    }
    .kcc-treatment-table td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 0 0 45%;
    }
}

/* Before / after sliders */
.kcc-sliders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1em;
    margin-top: 1.25em;
}

.kcc-slider-figure {
    margin: 0;
}

.kcc-slider {
    width: 100%;
}

.kcc-slider-images {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    line-height: 0;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.kcc-slider-before {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kcc-slider-after-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.kcc-slider-after {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.kcc-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 2;
}

.kcc-slider-handle::after {
    content: '⇄';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    color: #333;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
}

.kcc-slider-badge {
    position: absolute;
    top: 0.5em;
    font-size: 0.7em;
    line-height: 1;
    padding: 0.3em 0.55em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
    pointer-events: none;
}

.kcc-slider-badge-before {
    right: 0.5em;
}

.kcc-slider-badge-after {
    left: 0.5em;
}

/* The range sits on top of the image for keyboard control; pointer dragging
   is handled directly on the image by slider.js, so the input ignores the
   pointer to avoid intercepting drags. */
.kcc-slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.kcc-slider-range:focus-visible {
    opacity: 1;
    outline: 3px solid #2271b1;
    outline-offset: -3px;
}

.kcc-slider-label {
    margin-top: 0.4em;
    font-weight: bold;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.3;
}

/* Reviews */
.kcc-reviews-intro {
    margin-top: 0.5em;
}

.kcc-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1em;
    margin-top: 1.25em;
}

.kcc-review-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25em;
    background: #fff;
}

.kcc-review-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.kcc-review-text {
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

.kcc-review-name {
    font-weight: bold;
    margin-top: auto;
}

.kcc-review-name::before {
    content: '— ';
}

/* Contact form */
.kcc-contact-form {
    max-width: 560px;
    margin-top: 1em;
}

.kcc-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    margin-bottom: 1em;
}

.kcc-field label {
    font-weight: bold;
}

.kcc-field input,
.kcc-field select,
.kcc-field textarea {
    width: 100%;
    padding: 0.5em 0.6em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.kcc-required {
    color: #b32d2e;
}

.kcc-field-note,
.kcc-field-hint {
    font-size: 0.9em;
    color: #555;
}

.kcc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kcc-submit {
    display: inline-block;
    padding: 0.7em 1.6em;
    border: none;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.kcc-submit:hover {
    background: #333;
}

.kcc-form-notice {
    padding: 0.75em 1.25em;
    border-radius: 6px;
    margin-bottom: 1em;
}

.kcc-form-success {
    background: #e6f4ea;
    border-left: 4px solid #1a7f37;
}

.kcc-form-error {
    background: #fdecea;
    border-left: 4px solid #b32d2e;
}

.kcc-form-closed {
    background: #fff4e5;
    border-left: 4px solid #b26c00;
}
