.nb-wrapper {
    margin: auto;
    background: #fff;
    padding: 35px;
    border-radius: 20px
}

.nb-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px
}

/* FORM */
.nb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px
}

.nb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #777
}

.nb-field input,
.nb-field select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-top: 6px
}

/* ERROR STATE */
.nb-error {
    border-color: #fd3752 !important;
    background: #fff5f7;
}

/* FANCY RADIO */
.nb-units {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.nb-unit {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: .25s;
    user-select: none;
}

.nb-unit input {
    display: none
}

.nb-unit.active {
    border-color: #fd3752;
    background: #fff5f7;
    color: #fd3752;
}

.nb-units.nb-error {
    padding: 4px;
    border-radius: 14px;
    border: 2px solid #fd3752;
}

/* BUTTON */
.nb-btn {
    background: #fd3753;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    width: 100%;
    margin-top: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* RESULTS */
.nb-results {
    display: none;
    margin-top: 40px
}

.nb-summary {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* DONUT */
.nb-donut-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin-inline: auto;
}

.nb-donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#fd3752 0deg var(--mat),
            #ff9f43 var(--mat) var(--lab),
            #1dd1a1 var(--lab) 360deg);
}

.nb-donut::after {
    content: "";
    position: absolute;
    inset: 45px;
    background: #fff;
    border-radius: 50%
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700
}

.donut-center small {
    font-weight: 500;
    color: #666
}

.donut-center .amount {
    font-size: 20px;
    margin: 6px 0
}

/* COST LIST */
.nb-cost-list {
    height: 260px;
    overflow-y: auto;
    background: #f9fafc;
    border-radius: 18px;
    padding: 22px;
    width: 60%;
}

.nb-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px
}

.nb-row:last-child {
    border: none
}


.nb-row .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.nb-row.material .dot {
    background: #fd3752;
}

.nb-row.labour .dot {
    background: #ff9f43;
}

.nb-row.finishing .dot {
    background: #1dd1a1;
}

.nb-row>span.value {
    font-weight: 600;
    white-space: nowrap;
}

/* LEGEND */
.nb-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    font-size: 13px;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px
}

.dot.material {
    background: #fd3752
}

.dot.labours {
    background: #ff9f43
}

.dot.finishing {
    background: #1dd1a1
}

.nb-summary-left {
    width: 40%;
}

.houseConst_cta {
    display: flex;
    text-align: center;
    margin-block: 2rem;
}

.houseConst_cta a {
    background-color: #fd3753;
    padding: 12px 1rem;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    width: 100%;
}

@media (max-width: 660px) {
    .nb-wrapper {
        padding: 12px 0;
    }

    .nb-title {
        font-size: 1rem;
    }

    .nb-summary {
        flex-direction: column;
        gap: 12px;
    }

    .nb-cost-list {
        width: 100%;
        height: 100%;
    }

    .nb-summary-left,
    .nb-legend {
        width: 100%;
    }

}