/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

.lr-form-wrapper {
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: transparent;
    box-sizing: border-box;
}

.lr-form-wrapper *,
.lr-form-wrapper *::before,
.lr-form-wrapper *::after {
    box-sizing: border-box;
}

.lr-form-container {
    max-width: 850px;
    /* Incrementado para mejor organización */
    width: 100%;
    padding: 0;
    /* Quitamos padding aquí para manejarlo por secciones */
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabecera Tipo Bsale - Estilos de Máxima Especificidad */
.lr-form-wrapper .lr-form-container .lr-entity-header {
    background-color: #4b5563 !important;
    background: #4b5563 !important;
    color: #ffffff !important;
    padding: 35px 45px !important;
    display: block !important;
    border-bottom: 4px solid rgba(0, 0, 0, 0.15) !important;
}

.lr-header-main-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    gap: 20px !important;
}

.lr-logo-side {
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
}

.lr-entity-logo {
    max-height: 100px !important;
    max-width: 200px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

.lr-logo-placeholder {
    width: 100px !important;
    height: 100px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    color: #fff !important;
}

.lr-title-side {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.lr-text-wrap {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.lr-label-top {
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    color: #ffffff !important;
}

.lr-label-main {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
}

.lr-header-separator {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    margin: 0 auto 20px auto !important;
    width: 100% !important;
}

.lr-header-info-block {
    text-align: center !important;
    color: #ffffff !important;
    max-width: 750px !important;
    margin: 0 auto !important;
}

.lr-p-main {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
}

.lr-p-sub {
    font-size: 0.82rem !important;
    opacity: 0.85 !important;
    margin: 0 0 15px 0 !important;
    color: #ffffff !important;
}

.lr-entity-data {
    font-size: 0.95rem !important;
    color: #ffffff !important;
}

.lr-entity-data p {
    margin: 4px 0 !important;
    color: #ffffff !important;
}

#lr-complaint-form {
    padding: 40px;
}

.lr-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.lr-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid var(--lr-accent, #6366f1);
    margin-bottom: 25px;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lr-section-subtitle {
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #34495e;
    font-size: 1rem;
}

.lr-field-group {
    margin-bottom: 15px;
}

.lr-field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.lr-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.lr-field-group input,
.lr-field-group select,
.lr-field-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
    color: #374151;
}

.lr-radio-toggle-group {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    background: #f9fafb;
    padding: 10px 15px;
    border-radius: 8px;
}

.lr-radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
}

/* Resto de estilos... */
.lr-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
}

.lr-step.active {
    background: var(--lr-accent, #6366f1);
    color: #fff;
}

.lr-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

.lr-next-btn,
.lr-submit-btn {
    background: var(--lr-accent, #6366f1);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.lr-prev-btn {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.lr-entity-footer {
    background: #f8fafc;
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.lr-minor-logic {
    margin: 25px 0;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.lr-char-count {
    text-align: right;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .lr-entity-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 10px;
    }

    .lr-form-meta {
        text-align: center;
    }

    #lr-complaint-form {
        padding: 20px;
    }
}