/* ==========================================================================
   11_FORM ELEMENTS
   --------------------------------------------------------------------------
   * README

   * INPUT, SELECT & TEXTAREA

   * BUTTONS: ALL
   * BUTTONS: PRIMARY
   * BUTTONS: SECONDARY
   * BUTTONS: CANCEL
   * BUTTONS: CANCEL IN WIZARDS WITH SECONDARY SIBLING
   * BUTTONS: LINK
   * BUTTONS: ACTIONS
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Form Elements default styles.
 * That means they apply to the actual elements inside the Form HTML component,
 * and therefore, they apply only to the pages that display that component.

 * If you need to deal with an exception to these Form Elements default
 * styles, you should manage it by adding a .X--modifier class to the .X element
 * and develop the given exception nested to this .X--modifier class in
 * stylesheet #17 under the corresponding page subtitle.

 * If you need to deal with a cross-browser fix for a Form Element, you should
 * develop it in this stylesheet, under the correspondent subtitle.

 */

/* INPUT, SELECT & TEXTAREA
   ========================================================================== */

.form input:not([type="checkbox"]):not([type="radio"]):not([class*="select2"]),
.form select,
.form textarea {
    display: block;
    outline-width: 0;
    border-radius: 0;
    border-width: 1px;
    border-style: solid;
    border-color: #d0d0ce; /* var(--color--borders) */
    width: 100%;
    max-width: 100%;
    background-color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    font-style: normal;
    color: #000;
    -webkit-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    transition: all 250ms ease-in-out;
}

.form input:not([type="checkbox"]):not([type="radio"]):focus,
.form select:focus,
.form textarea:focus {
    border-color: #666666; /* var(--color--secondary) */
}

.form .hasErrors input:not([type="checkbox"]):not([type="radio"]),
.form .hasErrors select,
.form .hasErrors textarea {
    border-color: #e30613;
}

::placeholder {
    opacity: 1;
    color: #999999;
}

::-webkit-input-placeholder {
    opacity: 1;
    color: #999999;
}

::-moz-placeholder {
    opacity: 1;
    color: #999999;
}

:-ms-input-placeholder {
    opacity: 1;
    color: #999999 !important;
}
::-ms-input-placeholder {
    color: #999999 !important;
}

:-moz-placeholder {
    opacity: 1;
    color: #999999;
}

.form input[type="file"]::-ms-value {
    border-width: 0;
    background-color: transparent;
}

