/* =====================================================
   PLATAFORMA PQRS FOE - Estilos Públicos
   Paleta: #2D5A9B (Azul) | #7AB535 (Verde) | #1A1A2E (Oscuro)
   ===================================================== */

:root {
    --foe-blue: #2D5A9B;
    --foe-blue-dark: #1E3F6E;
    --foe-blue-light: #4A7BC8;
    --foe-green: #7AB535;
    --foe-green-dark: #5E8E28;
    --foe-green-light: #96D44E;
    --foe-dark: #1A1A2E;
    --foe-gray: #F4F6F9;
    --foe-gray-medium: #D0D5DD;
    --foe-text: #333333;
    --foe-text-light: #666666;
}

/* === RESET & BASE === */
body {
    background-color: var(--foe-gray);
    color: var(--foe-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
.foe-header {
    background: linear-gradient(135deg, var(--foe-blue) 0%, var(--foe-blue-dark) 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.foe-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.foe-header .navbar-brand img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    background: white;
    padding: 4px;
}

.foe-header .brand-text {
    color: #ffffff;
}

.foe-header .brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.foe-header .brand-text small {
    font-size: 0.78rem;
    opacity: 0.85;
}

.foe-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.foe-header .nav-link:hover,
.foe-header .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15);
}

/* === MAIN CONTENT === */
.foe-main {
    flex: 1;
    padding: 30px 0;
}

/* === CARD PRINCIPAL === */
.foe-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: none;
    overflow: hidden;
}

.foe-card .card-header {
    background: linear-gradient(135deg, var(--foe-blue) 0%, var(--foe-blue-light) 100%);
    color: #ffffff;
    padding: 20px 25px;
    border: none;
}

.foe-card .card-header h2,
.foe-card .card-header h3 {
    margin: 0;
    font-weight: 600;
}

.foe-card .card-header p {
    margin: 5px 0 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.foe-card .card-body {
    padding: 25px;
}

/* === FORMULARIO === */
.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--foe-dark);
    margin-bottom: 4px;
}

.form-label .text-danger {
    font-weight: 400;
}

.form-control,
.form-select {
    border: 1.5px solid var(--foe-gray-medium);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--foe-blue);
    box-shadow: 0 0 0 3px rgba(45, 90, 155, 0.12);
}

.form-text {
    font-size: 0.8rem;
    color: var(--foe-text-light);
}

textarea.form-control {
    min-height: 120px;
}

/* === SECCIÓN DEL FORMULARIO === */
.form-section {
    background: var(--foe-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foe-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--foe-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === BOTONES === */
.btn-foe-primary {
    background: linear-gradient(135deg, var(--foe-blue) 0%, var(--foe-blue-light) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(45, 90, 155, 0.3);
}

.btn-foe-primary:hover {
    background: linear-gradient(135deg, var(--foe-blue-dark) 0%, var(--foe-blue) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(45, 90, 155, 0.4);
}

.btn-foe-green {
    background: linear-gradient(135deg, var(--foe-green) 0%, var(--foe-green-light) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-foe-green:hover {
    background: linear-gradient(135deg, var(--foe-green-dark) 0%, var(--foe-green) 100%);
    color: #ffffff;
}

/* === TIPO PQRS SELECTOR === */
.pqrs-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.pqrs-type-option {
    position: relative;
}

.pqrs-type-option input {
    position: absolute;
    opacity: 0;
}

.pqrs-type-option label {
    display: block;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid var(--foe-gray-medium);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}

.pqrs-type-option label .icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.pqrs-type-option input:checked + label {
    border-color: var(--foe-blue);
    background: rgba(45, 90, 155, 0.08);
    color: var(--foe-blue);
    box-shadow: 0 0 0 3px rgba(45, 90, 155, 0.12);
}

/* === CONSULTA RADICADO === */
.consulta-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.consulta-box .search-input-group {
    max-width: 450px;
    margin: 25px auto;
}

.result-card {
    text-align: left;
    margin-top: 30px;
}

.result-card .detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-card .detail-label {
    font-weight: 600;
    color: var(--foe-text-light);
    min-width: 180px;
}

/* === CAPTCHA === */
.captcha-box {
    background: var(--foe-gray);
    border: 2px solid var(--foe-gray-medium);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--foe-blue);
    white-space: nowrap;
}

/* === ALERTAS DE ÉXITO === */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--foe-green);
    margin-bottom: 15px;
}

.radicado-display {
    background: var(--foe-gray);
    border: 2px dashed var(--foe-blue);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 380px;
}

.radicado-display .radicado-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--foe-blue);
    letter-spacing: 1px;
}

/* === FOOTER === */
.foe-footer {
    background: var(--foe-dark);
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}

.foe-footer a {
    color: var(--foe-green-light);
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .foe-card .card-body {
        padding: 18px;
    }
    
    .pqrs-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .consulta-box {
        padding: 25px 15px;
    }
    
    .result-card .detail-row {
        flex-direction: column;
    }
    
    .result-card .detail-label {
        min-width: auto;
        margin-bottom: 3px;
    }
}

/* === POLICY CHECKBOX === */
.policy-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 15px;
}

.policy-box .form-check-label {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === STATUS TIMELINE (consulta) === */
.status-timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--foe-gray-medium);
}

.timeline-item {
    position: relative;
    padding: 10px 0 10px 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--foe-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--foe-blue);
}

.timeline-item.active::before {
    background: var(--foe-green);
    box-shadow: 0 0 0 2px var(--foe-green);
}
