/* Стили для страницы цен */
.prices-page {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    overflow: hidden;
}

.prices-background {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    background: url('../img/image6.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

.prices-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    width: 100%;
    padding-bottom: initial;
}

.prices-main-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 47px;
    color: #000000;
    width: 665px;
    margin-bottom: 24px;
}

.prices-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    width: 646px;
    margin-bottom: 24px;
}

/* Стили для шагов */
.step-section {
    margin-bottom: 24px;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.step-number-circle {
    width: 58px;
    height: 58px;
    position: relative;
    margin-right: 24px;
}

.step-number-outer {
    position: absolute;
    width: 58px;
    height: 58px;
    border: 1px solid #809C53;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number-inner {
    width: 48px;
    height: 48px;
    border: 1px solid #809C53;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: #809C53;
}

.step-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #000000;
}

/* Выбор веса */
.weight-selection,
.city-selection {
    width: 624px;
}

.weight-tabs,
.delivery-tabs {
    position: relative;
    width: 100%;
    height: 40px;
    background: #71A9BB;
    box-shadow: 6px 9px 20px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    display: flex;
}

.weight-tab,
.delivery-tab {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    flex: 1;
}

.weight-tab span,
.delivery-tab span {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.tab-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #809C53;
    box-shadow: 6px 9px 20px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.weight-tab.active .tab-bg,
.delivery-tab.active .tab-bg {
    opacity: 1;
}

.weight-note,
.delivery-note {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    margin-top: 25px;
    text-align: left;
}

/* Выбор города */
.city-selection {
    width: 388px;
    position: relative;
}

.city-select {
    position: relative;
    width: 210px;
    height: 40px;
    margin-bottom: 24px;
    cursor: pointer;
}

.city-select-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #7F9B52;
    box-shadow: 6px 9px 20px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
}

.city-select span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    color: #809C53;
    white-space: nowrap;
}

.select-arrow {
    position: absolute;
    width: 14.1px;
    height: 11.5px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-line {
    position: absolute;
    width: 2px;
    height: 11px;
    background: #809C53;
    border-radius: 2px;
}

.arrow-line:first-child {
    left: 0.08px;
    top: 0.95px;
    transform: rotate(-35.9deg);
}

.arrow-line:last-child {
    left: 5.44px;
    top: 0.85px;
    transform: matrix(-0.82, -0.58, -0.58, 0.82, 0, 0);
}

.delivery-tabs {
    width: 385px;
}

/* Таблица цен */
.price-table {
    width: 550px;
}

.table-header {
    display: none;
}

.table-row {
    display: flex;
    border-bottom: 3px solid #809C53;
    padding: 16px 0;
}

.table-row:first-child {
    border-top: none;
}

.table-row:last-child {
    border-bottom: 3px solid #809C53;
}

.material {
    flex: 1;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    padding-left: 4px;
}

.price {
    width: 100px;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    text-align: center;
}

.price.price-value {
    padding-right: 10px;
}


.price-row .material {
    padding-right: 12px;
}

.price-row .qty {
    width: auto;
    display: flex;
    justify-content: flex-end;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.qty-control.is-disabled {
    opacity: 0.45;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #7F9B52;
    background: #FFFFFF;
    color: #809C53;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
}

.qty-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-input {
    width: 70px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #7F9B52;
    padding: 0 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    -moz-appearance: textfield;
}

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

.qty-input:disabled {
    background: #f4f4f4;
}

.qty-unit {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    min-width: 18px;
}

.price-summary {
    width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 12px;
}

.summary-row {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
}

.summary-label {
    color: #000000;
}

.summary-value {
    font-weight: 700;
}

/* Недоступные вкладки доставки */
.delivery-tab.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Стили для выпадающего списка городов (отдельный для страницы цен) */
.prices-city-dropdown {
    position: absolute;
    width: 210px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    border: 1px solid #7F9B52;
    overflow: hidden;
    /* Привязываем к селекту города (а не ко всему блоку .city-selection) */
    top: 40px;
    left: 0;
    margin-top: 0;
}

.prices-city-dropdown .dropdown-header {
    position: relative;
    width: 100%;
    height: 41px;
    background: linear-gradient(90deg, #819A43 0%, #70A9BC 100%);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prices-city-dropdown .dropdown-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #FFFFFF;
}

.prices-city-dropdown .close-dropdown {
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prices-city-dropdown .close-line {
    position: absolute;
    width: 11px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
}

.prices-city-dropdown .close-line.line-1 {
    transform: rotate(-45deg);
}

.prices-city-dropdown .close-line.line-2 {
    transform: rotate(45deg);
}

.prices-cities-list {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.prices-city-option {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 2px 0;
}

.prices-city-option:hover {
    background: rgba(129, 154, 67, 0.1);
    color: #687E36;
}

.prices-city-option.selected {
    background: rgba(129, 154, 67, 0.2);
    color: #687E36;
}

/* Форма расчета */
.calculation-form-section {
    width: 100%;
    background: #FFFFFF;
    position: relative;
    padding: 0;
    margin-top: 20px;
}

.calculation-form-wrapper {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    padding: 30px 0;
}

.calculation-form-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid;
    border-image: linear-gradient(90deg, #819A43 0%, #70A9BC 100%);
    border-image-slice: 1;
    pointer-events: none;
}

.calculation-form {
    width: 100%;
    padding: 0;
    position:relative;
    z-index: 2;
}



.form-fields {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.form-group {
    position: relative;
    width: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Градиентная обводка для полей ввода */
.form-input-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
}
.form-input-wrapper p {padding: 0px;}

.form-input-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #819A43 0%, #70A9BC 100%);
    border-radius: 52px;
    z-index: 1;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50px;
    padding: 0 20px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    border: none;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: #757171;
}

/* Кнопка отправки и соглашение */
.form-button-container {
    width: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
}

/* Кнопка */
.calculate-button {
    width: 100%;
    height: 40px;
    padding: 0px 20px !important;
    color:#fff;
    background: #71A9BB;
    box-shadow: 6px 9px 20px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    margin: 0;
    padding: 0;
}

.calculate-button:hover {
    transform: translateY(-2px);
}

.calculate-button span {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    color: #FFFFFF;
}

/* Соглашение под кнопкой */
.form-agreement-container {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    justify-content: flex-start;
}

.checkbox-input {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    accent-color: #71A9BB;
    flex-shrink: 0;
}

.checkbox-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    text-align: left;
    width: 225px;
}

/* Футер без отступа */
.footer {
    margin-top: 0;
}
@media (max-width: 786px) {
    .price-summary {
        width: auto;
    }
}