/* Estilos generales del cotizador */
.letras-cotizador-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Barra de progreso de pasos */
.cotizador-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    counter-reset: step;
}

.cotizador-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #f0f0f0;
    z-index: 1;
    border-radius: 2px;
}

.step {
    position: relative;
    text-align: center;
    z-index: 2;
    flex: 1;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background-color: #FFD700; /* Color base no seleccionado */
    color: #333;
    font-weight: bold;
    border-radius: 50%;
    border: 3px solid #FFD700;
    transition: all 0.3s ease;
}

.step.active::before {
    background-color: #E5A65E; /* Color seleccionado */
    border-color: #E5A65E;
    color: white;
}

.step.completed::before {
    background-color: #E5A65E;
    border-color: #E5A65E;
    color: white;
}

.step span {
    display: block;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.step.active span, .step.completed span {
    color: #333;
    font-weight: 600;
}

/* Formulario */
.form-step {
    display: none;
    padding: 25px;
    background: white;
    border-radius: 8px;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

/* Campos de entrada */
input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus, select:focus, textarea:focus {
    border-color: #E5A65E;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 166, 94, 0.2);
}

/* Radio buttons y checkboxes personalizados */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.radio-group label:hover {
    border-color: #EABE3F;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + span {
    color: #333;
}

.radio-group input[type="radio"]:checked + span::before {
    background-color: #E5A65E;
    border-color: #E5A65E;
}

.radio-group span {
    display: flex;
    align-items: center;
    width: 100%;
}

.radio-group span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Botones */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.prev-step {
    background-color: #f0f0f0;
    color: #666;
}

.prev-step:hover {
    background-color: #e0e0e0;
}

.next-step, .submit-quote {
    background-color: #FFD700; /* Color base */
    color: #333;
}

.next-step:hover, .submit-quote:hover {
    background-color: #EABE3F; /* Color hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.submit-quote {
    background-color: #E5A65E; /* Color seleccionado/activo */
    color: white;
}

/* Validación */
input.error, select.error, textarea.error {
    border-color: #e74c3c;
}

input.error:focus, select.error:focus, textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Resumen de cotización */
.summary-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.summary-section h4 {
    color: #E5A65E;
    margin-bottom: 15px;
    font-size: 18px;
}

.summary-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .cotizador-steps {
        flex-direction: column;
    }
    
    .cotizador-steps::before {
        display: none;
    }
    
    .step {
        text-align: left;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }
    
    .step::before {
        margin: 0 15px 0 0;
    }
    
    .radio-group label {
        flex: 1 0 100%;
    }
    
    .step-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}