/**
 * @file
 * Visual styles for form components.
 */

/* Elementos.  */
input, textarea, select {
  color: var(--brand-color-blue);
  border: 1px solid var(--brand-color-gray);
  outline: none;
}
button, .button {
  color: #FFF;
  background-color:  var(--brand-color-blue-dark);
  background-image: url(../../images/icons/arrow-right-white.png);
  background-repeat: no-repeat;
  background-position: 85% center;
  text-align: center;
  padding: 11px 55px 11px 24px;
}
button, input {
  font-size: 1em;
  line-height: 1.5rem;
  font-family: poppins, sans-serif;
  box-sizing: border-box;
}
button:hover, .button:hover {
  background-color:  var(--brand-color-blue);
  cursor: pointer;
}
input {
  padding: 11px 24px;
}
input:hover, input:focus, input:active,
textarea:hover, textarea:focus, textarea:active{
  border-color: var(--brand-color-blue);
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--brand-color-gray);
  opacity: 1; /* Firefox */
}
::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--brand-color-gray);
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--brand-color-gray);
}
select {
  padding: 14px 24px;
  width: 100%;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url(../../images/icons/chevron-down.svg);
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: 1.6rem auto, 100%;
  color: var(--brand-color-gray);
}
select::-ms-expand {
  display: none; /* IE */
}
select.is-open {
  background-image: url(../../images/icons/chevron-up.svg);
}

select:focus {
  border-color: var(--brand-color-blue);
}
select option {
  color: var(--brand-color-blue);
}

.form-textarea-wrapper textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 13px 24px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid var(--brand-color-blue);
  -webkit-text-fill-color: var(--brand-color-blue);
  -webkit-box-shadow: none;
  transition: background-color 5000s ease-in-out 0s;
}
.form-checkbox {
  width: 17px;
  height: 17px;
}
label.error{
  display: block;
  color: var(--brand-color-orange);
  font-size: 0.75rem;
  line-height: 1rem;
}

/*  Campos. */
.form-tooltip .form-item {
  position: relative;
}
.form-tooltip-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: absolute;
  right: 16px;
  top: 12px;
  background-image: url(../../images/icons/info.svg);
  background-repeat: no-repeat;

}
.error + .form-tooltip-icon {
  background-image: url(../../images/icons/info-orange.svg);
  background-repeat: no-repeat;

}
form .field-multiple-table {
  margin: 0;
}
form .field-multiple-table .field-multiple-drag {
  width: 30px;
  padding-right: 0; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag {
  padding-left: 0;
}
form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0.5em; /* LTR */
}
[dir="rtl"] form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0;
  padding-left: 0.5em;
}
form .field-add-more-submit {
  margin: 0.5em 0 0;
}

/**
 * Marco generado por Form API.
 */
.form-item,
.form-actions {
  margin-top: 1em;
  margin-bottom: 1em;
}
tr.odd .form-item,
tr.even .form-item {
  margin-top: 0;
  margin-bottom: 0;
}
.form-composite > .fieldset-wrapper > .description,
.form-item .description {
  font-size: 0.85em;
}
label.option {
  display: inline-block;
  margin-left: 5px;
  font-weight: normal;
  width: 85%;
  vertical-align: text-top;
  color: var(--brand-color-gray-dark);
}
.form-composite > legend,
.label {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: bold;
}
.form-checkboxes .form-item,
.form-radios .form-item {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 2.4em; /* LTR */
}
[dir="rtl"] .form-type-radio .description,
[dir="rtl"] .form-type-checkbox .description {
  margin-right: 2.4em;
  margin-left: 0;
}
.marker {
  color: #e00;
}
.form-required:after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  /* Utilizar una imagen de fondo para evitar que los lectores de pantalla anuncien el texto. */
  background-image: url(../../images/icons/required.svg);
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
abbr.tabledrag-changed,
abbr.ajax-changed {
  border-bottom: none;
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border: 2px solid var(--brand-color-orange);
}

.form-type-checkbox {
  line-height: 1.4em;
  font-size: 0.75rem;
}


/* Mensajes de error. */
.form-item--error-message:before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: "";
  vertical-align: sub;
  background: url(../../images/icons/error.svg) no-repeat;
  background-size: contain;
}

form .captcha {
  margin-bottom: 30px;
}
