/* Fonts */
@font-face {
  font-family: 'alverata';
  src:
    url('../fonts/Alverata.woff2') format('woff2'),
    url('../fonts/Alverata.woff') format('woff'),
    url('../fonts/Alverata.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'praxis-next';
  src:
    url('../fonts/PraxisNext-Regular.woff2') format('woff2'),
    url('../fonts/PraxisNext-Regular.woff') format('woff'),
    url('../fonts/PraxisNext-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family:
    'praxis-next',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

::-webkit-input-placeholder {
  color: #6f6f6f;
}

::-moz-placeholder {
  color: #6f6f6f;
}

::-ms-placeholder {
  color: #6f6f6f;
}

::placeholder {
  color: #6f6f6f;
}

input:disabled::-webkit-input-placeholder {
  color: #a2a2a2;
}

input:disabled:-moz-placeholder {
  color: #a2a2a2;
}

input:disabled::-moz-placeholder {
  color: #a2a2a2;
}

input:disabled:-ms-input-placeholder {
  color: #a2a2a2;
}

/* Estilos globales FORMs */
html,
body {
  font-size: 16px;
  color: #1e1e1e;
}

section.forms {
  padding: 24px;

  .asterisco {
    color: #e00034;
  }

  .grid-headerform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    align-items: center;
    margin-bottom: 2.5em;
  }

  h1 {
    font-family: 'alverata';
    font-size: 64;
    line-height: 74px;
    letter-spacing: -4px;
    font-style: normal;
    font-weight: 400;
  }

  h2 {
    font-family: 'alverata';
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1px;
    font-style: normal;
    font-weight: 400;
  }

  p {
    font-family: 'praxis-next';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.2px;
  }

  /* submit botón fijo bottom */
  .CTA {
    grid-column: span 2;
    width: 100%;
    padding-right: 8px;
  }

  .desktop-none {
    display: none;
  }
}

section.forms form {
  padding: 0;
  margin: 24px 0;
  position: relative;

  .grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 2.5em;
  }

  .grid-form > .form-group {
    padding-bottom: 24px;
  }

  p {
    margin-bottom: 0.5rem;
  }

  fieldset {
    border: none;
    display: block;
    width: 100%;
    margin-bottom: 24px;

    legend {
      margin-bottom: 12px;
    }
  }

  /* label */
  .label-forms {
    display: block;
    font-family: 'praxis-next', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #6f6f6f;
    margin-bottom: 8px;
  }

  .label-forms a {
    text-decoration: underline;
    margin-left: 5px;
  }

  .label-forms a:hover {
    color: #8a0013;
  }

  .aviso-privacidad,
  .radiogroup {
    min-height: 70px;
  }

  .aviso-privacidad label,
  .radiogroup label {
    margin-bottom: 0;
  }

  .radiogroup {
    vertical-align: super;
  }

  .radiogroup label {
    margin-bottom: 0;
  }

  .aviso-privacidad,
  .radiogroup {
    display: flex;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aviso-privacidad input,
  .radiogroup input {
    vertical-align: middle;
  }

  .aviso-privacidad label,
  .radiogroup label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 16px;
  }

  .CTA {
    text-align: end;
  }

  /* texto ayuda - error */
  .texto-ayuda {
    font-family: 'praxis-next', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #6f6f6f;
  }

  .texto-ayuda.error {
    color: #cf0622;
  }

  /* input text */
  .input-forms {
    display: flex;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 8px;
    align-items: center;
    align-self: stretch;
    border: 1px solid #888888;
    background-color: #ffffff;
    font-family: 'praxis-next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    width: 100%;
    transition: ease 0.3s;
    -webkit-transition: ease 0.3s;
    -moz-transition: ease 0.3s;
    -ms-transition: ease 0.3s;
    -o-transition: ease 0.3s;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .input-forms:focus,
  .input-forms:hover {
    border: 1px solid #1e1e1e;
    outline: none;
  }

  .input-forms:disabled {
    border: 1px solid #a2a2a2;
    color: #a2a2a2;
  }

  .input-forms:disabled + .texto-ayuda {
    color: #a2a2a2;
  }

  /* input select */
  .select-forms {
    display: flex;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 8px;
    align-items: center;
    align-self: stretch;
    border: 1px solid #888888;
    background-color: #ffffff;
    font-family: 'praxis-next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    width: 100%;
    transition: ease 0.3s;
    -webkit-transition: ease 0.3s;
    -moz-transition: ease 0.3s;
    -ms-transition: ease 0.3s;
    -o-transition: ease 0.3s;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff url('img/arrow-select.svg') no-repeat right 10px center;
    background-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .select-forms:focus,
  .select-forms:hover {
    border: 1px solid #1e1e1e;
    outline: none;
  }

  .select-forms:disabled {
    border: 1px solid #a2a2a2;
    color: #a2a2a2;
  }

  .select-forms:disabled + .texto-ayuda {
    color: #a2a2a2;
  }

  /* textarea */
  .textarea-forms {
    display: flex;
    height: 120px;
    min-height: 48px;
    max-height: 220px;
    padding: 8px 16px;
    margin-bottom: 8px;
    align-items: center;
    align-self: stretch;
    border: 1px solid #888888;
    background-color: #ffffff;
    font-family: 'praxis-next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    width: 100%;
    transition: ease 0.3s;
    -webkit-transition: ease 0.3s;
    -moz-transition: ease 0.3s;
    -ms-transition: ease 0.3s;
    -o-transition: ease 0.3s;
    resize: vertical;
  }

  .textarea-forms:focus,
  .textarea-forms:hover {
    border: 1px solid #1e1e1e;
    outline: none;
  }

  .textarea-forms:disabled {
    border: 1px solid #a2a2a2;
    color: #a2a2a2;
  }

  .textarea-forms:disabled + .texto-ayuda {
    color: #a2a2a2;
  }

  /* checkbox */
  .check-wrapper {
    display: flex;
    margin-bottom: 12px;
  }

  .checkbox-forms {
    width: 20px;
    height: 20px;
    accent-color: #cf0622;
    cursor: pointer;
    margin-bottom: 0 !important;
    margin-right: 8px;
    margin-left: 0;
    transition: ease 0.3s;
    -webkit-transition: ease 0.3s;
    -moz-transition: ease 0.3s;
    -ms-transition: ease 0.3s;
    -o-transition: ease 0.3s;
    vertical-align: middle;
  }

  .checkbox-forms + label {
    color: #1e1e1e;
    margin-right: 16px;
    width: 110%;
  }

  .checkbox-forms:hover {
    accent-color: #8a0013;
    color: #8a0013;
  }

  .checkbox-forms:hover + label {
    color: #8a0013;
  }

  .checkbox-forms:disabled {
    accent-color: #595d62;
    border: solid 1px #a2a2a2;
    color: #6f6f6f;
  }

  .checkbox-forms:disabled + label {
    color: #6f6f6f;
  }

  /* radio */
  .radio-wrapper {
    display: flex;
    margin-bottom: 12px;
  }

  .radio-wrapper-inline {
    display: inline-flex;
    margin-bottom: 12px;
  }

  .radiobutton-forms {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: #cf0622;
    cursor: pointer;
    margin-bottom: 0 !important;
    margin-right: 8px;
    margin-left: 0;
    transition: ease 0.3s;
    -webkit-transition: ease 0.3s;
    -moz-transition: ease 0.3s;
    -ms-transition: ease 0.3s;
    -o-transition: ease 0.3s;
    vertical-align: middle;
  }

  .radiobutton-forms + label {
    margin-right: 16px;
  }

  .radiobutton-forms:hover {
    accent-color: #8a0013;
    color: #8a0013;
  }

  .radiobutton-forms:hover + label {
    color: #8a0013;
  }

  .radiobutton-forms:disabled {
    accent-color: #595d62;
    border: solid 1px #a2a2a2;
    color: #6f6f6f;
  }

  .radiobutton-forms:disabled + label {
    color: #6f6f6f;
  }

  .radio-wrapper .radiobutton-forms + label {
    margin-right: 16px;
    width: 100%;
  }

  /* button solid */
  .btn {
    display: inline-flex;
    height: 48px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: #cf0622;
    border: solid 1px #cf0622;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    width: auto;
    margin: 12px 8px;
    color: #fff;
    font-family: 'praxis-next', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
  }

  .btn:focus {
    background-color: #cf0622;
    border: solid 1px #1e1e1e;
    color: #fff;
  }

  .btn:hover {
    background-color: #8a0013;
    border: solid 1px #8a0013;
    color: #fff;
  }

  .btn:disabled,
  .btn.disabled {
    background-color: #d8d8d8;
    border: solid 1px #d8d8d8;
    color: #575757;
    pointer-events: none;
  }

  /* button outline */
  .btn-outline {
    display: inline-flex;
    height: 48px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: transparent;
    border: solid 1px #1e1e1e;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    width: auto;
    margin: 12px 8px;
    color: #1e1e1e;
    font-family: 'praxis-next', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
  }

  .btn-outline:focus {
    border: solid 1px #8a0013;
  }

  .btn-outline:hover {
    border: solid 1px #8a0013;
    color: #8a0013;
  }

  .btn-outline:disabled,
  .btn-outline.disabled {
    border: solid 1px #bcbcbc;
    color: #6f6f6f;
    pointer-events: none;
  }
}

/* custom select select2 */
.select2 {
  height: 48px;
  width: 100% !important;
  padding: 8px 16px;
  margin-bottom: 8px;

  border: 1px solid #888888;
  background-color: #ffffff;
  font-family: 'praxis-next', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.2px;
  color: #1e1e1e;
  transition: ease 0.3s;
  -webkit-transition: ease 0.3s;
  -moz-transition: ease 0.3s;
  -ms-transition: ease 0.3s;
  -o-transition: ease 0.3s;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.select2:focus,
.select2:hover {
  border: 1px solid #303030;
  outline: none;
}

.select2-container--default .select2-selection--single {
  border: none !important;
  outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 10px;
  right: 8px;
  background: url('img/arrow-select.svg') no-repeat center center;
  background-size: 24px;
  width: 24px;
  height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  opacity: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  font-weight: normal;
}

.select2-container--default .select2-selection--single .select2-selection__clear span {
  display: inline-block;
  color: transparent;
  background: url('img/ico-close.svg') no-repeat center center;
  background-size: 20px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  margin-top: 1px;
  opacity: 0.7;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #c2c2c2;
}

.select2-container--default .select2-results > .select2-results__options li {
  font-family: 'praxis-next', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

/* media querys */
@media only screen and (max-width: 768px) {
  section.forms {
    padding: 16px;

    .grid-headerform {
      grid-template-columns: 1fr;
    }

    .CTA {
      grid-column: span 1;
    }
  }

  section.forms form {
    .grid-form {
      grid-template-columns: 1fr;
      margin-bottom: 5em;
    }

    .dnone {
      display: none;
    }

    .grid-form > .form-group {
      padding-bottom: 12px;
    }
  }
}
