:root {
    --rojo_ibero: #e00034;
    --gris_ibero: #82786f;
    --rojo_oscuro: #af161e;
    --blanco: #fff;
    --negro: #000;
    --gris_claro: lightgray;
    --font-body: 'Praxis-Next', sans-serif;
    --font-heading: 'Alverata', sans-serif;
}


/* Fonts */
@font-face {
    font-family: alverata, serif;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: praxis-next, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

input:disabled::-webkit-input-placeholder,
input:disabled::-moz-placeholder,
input:disabled:-ms-input-placeholder,
input:disabled::placeholder {
    background-color: var(--gris_ibero);
}

section.forms .container {
    padding: 0;
}

section.forms .asterisco {
    color: var(--rojo_ibero, #e00034);
}

section.forms .grid-headerform {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 2.5em;
}

section.forms h1 {
    font-family: var(--font-heading, 'alverata', sans-serif);
    font-size: 48px;
    text-align: center;
    line-height: 62px;
    letter-spacing: -1px;
    font-weight: 400;
}

section.forms h2 {
    font-family: var(--font-heading, 'alverata', sans-serif);
    font-size: 24px;
    text-align: center;
    line-height: 30px;
    letter-spacing: -1px;
    font-weight: 400;
}

section.forms p {
    font-family: var(--font-body, 'praxis-next', sans-serif);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    line-height: 22px;
    letter-spacing: -0.2px;
}

section.forms .CTA {
    grid-column: span 2;
    width: 100%;
    text-align: end;
}

section.forms .desktop-none {
    display: none;
}

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

section.forms form .grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2.5em;
}

section.forms form .grid-form > .form-group {
    padding-bottom: 24px;
    min-width: 0;
}

section.forms form p {
    margin-bottom: 0.5rem;
}

section.forms form fieldset {
    border: none;
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

section.forms form fieldset legend {
    margin-bottom: 12px;
}

section.forms form .label-forms {
    display: block;
    font-family: var(--font-body, 'praxis-next', sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #6f6f6f;
    margin-bottom: 8px;
}

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

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

section.forms form .aviso-privacidad,
section.forms form .radiogroup {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    min-height: 70px;
}

section.forms form .aviso-privacidad label,
section.forms form .radiogroup label {
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 16px;
}

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

section.forms form .radiogroup {
    vertical-align: super;
}

section.forms form .texto-ayuda {
    font-family: var(--font-body, 'praxis-next', sans-serif);
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    line-height: 30px;
    letter-spacing: -0.2px;
    color: #6f6f6f;
}

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

section.forms form .input-forms,
section.forms form .select-forms,
section.forms form .textarea-forms {
    display: flex;
    align-items: center;
    align-self: stretch;
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid #888888;
    background-color: #ffffff;
    font-family: var(--font-body, 'praxis-next', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    transition: 0.3s ease;
}

section.forms form .input-forms,
section.forms form .select-forms {
    height: 48px;
    padding: 0 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

section.forms form .textarea-forms {
    min-height: 48px;
    max-height: 220px;
    height: 120px;
    padding: 8px 16px;
    resize: vertical;
}

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

section.forms form .input-forms:disabled,
section.forms form .select-forms:disabled,
section.forms form .textarea-forms:disabled {
    border: 1px solid #a2a2a2;
    color: #a2a2a2;
}

section.forms form .input-forms:disabled + .texto-ayuda,
section.forms form .select-forms:disabled + .texto-ayuda,
section.forms form .textarea-forms:disabled + .texto-ayuda {
    color: #a2a2a2;
}

section.forms form .select-forms {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff url('img/arrow-select.svg') no-repeat right 10px center;
    background-size: 24px;
    cursor: pointer;
}

section.forms form .check-wrapper,
section.forms form .radio-wrapper,
section.forms form .radio-wrapper-inline {
    display: flex;
    margin-bottom: 12px;
}

section.forms form .radio-wrapper-inline {
    display: inline-flex;
}

section.forms form .checkbox-forms,
section.forms form .radiobutton-forms {
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    cursor: pointer;
    transition: 0.3s ease;
    accent-color: var(--rojo_ibero, #cf0622);
}

section.forms form .checkbox-forms {
    margin-left: 0;
}

section.forms form .checkbox-forms + label,
section.forms form .radiobutton-forms + label {
    color: #1e1e1e;
    margin-right: 16px;
}

section.forms form .checkbox-forms + label {
    width: 110%;
}

section.forms form .checkbox-forms:hover,
section.forms form .radiobutton-forms:hover {
    accent-color: #8a0013;
    color: #8a0013;
}

section.forms form .checkbox-forms:hover + label,
section.forms form .radiobutton-forms:hover + label {
    color: #8a0013;
}

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

section.forms form .checkbox-forms:disabled + label,
section.forms form .radiobutton-forms:disabled + label {
    color: #6f6f6f;
}

section.forms form .radio-wrapper .radiobutton-forms + label {
    width: 100%;
}

section.forms form .btn,
section.forms form .btn-outline {
    display: inline-flex;
    height: 48px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 40px;
    width: auto;
    margin: 12px 0;
    font-family: var(--font-body, 'praxis-next', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: 0.3s ease;
}

section.forms form .btn {
    background-color: var(--rojo_ibero, #cf0622);
    border: 1px solid var(--rojo_ibero, #cf0622);
    color: #ffffff;
}

section.forms form .btn:focus {
    border-color: #1e1e1e;
}

section.forms form .btn:hover {
    background-color: #8a0013;
    border-color: #8a0013;
}

section.forms form .btn:disabled,
section.forms form .btn.disabled {
    background-color: #d8d8d8;
    border-color: #d8d8d8;
    color: #575757;
    pointer-events: none;
}

section.forms form .btn-outline {
    background-color: transparent;
    border: 1px solid #1e1e1e;
    color: #1e1e1e;
}

section.forms form .btn-outline:focus,
section.forms form .btn-outline:hover {
    border-color: #8a0013;
    color: #8a0013;
}

section.forms form .btn-outline:disabled,
section.forms form .btn-outline.disabled {
    border-color: #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: var(--font-body, 'praxis-next', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1e1e1e;
    transition: 0.3s ease;
}

.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 !important;
    right: 8px !important;
    background: url('img/arrow-select.svg') no-repeat center center;
    background-size: 24px;
}

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

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

.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: var(--font-body, 'praxis-next', sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
}

/* media queries */
@media only screen and (max-width: 768px) {

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

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

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

    section.forms form .grid-form > .form-group {
        padding-bottom: 12px;
    }
    
    section.forms form .dnone {
        display: none;
    }
}