/**
 * Estilos específicos para el Wizard de Cotización
 * 
 * @package Ratti_Theme
 */

/* Sección del wizard */
.wizard-section {
    padding: 40px 20px;
    background: #f7f8f8;
    min-height: 600px;
}

.wizard-section .container {
    max-width: 1000px;
}

/* Barra de progreso */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

.progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: 700;
    transition: all 0.3s ease;
}

.progress-step.active .progress-number {
    background: #2E4C5C;
    color: #fff;
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.progress-step.active .progress-label {
    color: #2E4C5C;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    margin-bottom: 35px;
    transition: background 0.3s ease;
}

.progress-line.active {
    background: #2E4C5C;
}

/* Contenido del paso */
.wizard-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wizard-step {
    width: 100%;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2E4C5C;
}

.step-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Step 1: Layout de dos columnas */
.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .step-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.step-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-right {
    display: flex;
    flex-direction: column;
}

/* Secciones de formulario */
.form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2E4C5C;
    font-size: 18px;
}

/* Controles de contador */
.counter-group {
    margin-bottom: 20px;
}

.counter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #2E4C5C;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: #2E4C5C;
    color: #fff;
    border-color: #2E4C5C;
}

.counter-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

/* Contenedor de edades */
.ages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.age-input-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.age-input-wrapper input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Panel de cotización */
.quote-panel {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #2E4C5C;
    position: sticky;
    top: 20px;
}

.quote-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2E4C5C;
    font-size: 18px;
}

.quote-breakdown {
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #2E4C5C;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #2E4C5C;
    margin-top: 10px;
    font-weight: 700;
    font-size: 18px;
}

.quote-total span:last-child {
    color: #D07A63;
    font-size: 24px;
}

/* Formularios step 2, 3, etc. */
.step-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E4C5C;
    box-shadow: 0 0 0 3px rgba(46, 76, 92, 0.1);
}

/* Botones de navegación */
.wizard-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 30px 0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2E4C5C;
    color: #fff;
}

.btn-primary:hover {
    background: #1f3a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 76, 92, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Mensaje de error */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Resumen final */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.summary-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2E4C5C;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-item span:last-child {
    font-weight: 600;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #2E4C5C;
    font-weight: 700;
    font-size: 18px;
}

.price-total strong:last-child {
    color: #D07A63;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .wizard-content {
        padding: 30px;
    }

    .quote-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .wizard-section {
        padding: 20px;
    }

    .wizard-content {
        padding: 20px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .wizard-progress {
        margin-bottom: 30px;
        padding: 15px;
    }

    .progress-label {
        font-size: 10px;
    }

    .wizard-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
