/* Основные стили калькулятора */
.calc-main-title {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 10px;
}

.calc-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 0;
    padding: 0 10px;
}

.calc-container {
    margin-top: 20px;
}

.calc-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    color: #333;
    margin: 0 5px;
}

.calc-step {
    transition: all 0.3s ease;
}

/* Стили для шага 1 - Площадь */
.step-title {
    color: #448dfb;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.area-display {
    text-align: center;
    margin-bottom: 15px;
}

.area-value {
    font-weight: bold;
    color: #448dfb;
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.area-label {
    color: #666;
    font-size: 14px;
}

.area-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

/* Стили для шага 2 - Тип уборки */
.cleaning-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clean-option-wrapper {
    display: block;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.clean-radio {
    display: none;
}

.clean-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.clean-option:hover {
    border-color: #448dfb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.clean-option.active {
    border-color: #448dfb;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.option-content {
    flex: 1;
    margin-right: 15px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.option-header h5 {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    flex: 1;
}

.price {
    font-weight: bold;
    color: #448dfb;
    font-size: 16px;
    margin-left: 10px;
    white-space: nowrap;
}

.clean-option ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.clean-option li {
    padding: 3px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    text-align: left;
}

.clean-option .selection-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 3px;
}

.clean-option.active .selection-indicator {
    border-color: #448dfb;
    background: #448dfb;
}

.clean-option .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clean-option.active .checkmark {
    opacity: 1;
}

/* Стили для шага 3 - Дополнительные услуги */
.step-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.additional-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-option-wrapper {
    display: block;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.service-checkbox {
    display: none;
}

.service-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-option:hover {
    border-color: #448dfb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.service-option.active {
    border-color: #448dfb;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    margin-right: 15px;
}

.service-info {
    flex: 1;
}

.service-info h5 {
    margin: 0 0 5px 0;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.service-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.service-price {
    font-weight: bold;
    color: #448dfb;
    font-size: 16px;
    margin-left: 10px;
    white-space: nowrap;
}

.service-option .selection-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-option.active .selection-indicator {
    border-color: #448dfb;
    background: #448dfb;
}

.service-option .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-option.active .checkmark {
    opacity: 1;
}

/* Стили для шага 4 - Результат */
.calculation-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.calculation-row.total h2 {
    font-size: 17px;
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px dashed #dee2e6;
    margin-bottom: 12px;
}

.calc-label {
    flex: 1;
    word-break: break-word;
    padding-right: 5px;
    min-width: 0;
}

.calc-value {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 5px;
    flex-shrink: 0;
}

.calc-value.total {
    font-weight: bold;
}

.discount-block {
    background: linear-gradient(135deg, #ffeb3b 0%, #fbc02d 100%);
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: center;
    border: 1px solid #fdd835;
}

.discount-title {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.discount-price {
    font-size: 22px;
    font-weight: bold;
    color: #d81b60;
}

/* Стили форм и кнопок */
.form-section {
    text-align: center;
    margin-top: 20px;
}

.form-description {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.4;
    color: #555;
}

.calc-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    min-width: 0;
}

.form-input::placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    cursor: pointer;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.recalculate-section {
    text-align: center;
    margin-top: 15px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-next {
    background: #448dfb;
    color: white;
    flex: 1;
}

.btn-prev {
    background: #f8f9fa;
    color: #333;
    flex: 1;
}

/* Стили для ползунка */
.slider {
    width: 100%;
    margin: 15px 0;
    -webkit-appearance: none;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #448dfb;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .calc-main-title {
        font-size: 20px;
        padding: 0 5px;
    }
    
    .calc-subtitle {
        font-size: 14px;
        padding: 0 5px;
    }
    
    .calc-wrapper {
        padding: 15px;
        margin: 0 3px;
    }
    
    .step-title {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    /* Шаг 1 - Метки площади в 2 раза меньше */
    .area-labels {
        font-size: 10px !important;
    }
    
    .area-value {
        font-size: 22px;
    }
    
    .area-label {
        font-size: 13px;
    }
    
    /* Шаг 2 и 3 - Адаптация карточек */
    .clean-option, .service-option {
        padding: 12px;
        flex-direction: column;
    }
    
    .option-content, .service-content {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .option-header, .service-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price, .service-price {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .clean-option .selection-indicator,
    .service-option .selection-indicator {
        align-self: flex-end;
        margin-top: -25px;
    }
    
    /* Шаг 4 - Уменьшение текста расчета */
    .calculation-row {
        font-size: 13px !important;
    }
    
    .calculation-row.total {
        font-size: 15px !important;
    }
    
    .discount-title {
        font-size: 12px !important;
    }
    
    .discount-price {
        font-size: 18px !important;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .form-input {
        padding: 10px;
        font-size: 15px;
        min-width: 0;
    }
    
    .form-input::placeholder {
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .calc-main-title {
        font-size: 18px;
    }
    
    .calc-subtitle {
        font-size: 13px;
    }
    
    .calc-wrapper {
        padding: 12px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    /* Шаг 1 - Еще меньше метки */
    .area-labels {
        font-size: 9px !important;
    }
    
    .area-value {
        font-size: 20px;
    }
    
    /* Шаг 4 - Еще меньше текст */
    .calculation-row {
        font-size: 12px !important;
    }
    
    .calculation-row.total {
        font-size: 14px !important;
    }
    
    .discount-title {
        font-size: 11px !important;
    }
    
    .discount-price {
        font-size: 16px !important;
    }
    
    .form-input::placeholder {
        font-size: 13px;
    }
    
    .btn {
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .calc-main-title {
        font-size: 16px;
    }
    
    .calc-wrapper {
        padding: 10px;
    }
    
    /* Шаг 1 - Минимальные метки */
    .area-labels {
        font-size: 8px !important;
    }
    
    .area-value {
        font-size: 18px;
    }
    
    /* Шаг 4 - Минимальный текст */
    .calculation-row {
        font-size: 11px !important;
    }
    
    .calculation-row.total {
        font-size: 13px !important;
    }
    
    .discount-title {
        font-size: 10px !important;
    }
    
    .discount-price {
        font-size: 14px !important;
    }
    
    /* ТОЛЬКО ЭТО ИЗМЕНЕНИЕ ДЛЯ ПОЛЯ "ВАШЕ ИМЯ" */
    .form-input {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .form-input::placeholder {
        font-size: 12px;
        white-space: normal; /* Разрешаем перенос если очень нужно */
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Стили для десктопов */
@media (min-width: 769px) {
    .clean-option .selection-indicator,
    .service-option .selection-indicator {
        margin-top: 0;
    }
    
    .option-header {
        align-items: center;
    }
    
    .service-content {
        align-items: center;
    }
    
    /* Выравнивание текста слева на ПК для шага 2 */
    .clean-option ul {
        text-align: left;
    }
    
    .clean-option li {
        text-align: left;
    }
    
    .option-content {
        text-align: left;
    }
}


.form-input {
    min-width: 200px !important;
    width: 100% !important;
}

.form-input::placeholder {
    white-space: nowrap !important;
    text-overflow: unset !important;
    overflow: visible !important;
}
