.fc-form fieldset {
    min-width: 0;
}

.fc-fieldset {
    border: 0;
    margin: 0 0 24px;
    padding: 0;
}

.fc-quantity-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-quantity-item {
    min-width: 0;
}

.fc-quantity-label {
    display: block;
    margin-bottom: 8px;
    min-height: 44px;
}

.fc-quantity-label strong,
.fc-quantity-label span {
    display: block;
}

.fc-quantity-label strong {
    color: #19212d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.fc-quantity-label span {
    color: #6c7179;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
}

.fc-field {
    margin-bottom: 0;
}

.fc-counter {
    align-items: center;
    border: 1px solid #dadbdd;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    overflow: hidden;
}

.fc-counter button {
    background: #f8f8f9;
    border: 0;
    color: #19212d;
    cursor: pointer;
    font-size: 20px;
    height: 46px;
    padding: 0;
}

.fc-counter button:hover {
    background: #eef8f9;
    color: #1aa6b7;
}

.fc-counter input.form-control {
    -moz-appearance: textfield;
    border: 0;
    border-left: 1px solid #ecedef;
    border-radius: 0;
    border-right: 1px solid #ecedef;
    box-shadow: none;
    color: #19212d;
    font-size: 16px;
    font-weight: 600;
    height: 46px;
    min-width: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.fc-counter input::-webkit-inner-spin-button,
.fc-counter input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fc-counter button:focus-visible,
.fc-option input:focus-visible,
.fc-form select:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 166, 183, .25);
    outline: 0;
}

.fc-options {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-options-inline {
    grid-template-columns: repeat(2, minmax(0, 160px));
}

.fc-option {
    align-items: center;
    background: #fff;
    border: 1px solid #dadbdd;
    border-radius: 6px;
    color: #19212d;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    gap: 10px;
    margin: 0;
    min-height: 52px;
    padding: 12px 14px;
    transition: border-color .2s ease, background-color .2s ease;
}

.fc-option:hover {
    border-color: #1aa6b7;
}

.fc-option:has(input:checked) {
    background: #eef8f9;
    border-color: #1aa6b7;
}

.fc-option input {
    flex: 0 0 auto;
    margin: 0;
    position: static;
}

.fc-option input:disabled + span {
    color: #9a9da3;
}

.fc-option:has(input:disabled) {
    background: #f8f8f9;
    border-color: #ecedef;
    cursor: not-allowed;
}

.fc-form .field-furniturecostcalculatorform-office.has-error .fc-option,
.fc-form .field-furniturecostcalculatorform-haslavatory.has-error .fc-option {
    border-color: #dc3545;
}

.fc-form .field-furniturecostcalculatorform-balcony {
    margin-bottom: 0;
}

.fc-form .field-furniturecostcalculatorform-balcony .form-control {
    height: 56px;
    line-height: 24px;
    padding: 16px 42px 16px 16px;
}

.fc-disclaimer {
    background: #f8f8f9;
    border-left: 3px solid #1aa6b7;
    border-radius: 4px;
    color: #474d57;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 24px;
    padding: 16px;
}

.fc-result-table td:last-child,
.fc-result-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.fc-total-row td {
    background: #f4fbfc;
    color: #19212d;
}

.fc-choices-title {
    color: #19212d;
    font-size: 18px;
    margin: 30px 0 10px;
}

.fc-choice-list {
    border: 1px solid #ecedef;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.fc-choice-row {
    align-items: flex-start;
    border-bottom: 1px solid #ecedef;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 14px;
}

.fc-choice-row:last-child {
    border-bottom: 0;
}

.fc-choice-row dt,
.fc-choice-row dd {
    color: #474d57;
    font-size: 13px;
    margin: 0;
}

.fc-choice-row dd {
    color: #19212d;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 767px) {
    .fc-quantity-grid,
    .fc-options {
        grid-template-columns: 1fr;
    }

    .fc-quantity-item {
        align-items: center;
        display: grid;
        gap: 16px;
        grid-template-columns: minmax(0, 1fr) 140px;
    }

    .fc-quantity-label {
        margin: 0;
        min-height: 0;
    }

    .fc-options-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-result-table {
        font-size: 13px;
    }

    .fc-choice-row {
        display: block;
    }

    .fc-choice-row dd {
        margin-top: 3px;
        text-align: left;
    }
}

@media (max-width: 400px) {
    .fc-quantity-item {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}
