/* ── Calculator shared styles ── */
.st-calc {
    max-width: 720px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Progress dots */
.st-calc__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.st-calc__step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .3s;
    flex-shrink: 0;
}
.st-calc__step-dot.active {
    background: #2e7d32;
    color: #fff;
}
.st-calc__step-dot.done {
    background: #66bb6a;
    color: #fff;
}
.st-calc__step-line {
    height: 3px;
    width: 60px;
    background: #e0e0e0;
    flex-shrink: 0;
}
.st-calc__step-line.done {
    background: #66bb6a;
}

/* Panels */
.st-calc__panel {
    display: none;
    animation: stCalcFadeIn .3s;
}
.st-calc__panel.active {
    display: block;
}
@keyframes stCalcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.st-calc__panel h3 {
    font-size: 1.25rem;
    margin: 0 0 1.2rem;
    color: #2e7d32;
}

/* Option buttons (radio-like) */
.st-calc__options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}
.st-calc__opt {
    padding: .6rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    font-size: .95rem;
    transition: all .2s;
    user-select: none;
}
.st-calc__opt:hover {
    border-color: #66bb6a;
    background: #f1f8e9;
}
.st-calc__opt.selected {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: 600;
}

/* Group labels */
.st-calc__group-label {
    width: 100%;
    font-size: .85rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: .8rem 0 .3rem;
}
.st-calc__group-label:first-child {
    margin-top: 0;
}

/* Input */
.st-calc__input-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 300px;
}
.st-calc__input {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color .2s;
}
.st-calc__input:focus {
    border-color: #2e7d32;
}
.st-calc__unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}

/* Select */
.st-calc__select-wrap {
    max-width: 400px;
}
.st-calc__select {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}
.st-calc__select:focus {
    border-color: #2e7d32;
}

/* Nav buttons */
.st-calc__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}
.st-calc__btn {
    padding: .75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.st-calc__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.st-calc__btn--next {
    background: #2e7d32;
    color: #fff;
    margin-left: auto;
}
.st-calc__btn--next:hover:not(:disabled) {
    background: #1b5e20;
}
.st-calc__btn--back {
    background: #f5f5f5;
    color: #555;
}
.st-calc__btn--back:hover {
    background: #e0e0e0;
}

/* Result box */
.st-calc__result {
    background: #e8f5e9;
    border: 2px solid #66bb6a;
    border-radius: 12px;
    padding: 1.5rem 2rem;
}
.st-calc__result h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}
.st-calc__result-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 1.05rem;
}
.st-calc__result-row:last-of-type {
    border-bottom: none;
}
.st-calc__result-label {
    color: #555;
}
.st-calc__result-value {
    font-weight: 700;
    color: #1b5e20;
}
.st-calc__result-total {
    font-size: 1.3rem;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 2px solid #66bb6a;
}

/* Varieties list */
.st-calc__varieties {
    margin-top: 1rem;
}
.st-calc__varieties h4 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    color: #2e7d32;
}
.st-calc__varieties a {
    display: inline-block;
    padding: .3rem .8rem;
    background: #fff;
    border: 1px solid #66bb6a;
    border-radius: 6px;
    margin: .2rem .3rem .2rem 0;
    color: #2e7d32;
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
}
.st-calc__varieties a:hover {
    background: #2e7d32;
    color: #fff;
}

/* Mix table */
.st-calc__mix-table {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0 1rem;
}
.st-calc__mix-table th,
.st-calc__mix-table td {
    padding: .5rem .75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.st-calc__mix-table th {
    background: rgba(46,125,50,.08);
    font-weight: 700;
    color: #2e7d32;
}

/* CTA buttons in result */
.st-calc__cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.st-calc__cta-btn {
    display: inline-block;
    padding: .9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.st-calc__cta-btn--primary {
    background: #2e7d32;
    color: #fff;
}
.st-calc__cta-btn--primary:hover {
    background: #1b5e20;
    color: #fff;
}
.st-calc__cta-btn--secondary {
    background: #fff;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}
.st-calc__cta-btn--secondary:hover {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Disclaimer */
.st-calc__disclaimer {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: #fff8e1;
    border-left: 4px solid #ffa000;
    border-radius: 4px;
    font-size: .9rem;
    color: #5d4037;
}

/* Form gate */
.st-calc__gate {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px dashed #2e7d32;
    border-radius: 12px;
    text-align: center;
}
.st-calc__gate-text {
    margin-bottom: 1rem;
}
.st-calc__gate-text strong {
    display: block;
    font-size: 1.1rem;
    color: #1b5e20;
    margin-bottom: .3rem;
}
.st-calc__gate-text span {
    display: block;
    font-size: .9rem;
    color: #555;
}
.st-calc__gate-btn {
    display: inline-block;
    padding: .9rem 2.5rem;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.st-calc__gate-btn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Result links (after form gate unlock) */
.st-calc__result-links {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

/* Unit select (for recult area m2/ha) */
.st-calc__unit-select {
    padding: .5rem .75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
}

/* Step summary (completed steps) */
.st-calc__summary {
    margin-bottom: 0;
}
.st-calc__summary:empty {
    display: none;
}
.st-calc__summary-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    margin-bottom: .35rem;
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    font-size: .95rem;
}
.st-calc__summary-label {
    color: #555;
    flex-shrink: 0;
}
.st-calc__summary-value {
    font-weight: 600;
    color: #1b5e20;
    flex: 1;
}
.st-calc__summary-edit {
    background: none;
    border: none;
    color: #2e7d32;
    font-size: .8rem;
    cursor: pointer;
    padding: .2rem .5rem;
    border-radius: 4px;
    transition: background .15s;
    flex-shrink: 0;
}
.st-calc__summary-edit:hover {
    background: rgba(46,125,50,.1);
    text-decoration: underline;
}

/* Min height to prevent layout jump */
.st-calc__steps {
    min-height: 280px;
}

/* Responsive */
@media (max-width: 600px) {
    .st-calc {
        padding: 1.2rem;
        margin: 1rem .5rem;
    }
    .st-calc__step-line {
        width: 30px;
    }
    .st-calc__opt {
        padding: .5rem .8rem;
        font-size: .85rem;
    }
    .st-calc__nav {
        flex-direction: column-reverse;
    }
    .st-calc__btn {
        width: 100%;
        text-align: center;
    }
    .st-calc__btn--next {
        margin-left: 0;
    }
    .st-calc__result-row {
        flex-direction: column;
        gap: .2rem;
    }
    .st-calc__cta {
        flex-direction: column;
    }
}
