/* Основные стили для калькулятора */
#terra-roller-calculator * {
    box-sizing: border-box;
}

#terra-roller-calculator {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.trc-container {
    position: relative;
    min-height: 400px;
}

/* Индикатор шагов */
.trc-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

.trc-steps-line {
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e8e8e8;
    transform: translateY(-50%);
    z-index: 0;
}

.trc-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.trc-step.active {
    background: #b7ee2e;
    color: #222;
    box-shadow: 0 0 0 6px rgba(183, 238, 46, 0.3);
}

.trc-step.completed {
    background: #b7ee2e;
    color: #222;
}

/* Контент шагов */
.trc-step-content {
    display: none;
    animation: trcFadeIn 0.5s ease;
}

.trc-step-content.active {
    display: block;
}

@keyframes trcFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trc-step-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #071f3b;
    margin-bottom: 20px;
}

/* Опции (радио-кнопки) */
.trc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.trc-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.trc-option:hover {
    background: #e9e9e9;
}

.trc-option.active {
    border-color: #b7ee2e;
    background: #f0f9e0;
}

.trc-option input[type="radio"] {
    display: none;
}

.trc-option-group {
    margin-bottom: 20px;
}

.trc-option-label {
    font-weight: 600;
    color: #071f3b;
    margin-bottom: 10px;
}

/* Поля размеров */
.trc-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.trc-field {
    flex: 1 1 200px;
}

.trc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.trc-field input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.trc-field input:focus {
    border-color: #b7ee2e;
    outline: none;
    box-shadow: 0 0 0 4px rgba(183, 238, 46, 0.2);
}

/* Предпросмотр цены */
.trc-price-preview {
    background: #071f3b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0 20px;
}

/* Кнопки */
.trc-next,
.trc-prev {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.trc-next {
    background: #b7ee2e;
    color: #222;
}

.trc-next:hover {
    background: #a6d92a;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(183, 238, 46, 0.4);
}

.trc-prev {
    background: transparent;
    color: #222;
    border: 2px solid #ddd;
}

.trc-prev:hover {
    background: #f0f0f0;
}

/* Результат */
.trc-result {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.trc-result p {
    margin: 5px 0;
    font-size: 16px;
}

#trc-total-price {
    font-size: 28px;
    font-weight: 700;
    color: #071f3b;
}

/* Контакты */
.trc-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trc-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.trc-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.trc-contact-item a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.trc-contact-item a:hover {
    text-decoration: underline;
}

/* WPForms wrapper */
.trc-wpforms-wrapper {
    margin: 20px 0;
}

.trc-error {
    color: #d63638;
    padding: 15px;
    background: #fcf0f0;
    border-radius: 8px;
    border-left: 4px solid #d63638;
}

/* Адаптив */
@media (max-width: 768px) {
    #terra-roller-calculator {
        padding: 20px;
        margin: 15px;
    }
    
    .trc-step {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .trc-step-content h2 {
        font-size: 20px;
    }
    
    .trc-option {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .trc-price-preview {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .trc-next,
    .trc-prev {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .trc-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .trc-dimensions {
        flex-direction: column;
        gap: 15px;
    }
    
    .trc-steps-indicator {
        padding: 0 5px;
    }
    
    .trc-steps-line {
        left: 15px;
        right: 15px;
    }
}