.calculator-page {
}

.calculator-page .page-subtitle {
    color: #6b7785;
    margin: 0 0 32px;
}

.calculator-form .form-section {
    margin-bottom: 28px;
}

.calculator-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.calculator-form .req {
    color: #e53935;
}

.calculator-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d3dae2;
    border-radius: 4px;
    font-size: 15px;
    color: #1a2a3a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.calculator-form .form-control:focus {
    outline: none;
    border-color: #0a9ed1;
    box-shadow: 0 0 0 3px rgba(10, 158, 209, .12);
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    z-index: 50;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d3dae2;
    border-radius: 4px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    display: none;
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f3f6;
    font-size: 14px;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: #f2fbff;
    color: #0a9ed1;
}

.autocomplete-list li .sub {
    color: #6b7785;
    font-size: 12px;
    margin-left: 6px;
}

.selected-city {
    margin-top: 8px;
    font-size: 14px;
    color: #2e7d32;
}

/* Таблица товаров */
.calc-items {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.calc-items th,
.calc-items td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6ebf0;
    text-align: left;
    vertical-align: middle;
}

.calc-items th {
    background: #f7f9fb;
    font-weight: 600;
    color: #566472;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.calc-items .empty-row td {
    text-align: center;
    color: #98a4b0;
    padding: 32px 12px;
    font-style: italic;
}

.calc-items .qty-input {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid #d3dae2;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
}

.calc-items .remove-item {
    background: none;
    border: none;
    color: #c94a4a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
}

.calc-items .remove-item:hover {
    color: #a02828;
}

/* Кнопки */
.form-actions {
    margin-top: 24px;
}


.calculator-page .btn-primary {
    background: #10abeb;
    color: #fff;
    border-color: #10abeb;
    border-radius: 3px;
}

.calculator-page .btn-primary:hover:not(:disabled) {
    background: #0886b3;
}

.calculator-page .btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Результат */
.calc-result {
    margin-top: 32px;
    padding: 24px;
    background: #f2fbff;
    border: 1px solid #b9e2f2;
    border-radius: 6px;
}

.calc-result__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.calc-result__label {
    font-size: 16px;
    color: #566472;
}

.calc-result__value {
    font-size: 32px;
    font-weight: 700;
    color: #0a9ed1;
}

.calc-result__info {
    font-size: 14px;
    color: #566472;
    line-height: 1.8;
}

.calc-result__note {
    margin: 16px 0 0;
    font-size: 12px;
    color: #98a4b0;
}

/* Ошибка */
.calc-error {
    margin-top: 24px;
    padding: 16px 20px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 4px;
    color: #a02828;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.calc-result__summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #b9e2f2;
    font-size: 14px;
    color: #566472;
}