.termene-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.termene-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}

.termene-helper-box,
.termene-disclaimer,
.termene-example-card,
.termene-form-field,
.termene-form-actions,
.termene-result-details {
    box-sizing: border-box;
}

.termene-helper-box {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    align-self: start;
}

.termene-helper-box h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #1f2937;
}

.termene-helper-box p,
.termene-helper-box li {
    font-size: 15px;
    line-height: 1.72;
    color: #475467;
}

.termene-helper-box ul {
    margin: 0;
    padding-left: 18px;
}

.termene-helper-box ul li + li {
    margin-top: 8px;
}

.termene-inline-note {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #f7fbfe;
    border: 1px solid #d9e8f2;
    font-size: 14px;
    line-height: 1.7;
    color: #445566;
}

.termene-form {
    margin-top: 4px;
}

.termene-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
}

.termene-form-field,
.termene-form-spacer {
    min-width: 0;
}

.termene-form-field-single {
    grid-column: 1;
}

.termene-form-field .calc-label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #173855;
}

.termene-form-field .calc-input,
.termene-form-field .calc-select {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #d5dde6;
    border-radius: 14px;
    background-color: #fbfdff;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
    font-size: 15px;
    line-height: 1.4;
    color: #243447;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.termene-form-field .calc-input:focus,
.termene-form-field .calc-select:focus {
    outline: none;
    border-color: #2490d0;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 121, 193, 0.12);
}

.termene-form-field .calc-select {
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #0079C1 50%),
        linear-gradient(135deg, #0079C1 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.termene-field-help {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.55;
    color: #667085;
}

.termene-form-row-hidden {
    display: none !important;
}

.termene-form-actions {
    margin-top: 20px;
}

.termene-form-actions .calc-button {
    min-width: 220px;
}

.termene-result-details {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #d9e8f2;
    border-radius: 14px;
    background: #f8fbfe;
}

.termene-result-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e7eef5;
}

.termene-result-detail-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.termene-result-detail-item:first-child {
    padding-top: 0;
}

.termene-result-detail-label {
    font-size: 14px;
    line-height: 1.55;
    color: #5c6c7c;
    font-weight: 700;
}

.termene-result-detail-value {
    font-size: 14px;
    line-height: 1.55;
    color: #173855;
    text-align: right;
}

.termene-result-extra {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: #445766;
}

.calc-result.is-error {
    border-color: #efb8b8;
    background: #fff8f8;
}

.calc-result.is-error .calc-result-title,
.calc-result.is-error .calc-result-value {
    color: #a33a3a;
}

.calc-result.is-error .termene-result-details {
    border-color: #f0d2d2;
    background: #fff3f3;
}

.termene-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.termene-example-card {
    padding: 20px 18px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.termene-example-card h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    line-height: 1.35;
    color: #173855;
}

.termene-example-card p {
    font-size: 15px;
    line-height: 1.72;
    color: #4d5d6c;
    margin: 0;
}

.termene-disclaimer {
    margin-top: 14px;
    padding: 15px 16px;
    border-radius: 12px;
    background: #fff8ea;
    border: 1px solid #f1d8a2;
    color: #6b5330;
    font-size: 14px;
    line-height: 1.72;
}

.calc-section-intro-common {
    margin-top: 2px;
}

@media screen and (max-width: 1100px) {
    .termene-grid {
        grid-template-columns: 1fr;
    }

    .termene-sidebar-stack {
        order: 2;
    }

    .termene-examples {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 780px) {
    .termene-form-grid {
        grid-template-columns: 1fr;
    }

    .termene-form-field-single {
        grid-column: auto;
    }

    .termene-form-spacer {
        display: none;
    }

    .termene-result-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .termene-result-detail-value {
        text-align: left;
    }

    .termene-form-actions .calc-button {
        width: 100%;
        min-width: 0;
    }
}