
/* =========================================
   VDL ONDERHOUDSBEDRIJF - PRIJSCHECK
   ========================================= */

.vdl-prijscheck {
    --vdl-primary: #12a493;
    --vdl-dark: #0d3e39;
    --vdl-background: #f7faf9;
    --vdl-light: #e5f4f1;
    --vdl-border: #d4e5e2;
    --vdl-white: #ffffff;

    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 22px;

    background: var(--vdl-background);
    color: var(--vdl-dark);

    border: 1px solid var(--vdl-border);
    border-radius: 12px;

    font-family: inherit;
}

.vdl-prijscheck,
.vdl-prijscheck * {
    box-sizing: border-box;
}


/* =========================================
   INTRODUCTIE
   ========================================= */

.vdl-prijscheck .vdl-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.vdl-prijscheck .vdl-company {
    font-size: 14px;
    font-weight: 400;
    color: var(--vdl-primary);
}

.vdl-prijscheck h2 {
    display: inline-block;

    margin: 0;
    padding: 8px 12px;

    background: var(--vdl-primary);
    color: var(--vdl-white);

    border-radius: 4px;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.vdl-prijscheck .vdl-intro p {
    margin: 0;

    color: var(--vdl-dark);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   SECTIES
   ========================================= */

.vdl-prijscheck .vdl-section {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.vdl-prijscheck h3 {
    display: flex;
    align-items: center;

    min-height: 40px;
    margin: 0;
    padding: 10px 12px;

    background: var(--vdl-light);
    color: var(--vdl-dark);

    border-radius: 4px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================
   GELIJKE KOLOMMEN
   ========================================= */

.vdl-prijscheck .vdl-fields {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;

    gap: 10px;
    width: 100%;
}

.vdl-prijscheck .vdl-fields > .vdl-section {
    height: 100%;
}

.vdl-prijscheck .vdl-fields > .vdl-section > .vdl-field {
    flex: 1;
}


/* =========================================
   LABELS
   ========================================= */

.vdl-prijscheck .vdl-field {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 5px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--vdl-dark);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.vdl-prijscheck .vdl-field > span {
    display: block;
}


/* =========================================
   GELIJKE INVOERVELDEN
   ========================================= */

.vdl-prijscheck input[type="number"] {
    display: block;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    flex-shrink: 0;

    margin: 0 !important;
    padding: 0 15px !important;

    background: var(--vdl-background);
    color: var(--vdl-dark);

    border: 1px solid var(--vdl-border);
    border-radius: 25px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;

    box-sizing: border-box !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.vdl-prijscheck input[type="number"]::placeholder {
    color: #788f8b;
    opacity: 1;
}

.vdl-prijscheck input[type="number"]:hover {
    border-color: var(--vdl-primary);
}

.vdl-prijscheck input[type="number"]:focus {
    outline: none;

    border-color: var(--vdl-primary);
    box-shadow: 0 0 0 2px rgba(18, 164, 147, 0.12);
}


/* =========================================
   BEREKENKNOP
   ========================================= */

.vdl-prijscheck .vdl-calculate {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    width: 100%;
    min-height: 46px;

    margin: 4px 0 0;
    padding: 12px 16px;

    background: var(--vdl-primary);
    color: var(--vdl-white);

    border: none;
    border-radius: 4px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.vdl-prijscheck .vdl-calculate:hover:not(:disabled) {
    background: var(--vdl-dark);
}

.vdl-prijscheck .vdl-calculate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vdl-prijscheck .vdl-calculate span {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.vdl-prijscheck .vdl-calculate:hover:not(:disabled) span {
    transform: translateX(4px);
}

.vdl-prijscheck .vdl-calculate:focus-visible {
    outline: 2px solid var(--vdl-dark);
    outline-offset: 3px;
}


/* =========================================
   PRIJSINDICATIE
   ========================================= */

.vdl-prijscheck .vdl-result {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
    padding: 24px;

    background: var(--vdl-dark);
    color: var(--vdl-white);

    border-radius: 8px;

    text-align: center;

    animation: vdl-fade-in 0.3s ease;
}

.vdl-prijscheck .vdl-result > span {
    color: var(--vdl-white);

    font-size: 15px;
    font-weight: 500;
}

.vdl-prijscheck .vdl-total {
    display: block;

    margin: 0;

    color: var(--vdl-white);

    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}

.vdl-prijscheck .vdl-result small {
    display: block;

    max-width: 550px;

    color: #c7e9e3;

    font-size: 13px;
    line-height: 1.6;
}

.vdl-prijscheck [hidden] {
    display: none !important;
}


/* =========================================
   ANIMATIE
   ========================================= */

@keyframes vdl-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   MOBIELE WEERGAVE
   ========================================= */

@media (max-width: 600px) {

    .vdl-prijscheck {
        padding: 16px;
        gap: 12px;
    }

    .vdl-prijscheck h2 {
        font-size: 22px;
    }

    .vdl-prijscheck h3 {
        font-size: 14px;
        padding: 9px;
    }

    .vdl-prijscheck .vdl-fields {
        gap: 8px;
    }

    .vdl-prijscheck .vdl-field {
        font-size: 12px;
    }

    .vdl-prijscheck input[type="number"] {
        font-size: 16px;
    }

    .vdl-prijscheck .vdl-result {
        padding: 20px 15px;
    }

}

@media (max-width: 360px) {

    .vdl-prijscheck .vdl-fields {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {

    .vdl-prijscheck * {
        animation: none;
        transition: none;
    }

}
