.ce-calculator--home-renovation {
    max-width: 980px;
    margin: 0 auto;
}

.ce-home-renovation-shell {
    display: grid;
    gap: 24px;
}

.ce-home-renovation-fieldset {
    display: grid;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--ce-border);
    border-radius: 18px;
    background: #ffffff;
}

.ce-home-renovation-fieldset legend {
    padding: 0 8px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ce-text-strong);
}

.ce-home-renovation-field {
    display: grid;
    gap: 12px;
}

.ce-home-renovation-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ce-home-renovation-field label,
.ce-home-renovation-feature-header {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ce-primary-muted);
    font-weight: 700;
}

.ce-home-renovation-value-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 12px 16px;
    border: 1px solid var(--ce-border);
    border-radius: 10px;
    background: rgba(29, 29, 99, 0.03);
    color: var(--ce-text-strong);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.ce-home-renovation-slider {
    width: 100%;
    accent-color: var(--ce-primary);
    cursor: pointer;
}

.ce-home-renovation-slider-legend {
    display: flex;
    justify-content: space-between;
    color: var(--ce-primary-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.ce-home-renovation-helper {
    margin: 0;
    color: var(--ce-primary-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.ce-home-renovation-select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--ce-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--ce-text-strong);
    font-family: 'Montserrat', sans-serif;
}

.ce-home-renovation-select:focus,
.ce-home-renovation-slider:focus,
.ce-home-renovation-checkbox input:focus {
    outline: 2px solid rgba(29, 29, 99, 0.35);
    outline-offset: 2px;
}

.ce-home-renovation-checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ce-home-renovation-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-height: 56px;
    border-radius: 10px;
    border: 1px solid var(--ce-border);
    background: rgba(29, 29, 99, 0.02);
    color: var(--ce-text-strong);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ce-home-renovation-checkbox:hover {
    border-color: var(--ce-border-strong);
    background: rgba(29, 29, 99, 0.04);
}

.ce-home-renovation-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--ce-primary);
    margin: 0;
}

.ce-home-renovation-checkbox span {
    font-size: 0.96rem;
    font-weight: 600;
}

.ce-home-renovation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ce-home-renovation-calculate,
.ce-home-renovation-reset {
    min-height: 58px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ce-calculator--home-renovation .ce-home-renovation-calculate {
    background: #1D1D63;
    color: #FFFFFF;
    border: 1px solid #1D1D63;
    box-shadow: 0 12px 24px rgba(29, 29, 99, 0.18);
}

.ce-calculator--home-renovation .ce-home-renovation-calculate:hover {
    background: #15154d;
    color: #FFFFFF;
    border-color: #15154d;
    transform: translateY(-1px);
}

.ce-calculator--home-renovation .ce-home-renovation-calculate:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 29, 99, 0.2);
}

.ce-calculator--home-renovation .ce-home-renovation-calculate:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ce-calculator--home-renovation .ce-home-renovation-reset {
    background: transparent;
    color: var(--ce-primary);
    border: 1px solid var(--ce-border);
}

.ce-calculator--home-renovation .ce-home-renovation-reset:hover {
    background: var(--ce-bg);
    border-color: var(--ce-border-strong);
    color: var(--ce-primary);
    transform: translateY(-1px);
}

.ce-calculator--home-renovation .ce-home-renovation-reset:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 29, 99, 0.1);
}

.ce-home-renovation-result {
    display: grid;
    gap: 18px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ce-home-renovation-result.reveal {
    opacity: 1;
    transform: translateY(0);
}

.ce-home-renovation-result-card,
.ce-home-renovation-total-card {
    border: 1px solid var(--ce-border);
    border-radius: 18px;
    background: #ffffff;
    padding: 22px 20px;
}

.ce-home-renovation-result-card {
    display: grid;
    gap: 14px;
}

.ce-home-renovation-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(29, 29, 99, 0.08);
}

.ce-home-renovation-result-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ce-home-renovation-result-label {
    color: var(--ce-primary-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.ce-home-renovation-result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ce-text-strong);
    white-space: nowrap;
}

.ce-home-renovation-total-card {
    background: linear-gradient(135deg, rgba(29, 29, 99, 0.06), rgba(29, 29, 99, 0.02));
    text-align: center;
}

.ce-home-renovation-total-label {
    color: var(--ce-primary-muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.ce-home-renovation-total-value {
    display: block;
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ce-text-strong);
    line-height: 1;
}

.ce-home-renovation-total-helper {
    margin-top: 10px;
    color: var(--ce-primary-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.ce-validation-error {
    display: block;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.ce-input-error {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

@media (max-width: 640px) {
    .ce-home-renovation-fieldset {
        padding: 18px;
    }

    .ce-home-renovation-header-row,
    .ce-home-renovation-result-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .ce-home-renovation-value-box {
        width: 100%;
    }

    .ce-home-renovation-checkbox-list,
    .ce-home-renovation-actions {
        grid-template-columns: 1fr;
    }
}
