.gloed-tool {
    font-family: inherit;
    margin: 20px 0 40px 0;
    max-width: 720px;
}

/* ── Input row ────────────────────────── */

.gloed-tool__inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gloed-tool__field {
    flex: 1;
    min-width: 200px;
}

.gloed-tool__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 8px;
}

.gloed-tool__input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #d8d0c8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.gloed-tool__input-wrap:focus-within {
    border-color: #A2A569;
    box-shadow: 0 0 0 3px rgba(162, 165, 105, 0.15);
}

.gloed-tool__affix {
    padding: 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    background: #f7f5f2;
    align-self: stretch;
    display: flex;
    align-items: center;
    user-select: none;
}

.gloed-tool__input-wrap--prefix .gloed-tool__affix {
    border-right: 1px solid #e0d8d0;
}

.gloed-tool__input-wrap--suffix .gloed-tool__affix {
    border-left: 1px solid #e0d8d0;
}

.gloed-tool__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    width: 0; /* flex will size it */
    outline: none;
    -moz-appearance: textfield;
}

.gloed-tool__input::-webkit-inner-spin-button,
.gloed-tool__input::-webkit-outer-spin-button {
    opacity: 1;
}

.gloed-tool__input-wrap--select {
    padding-right: 0;
}

.gloed-tool__select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 36px 11px 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.gloed-tool__hint {
    font-size: 12px;
    color: #999;
    margin: 6px 0 0;
    line-height: 1.4;
}

/* ── Output ───────────────────────────── */

.gloed-tool__output {
    min-height: 4px;
}

.gloed-tool__result {
    background: #faf8f5;
    border: 1px solid #e5ddd4;
    border-radius: 10px;
    padding: 24px 28px;
}

/* ── Breakdown table ──────────────────── */

.gloed-tool__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.gloed-tool__table td {
    padding: 9px 0;
    font-size: 15px;
    border-bottom: 1px solid #ede7df;
    vertical-align: middle;
}

.gloed-tool__table td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.gloed-tool__table tr:last-child td {
    border-bottom: none;
}

.gloed-tool__table-row--dim td {
    color: #999;
    font-size: 13px;
}

/* ── Eigen bijdrage highlight ─────────── */

.gloed-tool__eigen-bijdrage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #A2A569;
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
}

.gloed-tool__eigen-bijdrage-label {
    font-size: 14px;
    font-weight: 600;
}

.gloed-tool__eigen-bijdrage-amount {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Notices ──────────────────────────── */

.gloed-tool__notice {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0 0;
}

.gloed-tool__notice--positive {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f7f2;
    border: 1.5px solid #4caf7d;
    border-left: 4px solid #4caf7d;
    border-radius: 8px;
    color: #1e5c38;
    font-weight: 500;
    padding: 12px 14px;
    margin-top: 0;
}

.gloed-tool__notice--positive::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-color: #4caf7d;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Responsive ───────────────────────── */

@media (max-width: 480px) {
    .gloed-tool__inputs {
        flex-direction: column;
    }

    .gloed-tool__field {
        min-width: 100%;
    }

    .gloed-tool__eigen-bijdrage-amount {
        font-size: 22px;
    }

    .gloed-tool__result {
        padding: 18px 16px;
    }
}
