/* ==========================================================================
   Estilos Globales - Libro de Reclamaciones Cell Market Shop
   ========================================================================== */

.complaints-page {
    background-color: #f8f9fa;
    padding: 60px 20px;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.complaint-container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --- Cabecera y Pasos --- */
.complaint-header {
    background: #111; /* Negro profundo */
    color: #fff;
    padding: 45px 30px;
    text-align: center;
}

.complaint-header h1 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.complaint-header p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* Línea conectora entre pasos */
.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    z-index: 2;
    border: 2px solid #333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    background: #ff8a00; /* Naranja CellMarket */
    color: #fff;
    border-color: #ff8a00;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.4);
}

/* --- Formulario y Secciones --- */
.complaint-form {
    padding: 40px 50px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

/* --- Estilos de Inputs --- */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.input-flat {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e1e1e1;
    border-radius: 10px;
    background: #fcfcfc;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-flat:focus {
    border-color: #ff8a00;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1);
}

.input-flat[readonly] {
    background-color: #f1f1f1;
    cursor: not-allowed;
    color: #777;
}

.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Sección Apoderado --- */
#apoderado-section {
    border-left: 4px solid #ff8a00 !important;
    background: #fff9f2 !important;
    padding: 25px !important;
    margin: 30px 0;
}

/* --- Botones --- */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-next, .btn-send {
    background: #111;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    flex: 2;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-next:hover, .btn-send:hover {
    background: #ff8a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
}

.btn-prev {
    background: #eee;
    color: #555;
    border: none;
    padding: 16px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: #e2e2e2;
    color: #222;
}

/* Estilo para errores de validación (JS) */
.input-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .complaint-form {
        padding: 30px 20px;
    }
    
    .row-grid {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        gap: 30px;
    }
    
    .btn-group {
        flex-direction: column-reverse;
    }
    
    .btn-prev, .btn-next, .btn-send {
        width: 100%;
    }
}

/* --- Elementos de carga --- */
.fa-spin {
    margin-right: 8px;
}