/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

/* ==================== */
/* GENERAL STYLES       */
/* ==================== */
body {
    padding-top: 60px !important;
    font-size: 13px;
    line-height: 1.2;
    background: #ffffff;
}

.top-container {
    margin-top: 30px !important;
}

/* ==================== */
/* HEADER & NAVIGATION  */
/* ==================== */
.navbar {
    margin-bottom: 0px;
    background: #ffffff;
    border-bottom: 1px solid #1f66ad;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container>img {
    max-height: 50px;
    padding: 5px;
}

/* Hide language form (already in navigation) */
.form-inline {
    display: none;
}

/* ==================== */
/* SURVEY TITLE & INTRO */
/* ==================== */
.survey-name {
    display: none;
}

.survey-description {
    margin-top: -30px;
    text-align: center;
}

.survey-welcome {
    color: #000;
    font-size: 1.1em;
}

/* ==================== */
/* QUESTION GROUPS      */
/* ==================== */
.space-col {
    margin-top: 1em;
    margin-bottom: 1em;
}

.group-title {
    background: #f8f9fa;
    color: #333;
    padding-top: 10px;
    padding-bottom: 5px;
    border-bottom: 3px solid #1f66ad;
    margin-top: -1em;
    border-radius: 8px 8px 0 0;
}

.group-description {
    margin-top: -1.85em;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    min-height: 0px;
    padding: 1em;
    background: #ffffff;
}

