/* styles for calculator */
.calculator-block {
    margin: 40px 0;
    background: #f9f9f9;
    padding: 20px 0 40px;
    border-radius: 8px;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 30px auto 0;
    background: #fff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calc-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 25px;
}

.calc-col {
    flex: 1 1 200px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.calc-col.full-width {
    flex: 1 1 100%;
}

.calculator-wrapper label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator-wrapper select,
.calculator-wrapper input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.calculator-wrapper select:focus,
.calculator-wrapper input[type="number"]:focus {
    border-color: #0bb4aa;
    box-shadow: 0 0 0 3px rgba(11, 180, 170, 0.1);
    outline: none;
}

.calc-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    padding-top: 5px;
}

.calc-checkboxes label {
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: none;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    gap: 8px;
}

.calc-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0bb4aa;
    cursor: pointer;
    flex-shrink: 0;
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 20px 0 15px;
    margin-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.result-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.result-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #0bb4aa;
    letter-spacing: 1px;
}

.result-price span {
    font-size: 38px;
}

.calc-action {
    text-align: center;
    margin-top: 30px;
}

.calc-action .wp-block-button__link {
    padding: 14px 40px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    background: #0bb4aa;
    color: #fff !important;
    border: 2px solid #0bb4aa;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
}

.calc-action .wp-block-button__link:hover {
    background: #089b92;
    border-color: #089b92;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 180, 170, 0.3);
}

/* Стили для кнопок системы налогообложения */
.calc-system-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 10px;
}

.system-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    min-width: 120px;
}

.system-btn:hover {
    border-color: #0bb4aa;
    background: #f0fafa;
}

.system-btn.active {
    border-color: #0bb4aa;
    background: #0bb4aa;
    color: #fff;
}

/* Стили для бегунков */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    padding: 0;
    margin: 10px 0 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0bb4aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(11, 180, 170, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0bb4aa;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    font-family: 'Inter', sans-serif;
    padding: 0 2px;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .system-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 20px;
    }

    .calc-col {
        flex: 1 1 100%;
    }

    .calc-result {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .result-price {
        font-size: 30px;
    }

    .result-price span {
        font-size: 32px;
    }

    .calc-checkboxes {
        flex-direction: column;
        gap: 8px;
    }
}
