/* Magnat calculator V3 - extra pieces on top of the existing .calculator-* styles in styles.css */

.mcalc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.mcalc-option { min-width: 0; }
.mcalc-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    margin: -5px -6px 8px;
    border-radius: 9px;
    overflow: hidden;
    background: #f1f5f9;
}
.mcalc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* staircase shapes: plan view (flights, landings, winders, ascent arrow) */
.mcalc-svg { display: flex; justify-content: center; align-items: center; margin: -2px -4px 8px; padding: 6px 0; border-radius: 9px; background: #f8fafc; }
.mcalc-svg svg { width: 100%; max-width: 132px; height: 84px; display: block; }
.mcalc-svg .sk-fl { fill: #ffffff; stroke: #64748b; stroke-width: 1.6; }
.mcalc-svg .sk-ld { fill: rgba(100, 116, 139, 0.16); stroke: #64748b; stroke-width: 1.6; }
.mcalc-svg .sk-tr { stroke: #cbd5e1; stroke-width: 1.2; }
.mcalc-svg .sk-wd { stroke: #94a3b8; stroke-width: 1.2; }
.mcalc-svg .sk-ar { fill: none; stroke: #b08d57; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mcalc-svg .sk-st { fill: #b08d57; }
.mcalc-svg .sk-dash { fill: #ffffff; stroke: #94a3b8; stroke-width: 1.6; stroke-dasharray: 5 4; }
.mcalc-svg .sk-q { fill: #64748b; font: 700 34px/1 system-ui, sans-serif; }
.calculator-option.is-active .mcalc-svg { background: #e6f4f1; }
.calculator-option.is-active .mcalc-svg .sk-fl,
.calculator-option.is-active .mcalc-svg .sk-ld,
.calculator-option.is-active .mcalc-svg .sk-dash { stroke: #0f766e; }
.calculator-option.is-active .mcalc-svg .sk-ld { fill: rgba(15, 118, 110, 0.18); }
.calculator-option.is-active .mcalc-svg .sk-q { fill: #0f766e; }

.mcalc-size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mcalc-box { border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; }
.mcalc-box-label { display: block; font-size: 0.8rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }

.mcalc-counter { display: flex; align-items: center; gap: 8px; }
.mcalc-counter button {
    width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid #e5e7eb; background: #f8fafc;
    font-size: 1.2rem; font-weight: 700; color: #0f172a; cursor: pointer;
}
.mcalc-counter button:hover { border-color: #0f766e; color: #0f766e; }
.mcalc-counter input {
    width: 70px; height: 40px; text-align: center; font-size: 1.05rem; font-weight: 700;
    border: 1.5px solid #e5e7eb; border-radius: 10px; color: #0f172a; -moz-appearance: textfield;
}
.mcalc-counter input::-webkit-outer-spin-button,
.mcalc-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mcalc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mcalc-pill {
    padding: 8px 12px; border-radius: 999px; border: 1.5px solid #e5e7eb; background: #fff;
    font-size: 0.8rem; font-weight: 600; color: #0f172a; cursor: pointer; line-height: 1.2;
}
.mcalc-pill:hover { border-color: #94a3b8; }
.mcalc-pill.is-active { border-color: #0f766e; background: #f0fdf9; color: #0f5d57; }
.mcalc-pills--wide .mcalc-pill { padding: 10px 16px; }

.calculator-step .mcalc-subtitle { margin: 18px 0 10px; font-size: 0.9rem; font-weight: 700; color: #0f172a; }
/* the old rule kept this hint on one line, so it was cut off in the sidebar */
.calculator-summary .calculator-note { white-space: normal; }
.mcalc-note { margin: 12px 0 0; font-size: 0.76rem; line-height: 1.5; color: #64748b; }
.mcalc-note--warn {
    color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px;
}

.mcalc-price small { font-size: 0.85rem; font-weight: 600; color: #475569; }
.mcalc-error { margin: 0; font-size: 0.78rem; color: #b91c1c; }
.mcalc-edit { margin-top: 12px; }
.mcalc-sent { text-align: center; padding: 1rem 0.5rem; color: #0f766e; }
.mcalc-sent .calc-result-contact-title { margin-top: 0.6rem; }
.mcalc-wa { display: inline-block; text-decoration: none; text-align: center; margin: 0.8rem 0 0.4rem; background: #25d366; }
.mcalc-wa:hover { background: #1ebe5a; }
.mcalc-restart { margin-top: 0.4rem; }

@media (max-width: 900px) {
    .mcalc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .mcalc-size { grid-template-columns: 1fr; }
    .mcalc-grid--shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* placeholder box for models without a real photo yet */
.mcalc-thumb--sketch { display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.mcalc-thumb--sketch svg { width: 62%; height: auto; }
.mcalc-thumb--sketch svg line { stroke: #94a3b8; stroke-width: 4; stroke-linecap: round; }
.mcalc-thumb--sketch svg .beam { stroke: #64748b; stroke-width: 9; }
.calculator-option.is-active .mcalc-thumb--sketch svg .beam { stroke: #0f766e; }