.form input[type="file"]::-ms-browse {
    border-width: 0;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.form select[multiple],
.form textarea {
    height: 112px;
}

.form select[multiple] option {
    background-color: inherit;
}

.form textarea {
    line-height: 150%;
}

.form select {
    background-image: url(../images/arrow.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    background-size: 11px auto;
}

.body--Gecko .form select,
.body--IE .form select {
    background-size: 11px 11px;
}
.form select::-ms-expand{
    display: none;
}

.form select[multiple],
.form textarea {
    height: 112px;
    background-image: none;
}

.body--ismobile .form select[multiple] {
    padding: 9px 10px 8px 6px; /* We achieve 40px height trough padding */
    height: 42px; /* needed for macOS */
}
/* SELECT 2 PATCH */
.form input.select2-search__field {
    width:auto !important
}

/* INPUT, SELECT & TEXTAREA: SIZING
   ========================================================================== */
.form textarea {
    padding: 9px 10px;
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .form input {
        padding: 11px 10px; /* We achieve 44px height trough padding */
    }

    .body:not(.body--Firefox) .form input[type="date"],
    .body:not(.body--Firefox) .form input[type="datetime-local"],
    .body:not(.body--Firefox) .form input[type="month"],
    .body:not(.body--Firefox) .form input[type="time"],
    .body:not(.body--Firefox) .form input[type="week"] {
        padding: 9px 10px; /* We achieve 44px height trough padding */
    }

    .form input[type="file"] {
        padding: 8px 10px 8px 6px; /* We achieve 44px height trough padding */
    }

    .body--Firefox .form input[type="file"] {
        padding: 6px 4px; /* We achieve 44px height trough padding */
    }

    .form select:not([multiple]) {
        height: 44px; /* needed for macOS */
        padding: 11px 10px 10px 6px; /* We achieve 44px height trough padding */
    }

    .body--Firefox .form select {
        padding: 11px 10px 10px 6px; /* We achieve 44px height trough padding */
    }

    .body--ismobile .form select[multiple] {
        height: 44px; /* needed for macOS */
        padding: 11px 10px 10px 6px; /* We achieve 44px height trough padding */
    }

    .form select[multiple] option {
        padding: 11px 10px; /* We achieve 44px height trough padding */
    }
    .body--Safari .form input[type="date"],
    .body--Safari .form input[type="month"] {
        display:block !important;
         -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        min-height: 44px !important;

        padding-top: 12px !important;
        height: 44px;
        background-image: url(../images/arrow.svg);
        background-repeat: no-repeat;
        background-position: calc(100% - 10px) 50%;
        background-size: auto 11px;
    }

}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .form input {
        padding: 9px 10px; /* We achieve 40px height trough padding */
    }

    .body:not(.body--Firefox) .form input[type="date"],
    .body:not(.body--Firefox) .form input[type="datetime-local"],
    .body:not(.body--Firefox) .form input[type="month"],
    .body:not(.body--Firefox) .form input[type="time"],
    .body:not(.body--Firefox) .form input[type="week"] {
        padding: 7px 10px; /* We achieve 40px height trough padding */
    }

    .form input[type="file"] {
        padding: 6px 10px 6px 6px; /* We achieve 40px height trough padding */
    }

    .body--Firefox .form input[type="file"] {
        padding: 4px 4px; /* We achieve 40px height trough padding */
    }

    .form select:not([multiple]) {
        height: 40px; /* needed for macOS */
        padding: 9px 10px 8px 6px; /* We achieve 40px height trough padding */
    }

    .body--Firefox .form select {
        padding: 9px 10px 8px 6px; /* We achieve 40px height trough padding */
    }

    .body--ismobile .form select[multiple] {
        height: 40px; /* needed for macOS */
        padding: 9px 10px 8px 6px; /* We achieve 40px height trough padding */
    }

    .form select[multiple] option {
        padding: 9px 10px; /* We achieve 40px height trough padding */
    }

}

@supports (-webkit-overflow-scrolling: touch) {
    input[type="color"],
    input[type="date"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="email"],
    input[type="month"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="text"],
    input[type="time"],
    input[type="url"],
    input[type="week"],
    select,
    select:focus,
    textarea {
      font-size: 16px !important;
      padding: 11px 10px 8px !important;
    }
}

/* BUTTONS: ALL
   ========================================================================== */

button,
input[type="submit"],
.genericButton,
.saveButton,
.nextButton,
.gotoButton,
.redirectUrlButton,
.previousButton,
.homeButton,
.clearButton,
.cancelButton,
.button {
    display: inline-block;
    outline: 0;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    padding: 12px 20px; /* We achieve 40px height trough padding */
    font-family: inherit;
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    text-transform: initial;
    text-decoration: none;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
    cursor: pointer;
    -webkit-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    transition: all 250ms ease-in-out;
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    button,
    input[type="submit"],
    .genericButton,
    .saveButton,
    .nextButton,
    .gotoButton,
    .redirectUrlButton,
    .previousButton,
    .homeButton,
    .clearButton,
    .cancelButton,
    .button {
        padding: 14px 20px; /* We achieve 44px height trough padding */
    }

}

button:hover,
button:active,
input[type="submit"]:hover,
input[type="submit"]:active,
.genericButton:hover,
.genericButton:active,
.saveButton:hover,
.saveButton:active,
.nextButton:hover,
.nextButton:active,
.gotoButton:hover,
.gotoButton:active,
.redirectUrlButton:hover,
.redirectUrlButton:active,
.previousButton:hover,
.previousButton:active,
.homeButton:hover,
.homeButton:active,
.clearButton:hover,
.clearButton:active,
.cancelButton:hover,
.cancelButton:active,
.button:hover,
.button:active {
    text-decoration: none;
}

button:focus,
input[type="submit"]:focus,
.genericButton:focus,
.saveButton:focus,
.nextButton:focus,
.gotoButton:focus,
.redirectUrlButton:focus,
.previousButton:focus,
.homeButton:focus,
.clearButton:focus,
.cancelButton:focus,
.button:focus {
    text-decoration: none;
}

.button--medium {
    padding: 5px 15px;
}

.smallButton,
.button--small {
    padding: 2px 5px;
    font-size: 11px;
}

.removeFile {
    margin-left: 15px;
    padding: 2px 5px;
}

.button__icon {
    float: left;
    margin-right: 8px;
    line-height: inherit !important;
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .button__icon {
        float: none;
        vertical-align: bottom;
    }

}

/* BUTTONS: PRIMARY
   ========================================================================== */

button,
button:link,
button:visited,
input[type="submit"],
input[type="submit"]:link,
input[type="submit"]:visited,
.button--default,
.button--default:link,
.button--default:visited,
.genericButton,
.genericButton:link,
.genericButton:visited,
.saveButton,
.saveButton:link,
.saveButton:visited,
.nextButton,
.nextButton:link,
.nextButton:visited,
.gotoButton,
.gotoButton:link,
.gotoButton:visited,
.redirectUrlButton,
.redirectUrlButton:link,
.redirectUrlButton:visited {
    border-color: #006ea9;
    background-color: #006ea9;
    color: #fff;
}

button:hover,
button:active,
input[type="submit"]:hover,
input[type="submit"]:active,
.button--default:hover,
.button--default:active,
.genericButton:hover,
.genericButton:active,
.saveButton:hover,
.saveButton:active,
.nextButton:hover,
.nextButton:active,
.gotoButton:hover,
.gotoButton:active,
.redirectUrlButton:hover,
.redirectUrlButton:active,
button:focus,
input[type="submit"]:focus,
.button--default:focus,
.genericButton:focus,
.saveButton:focus,
.nextButton:focus,
.gotoButton:focus,
.redirectUrlButton:focus {
    border-color: #008fde;
    background-color: #008fde;
    color: #FFFFFF;
}

/* BUTTONS: SECONDARY
   ========================================================================== */
.button--secondary,
.button--secondary:link,
.button--secondary:visited,
.partialSaveButton,
.partialSaveButton:link,
.partialSaveButton:visited,
.previousButton,
.previousButton:link,
.previousButton:visited,
.homeButton,
.homeButton:link,
.homeButton:visited,
.clearButton,
.clearButton:link,
.clearButton:visited {
    border-color: #007CB0;
    background-color: #fff;
    color: #007CB0;
}

.button--secondary:hover,
.button--secondary:active,
.partialSaveButton:hover,
.partialSaveButton:active,
.previousButton:hover,
.previousButton:active,
.homeButton:hover,
.homeButton:active,
.clearButton:hover,
.clearButton:active,
.button--secondary:focus,
.partialSaveButton:focus,
.previousButton:focus,
.homeButton:focus,
.clearButton:focus {
    border-color: #008fde;
    background-color: #008fde;
    color: #fff;
}

/* BUTTONS: CANCEL
   ========================================================================== */
.button--cancel,
.button--cancel:link,
.button--cancel:visited,
.cancelButton,
.cancelButton:link,
.cancelButton:visited {
    border-color: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
}

.button--cancel:hover,
.button--cancel:active,
.cancelButton:hover,
.cancelButton:active,
.button--cancel:focus,
.cancelButton:focus {
    border-color: #008fde;
    background-color: #008fde;
    color: #fff;
}

/* BUTTONS: CANCEL IN WIZARDS WITH SECONDARY SIBLING
   ========================================================================== */

/* BUTTONS: LINK LIKE
   ========================================================================== */
.button--link {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 14px;
    text-transform: uppercase;
}

.button--link,
.button--link:link,
.button--link:visited {
    border-color: transparent;
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
}

.button--link:hover,
.button--link:active {
    border-color: transparent;
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
    text-decoration: underline;
}

.button--link:focus {
    border-color: transparent;
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
}

/* BUTTONS: ACTIONS
   ========================================================================== */

[class*="button--action-"] {
    padding: 8px 12px;
    font-size: 15px;
}

.button--action-default,
.button--action-default:link,
.button--action-default:visited {
    border-color: #FFFFFF; /* var(--color--buttons) */
    background-color: #FFFFFF;
    color: #007CB0; /* var(--color--buttons) */
}

.button--action-default:hover,
.button--action-default:active {
    border-color: #007CB0; /* var(--color--buttons) */
    background-color: #CFE5FF;
    color: #007CB0; /* var(--color--buttons) */
}

.button--action-default:focus {
    border-color: #B2DAF2; /* var(--color--buttons--30) */
    background-color: #CFE5FF;
    color: #007CB0; /* var(--color--buttons) */
}

.button--action-secondary,
.button--action-secondary:link,
.button--action-secondary:visited {
    border-color: #007CB0;
    background-color: #fff;
    color: #007CB0;
}

.button--action-secondary:hover,
.button--action-secondary:active {
    border-color: #CCCCCC;
    background-color: #ECECEC;
    color: #CCCCCC;
}

.button--action-secondary:focus {
    border-color: #D9D9D9;
    background-color: #ECECEC;
    color: #CCCCCC;
}

.button--action-disabled,
.button--action-disabled:link,
.button--action-disabled:visited {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #CCCCCC;
    font-style: italic;
}

.button--action-disabled:hover,
.button--action-disabled:active {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #CCCCCC;
}

.button--action-disabled:focus {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #CCCCCC;
}

.removeFile,
.removeFile:link,
.removeFile:visited {
    border-color: transparent;
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
}

.removeFile:hover,
.removeFile:active {
    border-color: #007CB0; /* var(--color--secondary) */
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
}

.removeFile:focus {
    border-color: #007CB0; /* var(--color--secondary) */
    background-color: transparent;
    color: #007CB0; /* var(--color--secondary) */
}

.button--disabled,
.button--disabled:link,
.button--disabled:active,
.button--disabled:focus,
.button--disabled:visited,
.button--disabled:hover {
    background-color: #f6f6f6;
    color: #ccc;
    border-color: #ddd;
    cursor: default;
}

