/* Importeer Roboto lettertype van Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ==========================================================================
   Algemene Calculator Container
   ========================================================================== */

.mkb-calculator-wrapper {
    --theme-primary: #e17f38;
    --theme-secondary: #22374a;
    --theme-text-light: #3f485a;
    --theme-border: #ccc;
    --theme-radius: 4px;

    width: 100%;
    padding: 20px 40px 40px 40px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--theme-primary);
    font-family: 'Roboto', sans-serif;
}

.mkb-calculator-wrapper,
.mkb-calculator-wrapper .button,
.mkb-calculator-wrapper button,
.mkb-calculator-wrapper input,
.mkb-calculator-wrapper label,
.mkb-calculator-wrapper h2,
.mkb-calculator-wrapper h3,
.mkb-calculator-wrapper h4,
.mkb-calculator-wrapper p,
.mkb-calculator-wrapper span,
.mkb-calculator-wrapper div {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.mkb-calculator-wrapper .calculator-main-title {
    text-align: center;
    color: var(--theme-secondary);
    margin-bottom: 40px;
}

/* ==========================================================================
   Secties & Vragen
   ========================================================================== */

.mkb-calculator-wrapper .mkb-form-group.section,
.mkb-calculator-wrapper .mkb-lead-form-wrapper.section,
.mkb-calculator-wrapper .mkb-total-wrapper.section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mkb-calculator-wrapper .mkb-field-label {
    font-weight: bold;
    color: var(--theme-text-light);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.mkb-calculator-wrapper .field-description {
    font-size: 0.9em;
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
    font-style: italic;
}

/* ==========================================================================
   FINALE OPTIE LAYOUT (Correcte Versie)
   ========================================================================== */

.mkb-calculator-wrapper .options-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.mkb-calculator-wrapper .visual-option-wrapper,
.mkb-calculator-wrapper .mkb-option-text {
    display: flex;
    flex-direction: column;
}

.mkb-calculator-wrapper .mkb-option-text {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #fcfcfc;
    transition: border-color 0.2s ease-in-out;
    position: relative;
}

.mkb-calculator-wrapper .mkb-option-text:hover {
    border-color: var(--theme-primary);
}

.mkb-calculator-wrapper .mkb-option-text .option-main {
    display: flex;
    align-items: center;
    width: 100%;
}

.mkb-calculator-wrapper .mkb-option-text input {
    margin-right: 12px !important;
}

.mkb-calculator-wrapper .mkb-option-text .option-label-text {
    font-weight: 500;
}

.mkb-calculator-wrapper .mkb-option-text input:checked + .option-label-text {
    color: var(--theme-primary);
}

.mkb-calculator-wrapper .visual-option-wrapper {
    min-width: 100%;
}

.mkb-calculator-wrapper .visual-option {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease-in-out;
}

.mkb-calculator-wrapper .visual-option-wrapper:hover .visual-option {
    border-color: var(--theme-primary);
}

.mkb-calculator-wrapper .visual-option img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.mkb-calculator-wrapper .visual-option .option-label-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    padding: 12px 10px 12px 45px;
    text-align: left;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    color: var(--theme-text-light);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mkb-calculator-wrapper .visual-option input {
    display: block;
    position: absolute;
    z-index: 2;
    left: 15px;
    bottom: 17px;
    margin: 0;
}

.mkb-calculator-wrapper .visual-option input:checked ~ .option-label-text {
    background: var(--theme-primary);
    color: white;
}

.mkb-calculator-wrapper .visual-option-wrapper.checked .visual-option {
    border-color: var(--theme-primary) !important;
}

.mkb-calculator-wrapper .mkb-option-text label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

/* ==========================================================================
   Omschrijvingen, Knoppen, etc.
   ========================================================================== */

.mkb-calculator-wrapper .option-description {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    text-align: left;
    padding: 0 5px;
}

.mkb-calculator-wrapper .mkb-option-text .option-description {
    padding-left: 0;
}

.mkb-calculator-wrapper input[type="text"],
.mkb-calculator-wrapper input[type="number"],
.mkb-calculator-wrapper input[type="email"],
.mkb-calculator-wrapper input[type="tel"],
.mkb-calculator-wrapper textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    font-size: 16px;
}

.mkb-calculator-wrapper .mkb-number-input {
    max-width: 150px;
}

.mkb-calculator-wrapper #mkb-summary-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.mkb-calculator-wrapper #mkb-summary-container td {
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
}

.mkb-calculator-wrapper #mkb-summary-container tr:last-child td {
    border-bottom: none;
}

.mkb-calculator-wrapper .mkb-total-price-container {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--theme-secondary);
    text-align: right;
}

.mkb-calculator-wrapper .mkb-total-price-container h3 {
    margin: 5px 0;
    font-size: 1.5em;
    font-weight: 700;
}

.mkb-calculator-wrapper .mkb-total-price {
    color: var(--theme-primary);
}

.mkb-calculator-wrapper .mkb-form-row {
    margin-bottom: 15px;
}

.mkb-calculator-wrapper .mkb-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.mkb-calculator-wrapper .mkb-form-consent label {
    font-size: 0.9em;
    color: #666;
}

.mkb-calculator-wrapper .button,
.mkb-calculator-wrapper button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: var(--theme-primary);
    color: white !important;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: var(--theme-radius);
    font-size: 16px;
    margin-top: 20px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.mkb-calculator-wrapper .button:hover,
.mkb-calculator-wrapper button:hover {
    background-color: #cc6633;
}

.mkb-calculator-wrapper .mkb-edit-choices {
    background-color: #777;
}

.mkb-calculator-wrapper .mkb-edit-choices:hover {
    background-color: #555;
}

.mkb-calculator-wrapper .btn-row {
    display: flex;
    gap: 15px;
}

.mkb-slider-wrapper {
    margin-top: 15px;
}

.mkb-slider-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 4px;
}

.mkb-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--theme-primary);
    cursor: pointer;
    border-radius: 50%;
}

.mkb-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--theme-primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.slider-value-display {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--theme-secondary);
}

.option-price-display {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}