@import url("./_vars.css");
@import url("./_fonts.css");

#head_nav,
#body-survey {
  font-family: arial-rounded;
  color: var(--jmv-dark-1);
  --h-logo-mobile: 45px;
}

#head_nav {
  height: 100px;
  border-bottom: 10px solid #e87722;
}
.content-nav {
  display: flex;
  height: 100%;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.title {
  font-weight: bold;
  margin: 0;
  padding: 0 24px;
  font-size: 22px;
  -ms-flex-item-align: center !important;
  align-self: center !important;
  text-align: center !important;
}

.survey-title-question {
  font-size: 1rem;
  font-weight: bold;
}

.question {
  border-bottom: 1px solid var(--jmv-global-color-primary);
  padding: 20px 20px 40px 20px;
}

.question:first-child {
  padding-top: 0;
}

.question:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.question-list-decimal {
  font-weight: bold;
  list-style: decimal !important;
}

.question-form-check {
  width: 100%;
  display: flex;
  padding: 3px 0;
}

.question-form-check input {
  display: none;
  visibility: hidden;
}

.question-form-check input[type="radio"] + label {
  display: inline-block;
  background: url("../icons/radio_unchecked.svg") center left no-repeat;
  padding-left: 30px;
  word-break: break-word;
  font-weight: 400;
  text-align: left;
  color: #595959;
  cursor: pointer;
  margin: 0;
}

.question-form-check input[type="radio"]:checked + label {
  background: url("../icons/radio_checked.svg") center left no-repeat;
}

.question-form-check input[type="checkbox"] + label {
  display: inline-block;
  background: url("../icons/checkbox_unchecked.png") center left no-repeat;
  padding-left: 30px;
  word-break: break-word;
  font-weight: 400;
  text-align: left;
  color: #595959;
  cursor: pointer;
  margin: 0;
  background-size: 20px !important;
}

.question-form-check input[type="checkbox"]:checked + label {
  background: url("../icons/checkbox_checked.png") center left no-repeat;
}

.question-form-check textarea.form-control::placeholder {
  color: darkgray;
}

.question-empty {
  padding: 20px 20px 40px 20px !important;
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
  border-radius: 5px;
}

/* SOLO EFECTOS DE COLOR Y HOVER */
.btn-encuesta {
  background: #fd6e00;
  color: #000;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(253, 110, 0, 0.4);
}

.btn-encuesta:hover {
  background: #ff7f1f;
  box-shadow: 0 8px 20px rgba(253, 110, 0, 0.6);
}

.card {
  border: 1px solid var(--jmv-global-color-primary);
}
.border-right {
  border-right: 1px solid var(--jmv-global-color-primary) !important;
}

.survey-completed .submit-form {
  display: block !important;
}
.survey-completed .check_answers_empty {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal .modal-dialog {
  position: relative;
  z-index: 2147483001;
}

.modal .modal-content {
  position: relative;
  z-index: 2147483002;
}

.link2 {
  color: #e87722;
  text-decoration: none;
}
.form-control {
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
}

#modal-register .jmv-info-text {
  color: #6c757d !important;
  font-size: 12px !important;
}

@media (max-width: 767.98px) {
  #head_nav {
    height: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
  }
  #head_nav .logo {
    height: var(--h-logo-mobile);
    margin: auto;
  }
  #head_nav .content-nav {
    flex-direction: column;
  }
  #head_nav .title {
    font-size: 18px;
    margin: 8px 0 0 0;
  }
  .card-body {
    padding-right: 10px;
  }
  .question-list-decimal {
    padding-right: 5px;
    border-right: unset !important;
  }
  .question {
    padding: 20px 10px 20px 10px;
  }

  .eb-progress-bar-wrapper {
    /* position: unset; */
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }
  #progress-mobile {
    position: sticky;
    top: calc(var(--h-logo-mobile) + 0.5rem);
    z-index: 1;
    background: #fff;
    border-bottom: 10px solid #e87722;
    margin: 0 -15px 10px;
  }
  #modal-register.modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
  }

  #modal-register.modal .modal-dialog {
    position: relative;
    z-index: 2147483001;
  }
}