/* ==================== */
/* QUESTIONS            */
/* ==================== */
.question-container {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.question-title-container {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 1.3em;
    font-weight: bold;
    background-color: transparent;
    border-bottom: none; /* Eliminada la línea debajo del título */
}

.question-text {
    text-align: justify;
    padding: 0.5em 0;
}

/* Boilerplate questions (text only) */
.boilerplate {
    border-bottom: none !important; /* Eliminado el borde inferior */
    border-radius: 0;
    background-color: transparent;
}

.boilerplate .question-title-container {
    padding-top: 0.3em;
    padding-bottom: 0em;
    font-size: 1.5em;
    border-bottom: none;
}

.boilerplate .question-text {
    text-align: center;
}

/* ==================== */
/* ANSWERS              */
/* ==================== */
.ls-answers {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: transparent;
}

.answer-container {
    margin-top: 5px;
    background-color: transparent;
}

.numeric-item, .text-item, .list-samechoiceheight {
    margin-bottom: 0.5em;
}

/* Input styles */
.form-control {
    font-size: 1.1em;
    border-radius: 6px;
    background-color: #ffffff;
}

input[type="text"] {
    color: #666666;
    font-size: 1.3em;
    border-color: #ced4da;
    height: 25px;
    padding: 3px 5px;
    border-radius: 6px;
    background-color: #ffffff;
}

/* Radio buttons */
.radio-list li {
    margin-right: 0.5rem;
}

.radio-item {
    margin-bottom: 0.5em;
    padding: 0.3em 0;
}

/* Lists */
ol, ul {
    margin-top: 0;
    margin-bottom: 1px;
}

li.form-group {
    border-top: none; /* Eliminada la línea superior */
    padding: 5px;
    margin-bottom: 0;
    border-radius: 0;
    background-color: transparent;
}

li.form-group:hover {
    background-color: #f8f9fa;
}

/* Tables */
.table {
    margin-left: 0px;
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.table>tbody>tr>td, 
.table>tbody>tr>th, 
.table>tfoot>tr>td, 
.table>tfoot>tr>th, 
.table>thead>tr>td, 
.table>thead>tr>th {
    padding: 4px;
}

.ls-answers .ls-heading th {
    font-weight: bold;
    font-size: 0.9em;
}

.table-col-hover col:hover, 
.table-col-hover col.hover {
    background: #f8f9fa;
}

/* Disabled fields */
.form-control[disabled], 
fieldset[disabled] .form-control {
    cursor: auto;
}

/* ==================== */
/* HELP & VALIDATION    */
/* ==================== */
.question-valid-container, 
.question-help-container {
    border-radius: 0;
    background-color: transparent;
}

.ls-question-help, 
.ls-questionhelp {
    margin-bottom: 0px;
    border-radius: 6px;
    padding: 8px 12px;
}

.ls-question-help {
    color: #19c38c;
    text-align: justify;
    background-color: #f0f9f5;
}

.ls-question-message {
    padding: 0;
}

.ls-questionhelp {
    color: #48a3d0;
    text-align: justify;
    margin-bottom: 8px;
    background-color: #f0f7fb;
}

/* Hide elements */
.asterisk,
.em_numbers_only,
.fa-exclamation-circle,
.ls-em-success {
    display: none;
}

.em_default {
    display: block !important;
}

/* Help question mark */
.dir-ltr .ls-questionhelp {
    margin-left: 0;
}

.ls-questionhelp:before {
    content: none;
}

/* Error messages */
.text-danger {
    color: #ff9090;
    text-align: center;
    background-color: #fff0f0;
    padding: 8px;
    border-radius: 6px;
}

/* ==================== */
/* BUTTONS              */
/* ==================== */
.btn-group-lg>.btn, 
.btn-lg {
    padding: 6px 10px;
    font-size: 1.2em;
    line-height: 1.3333333;
    border-radius: 6px;
}

/* Previous button */
.btn-default:hover,
.btn-default:focus {
    color: #1f66ad;
    background-color: #e6e6e6;
    border-color: #1555eb;
}

.btn-default.active, 
.btn-default:active, 
.open>.dropdown-toggle.btn-default {
    color: #1f66ad;
    background-color: #e6e6e6;
    background-image: none;
    border-color: #1555eb;
}

.btn-default.active.focus, 
.btn-default.active:focus, 
.btn-default.active:hover, 
.btn-default:active.focus, 
.btn-default:active:focus, 
.btn-default:active:hover, 
.open>.dropdown-toggle.btn-default.focus, 
.open>.dropdown-toggle.btn-default:focus, 
.open>.dropdown-toggle.btn-default:hover {
    color: #1f66ad;
    background-color: #d4d4d4;
    border-color: #1f66ad;
}

/* Next button & language change */
.btn-primary, 
.btn-info {
    color: #000;
    background-color: #e3ecf7;
    border-color: #1f66ad;
    border-radius: 6px;
}

.btn-primary:hover, 
.btn-info:hover,
.btn-primary:focus, 
.btn-info:focus {
    color: #fff;
    background-color: #1f66ad;
    border-color: #1a56a0;
}

.btn-primary.active.focus, 
.btn-primary.active:focus, 
.btn-primary.active:hover, 
.btn-primary:active.focus, 
.btn-primary:active:focus, 
.btn-primary:active:hover, 
.open>.dropdown-toggle.btn-primary.focus, 
.open>.dropdown-toggle.btn-primary:focus, 
.open>.dropdown-toggle.btn-primary:hover, 
.btn-info.active.focus, 
.btn-info.active:focus, 
.btn-info.active:hover, 
.btn-info:active.focus, 
.btn-info:active:focus, 
.btn-info:active:hover, 
.open>.dropdown-toggle.btn-info.focus, 
.open>.dropdown-toggle.btn-info:focus, 
.open>.dropdown-toggle.btn-info:hover {
    color: #fff;
    background-color: #1a56a0;
    border-color: #154b8a;
}

/* ==================== */
/* SORTABLE QUESTIONS   */
/* ==================== */
.sortable-list {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
}

.list-group {
    padding: 3px;
    margin-bottom: 0;
}

.list-group-item {
    padding: 5px 8px;
    margin-bottom: 3px;
    border-radius: 6px;
    background-color: #ffffff;
}

.list-group-item:last-child {
    margin-bottom: 3px;
}

/* ==================== */
/* FOOTER               */
/* ==================== */
.lang-eu .eufoot { display: none }
.lang-es .eufoot { display: none }
.lang-fr .eufoot { display: none }
.lang-en .eufoot { display: none }

.eufoot, .esfoot, .frfoot, .enfoot {
    border-top: 1px solid #1f66ad;
    padding: 5px;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    background: #ffffff;
}

/* ==================== */
/* UTILITY CLASSES      */
/* ==================== */
.naranjaik {
    color: #fafafa;
    font-weight: bold;
}

/* ==================== */
/* AUTOADVANCE - INDICADOR */
/* ==================== */
/* Este bloque es visual solamente. El comportamiento se activa por JS externo */

.autoAdvance-active input[type="radio"]:checked + label::after {
    content: " →";
    color: #1f66ad;
    font-weight: bold;
    margin-left: 0.3em;
}
