/* =========================================================
   PedroSoft Hoja de Reclamación – CSS encapsulado
   Todo empieza por #pshr-app para no filtrar al tema
   ========================================================= */
/* =========================================================
   RESET DE CONTROLES: Anula estilos del tema
   ========================================================= */

/* 1. Forzar el borde y fondo en inputs, selects y textareas */
#pshr-app input[type="text"],
#pshr-app input[type="email"],
#pshr-app input[type="number"],
#pshr-app input[type="checkbox"],
#pshr-app input[type="radio"],
#pshr-app select,
#pshr-app textarea {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: inherit !important;
    color: #212529 !important;
    transition: border-color 0.15s ease-in-out !important;
}

/* 2. Arreglar específicamente el readonly (que tu tema está rompiendo) */
#pshr-app input:read-only,
#pshr-app input[readonly] {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    cursor: not-allowed !important;
}

/* 3. Los checkboxes y radios necesitan su propio trato (no deben tener padding ni fondo) */
#pshr-app input[type="checkbox"],
#pshr-app input[type="radio"] {
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 3px 5px 0 0 !important;
    border: 1px solid #767676 !important;
    accent-color: #dc3545 !important; /* Color del check */
}

/* 4. Botones */
#pshr-app button,
#pshr-app .pshr-btn {
    background-color: #dc3545 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 10px 34px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.2 !important;
}

#pshr-app button:hover,
#pshr-app .pshr-btn:hover {
    background-color: #b02a37 !important;
}

/* 5. Focus (cuando el usuario hace clic en un input) */
#pshr-app input:focus,
#pshr-app select:focus,
#pshr-app textarea:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Título principal */
#pshr-app h2.pshr-title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #212529 !important;
    text-align: center !important;
    margin: 10px 0 25px 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* El subtítulo en inglés (Book of Claims) */
#pshr-app h2.pshr-title small {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6c757d !important;
    margin-top: 6px !important;
}

/* Resetear los textos internos (hr, em, strong) por si el tema los toca */
#pshr-app .pshr-title em,
#pshr-app .pshr-title cite,
#pshr-app .pshr-title span {
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: inherit !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/**/

#pshr-app,
#pshr-app *,
#pshr-app *::before,
#pshr-app *::after {
    box-sizing: border-box;
}

#pshr-app {
    max-width: 900px;
    margin: 20px auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #212529;
    line-height: 1.5;
    font-size: 16px;
}

#pshr-app .pshr-logo {
    display: flex;
    justify-content: center; /* Centra el logo horizontalmente */
    align-items: center;     /* Centra el logo verticalmente */
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#pshr-app .pshr-ruc { font-size: 14px; color: #666; }

#pshr-app .pshr-title {
    text-align: center;
    margin: 10px 0 25px;
    font-size: 24px;
    color: #212529;
    font-weight: 700;
}
#pshr-app .pshr-title small { font-size: 14px; color: #6c757d; font-weight: 400; }

#pshr-app .pshr-card {
    background: #F5F5F5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 0 0 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#pshr-app .pshr-hr {
    text-align: center;
    position: relative;
    margin: 4px 0 18px;
}
#pshr-app .pshr-hr:before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, #818078, transparent);
}
#pshr-app .pshr-hr span {
    position: relative;
    background: #F5F5F5;
    padding: 0 12px;
    font-weight: 700;
    font-size: 14px;
}


#pshr-app .pshr-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 0 0 14px 0;
}
#pshr-app .pshr-row > label {
    flex: 0 0 280px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    padding-top: 8px;
    margin: 0;
    color: #212529;
}
#pshr-app .pshr-row > label em { font-weight: 400; color: #555; font-style: italic; }
#pshr-app .pshr-row > input,
#pshr-app .pshr-row > select,
#pshr-app .pshr-row > textarea,
#pshr-app .pshr-row > div { flex: 1 1 auto; }

#pshr-app .pshr-row input[type=text],
#pshr-app .pshr-row input[type=email],
#pshr-app .pshr-row select,
#pshr-app .pshr-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
    line-height: 1.4;
    margin: 0;
    box-shadow: none;
    outline: none;
    height: auto;
}
#pshr-app .pshr-row textarea { resize: vertical; }
#pshr-app .pshr-row select { cursor: pointer; height: auto; }
#pshr-app .pshr-static { padding-top: 8px; font-size: 14px; color: #333; }

#pshr-app .pshr-docradios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}
#pshr-app .pshr-docradios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

#pshr-app .pshr-tipos-help {
    font-size: 11px;
    line-height: 1.5;
    color: #444;
    margin-top: 8px;
}

#pshr-app .pshr-textarea-wrap { position: relative; }
#pshr-app .pshr-counter {
    position: absolute;
    right: 8px;
    bottom: 6px;
    font-size: 11px;
    color: #888;
    pointer-events: none;
}
#pshr-app .pshr-counter.low { color: #d32f2f; }

#pshr-app .pshr-note { font-size: 12px; margin: 6px 0 0; }
#pshr-app .req { color: #dc3545; font-weight: 700; }

#pshr-app .pshr-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    margin: 0 0 15px 0;
    cursor: pointer;
    font-weight: 400;
}
#pshr-app .pshr-check input { margin: 3px 0 0 0; }

#pshr-app .pshr-legal {
    font-size: 11px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 18px 0;
}

#pshr-app .pshr-captcha { margin-bottom: 15px; }

#pshr-app .pshr-submit { text-align: center; margin-top: 6px; }
#pshr-app .pshr-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 34px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none;
}
#pshr-app .pshr-btn:hover { background: #b02a37; }
#pshr-app .pshr-btn:disabled { opacity: .6; cursor: not-allowed; }

#pshr-app .pshr-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: 6px; display: none; font-size: 14px; }
#pshr-app .pshr-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
#pshr-app .pshr-msg.error   { background: #ffebee; color: #c62828; display: block; }

#pshr-app .pshr-row input.error,
#pshr-app .pshr-row select.error,
#pshr-app .pshr-row textarea.error {
    border-color: #dc3545;
    background: #ffe6e6;
}
#pshr-app .pshr-row .err-msg { color: #dc3545; font-size: 12px; margin-top: 4px; display: block; }

@media (max-width: 720px) {
    #pshr-app .pshr-row { flex-direction: column; }
    #pshr-app .pshr-row > label { text-align: left; flex: auto; padding-top: 0; }
}