.mhs-calculator {
    --mhs-accent: #ea7317;
    --mhs-text: #555555;
    --mhs-muted: #555555;
    --mhs-border: #d7deea;
    --mhs-surface: #fff;
    --mhs-soft: #f3f6fb;
    --mhs-calc-font: 1rem;
    --mhs-calc-title: 1.15rem;
    --mhs-calc-pad: 18px;
    --mhs-calc-input-min: 50px;
    --mhs-calc-max: 720px;
    color: var(--mhs-text);
    background: var(--mhs-surface);
    font: inherit;
    font-family: Heebo, Arial, sans-serif;
    font-size: var(--mhs-calc-font);
    max-width: var(--mhs-calc-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--mhs-calc-pad) var(--mhs-calc-pad) 16px;
    box-sizing: border-box;
}
.mhs-calc .mhs-calculator.anyagkalkulator-container,
.mhs-hero .mhs-calc .mhs-calculator.anyagkalkulator-container {
    width: 100%;
    max-width: var(--mhs-calc-max);
    margin-left: auto;
    margin-right: auto;
    padding: var(--mhs-calc-pad) var(--mhs-calc-pad) 16px;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: var(--mhs-surface);
    font-size: var(--mhs-calc-font);
}
.mhs-calculator__title,
.mhs-calc .mhs-calculator.anyagkalkulator-container h2.mhs-calculator__title {
    margin: 0 0 12px;
    padding: 0;
    color: #1a1919;
    font-family: Heebo, Arial, sans-serif;
    font-size: var(--mhs-calc-title);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}
.mhs-calculator__lead,
.mhs-calc .mhs-calculator.anyagkalkulator-container p.mhs-calculator__lead {
    margin: 0 0 14px;
    padding: 0;
    color: var(--mhs-text);
    font-size: .95em;
    font-weight: 400;
    line-height: 1.45;
}
.mhs-calculator .mhs-gift-notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #7b4b00;
    font-size: .92em;
    line-height: 1.45;
}
.mhs-calculator *, .mhs-calculator *::before, .mhs-calculator *::after { box-sizing: border-box; }
.mhs-calculator__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mhs-calculator__field { display: flex; flex-direction: column; min-width: 0; }
.mhs-calculator__field label,
.mhs-calc .mhs-calculator .mhs-calculator__field label {
    display: block;
    margin: 0;
    color: #1b4180;
    font-size: inherit;
    font-weight: 650;
    line-height: 1.4;
    position: static;
}
.mhs-calculator__label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 1.4em;
}
.mhs-calculator__info-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.mhs-calculator__info-button { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0; border: 1px solid #2456a8; border-radius: 50%; background: #fff; color: #2456a8; font: 600 13px/1 Heebo, Arial, sans-serif; cursor: pointer; }
.mhs-calculator__info-button:focus-visible { outline: 3px solid rgba(36,86,168,.22); outline-offset: 2px; }
.mhs-calculator__tooltip { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; display: none; width: min(300px, calc(100vw - 56px)); padding: 12px 14px; border-radius: 7px; background: #1b4180; color: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.18); font-size: .9em; font-weight: 400; line-height: 1.45; }
.mhs-calculator__info-button:focus-visible ~ .mhs-calculator__tooltip, .mhs-calculator__info-wrap[data-open="true"] .mhs-calculator__tooltip { display: block; }
@media (hover: hover) { .mhs-calculator__info-wrap:hover .mhs-calculator__tooltip { display: block; } }
.mhs-calculator__field label span, .mhs-calculator__hint { color: var(--mhs-muted); font-size: .9em; font-weight: 400; }
.mhs-calculator__input-wrap { display: flex; align-items: center; min-height: var(--mhs-calc-input-min); border: 1px solid var(--mhs-border); border-radius: 8px; background: #fff; }
.mhs-calculator__input-wrap:focus-within { border-color: #2456a8; box-shadow: 0 0 0 3px rgba(36, 86, 168, .16); }
.mhs-calculator__input-wrap input,
.mhs-calc .mhs-calculator .mhs-calculator__input-wrap input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: inherit;
    text-align: left;
    appearance: textfield;
    -webkit-appearance: none;
    box-shadow: none;
}
.mhs-calculator__input-wrap > span { padding: 0 14px; color: var(--mhs-muted); white-space: nowrap; }
.mhs-calculator__hint,
.mhs-calc .mhs-calculator.anyagkalkulator-container p.mhs-calculator__hint {
    margin: 7px 0 0;
    padding: 0;
    color: var(--mhs-muted);
    font-size: .9em;
    font-weight: 400;
    line-height: 1.45;
}
.mhs-calculator__summary { margin: 20px 0 16px; padding: 15px 17px; border-radius: 8px; background: var(--mhs-soft); }
.mhs-calculator__summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.mhs-calculator__summary-row strong { text-align: right; white-space: nowrap; }
.mhs-calculator__notice,
.mhs-calc .mhs-calculator.anyagkalkulator-container p.mhs-calculator__notice {
    margin: 10px 0 0;
    padding: 0;
    color: #7b4b00;
    font-size: .92em;
    font-weight: 400;
    line-height: 1.45;
}
.mhs-calculator__submit {
    width: 100%;
    margin-top: 18px;
    min-height: var(--mhs-calc-input-min);
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--mhs-accent);
    color: #fff;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
}
.mhs-calculator__submit:hover:not(:disabled) { background: #c96214; }
.mhs-calculator__submit:focus-visible { outline: 3px solid rgba(234, 115, 23, .35); outline-offset: 2px; }
.mhs-calculator__submit:disabled { opacity: .5; cursor: not-allowed; }
.mhs-calculator__status,
.mhs-calc .mhs-calculator.anyagkalkulator-container p.mhs-calculator__status {
    min-height: 1.4em;
    margin: 8px 0 0;
    padding: 0;
    font-size: .92em;
    font-weight: 400;
}
.mhs-calculator__status[data-state="error"] { color: #a12626; }
.mhs-calculator__status[data-state="success"] { color: #28713b; }

/* Desktop: nagyobb felület + a két beviteli mező egy vonalban */
@media (min-width: 601px) {
    .mhs-calculator {
        --mhs-calc-font: 1.125rem;
        --mhs-calc-title: 1.45rem;
        --mhs-calc-pad: 28px;
        --mhs-calc-input-min: 58px;
        --mhs-calc-max: 920px;
    }
    .mhs-calculator__fields {
        column-gap: 28px;
        row-gap: 18px;
        align-items: start;
    }
    .mhs-calculator__label-row {
        min-height: 2.85em;
        margin-bottom: 10px;
        align-items: flex-end;
    }
    .mhs-calculator__summary { margin: 24px 0 18px; padding: 18px 20px; }
    .mhs-calculator__submit { margin-top: 22px; }
}

@media (max-width: 600px) {
    .mhs-calculator__summary-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .mhs-calculator__summary-row strong { text-align: left; }
    .mhs-calculator__fields { grid-template-columns: 1fr; gap: 14px; }
}
