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

   * INPUT, SELECT & TEXTAREA

   * BUTTONS: ALL
   * BUTTONS: PRIMARY
   * BUTTONS: SECONDARY
   * 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, separating
 * them in Structure, Behaviour or Appearance styles as appropriate.

 */

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

/* Structure
   -------------------------------------------------------------------------- */
.form input,
.form select,
.form textarea {
    width: 100%;
    max-width: 100%;
}

.form input {
    height:40px;
    padding: 7px 10px;
}

.form input[type="date"],
.form input[type="datetime-local"],
.form input[type="month"],
.form input[type="time"],
.form input[type="week"] {
    padding: 5px 10px 4px;
}

.form input[type="file"] {
    padding: 5px 10px 4px 9px;
}

.body--Firefox .form input {
    height:40px;
    padding: 6px 10px;
}

.body--Firefox .form input[type="file"] {
    padding: 5px 4px 4px;
}

.form input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.form input[type="radio"] {
    width: auto;
    padding: 0;
}

.form select {
    height: 40px;
    padding: 7px 10px 7px 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.body--Firefox .form select {
    padding: 7px 10px 7px 6px;
}

.form select[multiple] option {
    padding: 5px 10px;
}

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

.form select[multiple] {
    padding: 0;
    background-image: none;
}

.form textarea {
    padding: 5px 10px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
    display: block;
    -webkit-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    transition: all 250ms ease-in-out;
}

/* Appearance
   -------------------------------------------------------------------------- */
.form input,
.form select,
.form textarea {
    outline-width: 0;
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #dbdbdb; /* var(--color--borders) in an IE free world - use this comment as a handler for smart find & replace! */
    background-color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    font-style: normal;
    color: #565656;
    margin-bottom: 0px;
}

.form select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('../images/icons/arrow.svg') no-repeat #FFFFFF;
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto auto;
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto auto;
    background-position: calc(100% - 1em) center;
    background-size: 6px 16px;
}

.select2-container{
    min-height: 32px;
    padding: 2px 0;
    background: #fff;
    border: 1px solid #aaa;
}

.select2-container--default .select2-selection--single{
    background-color: transparent;
    border: none;
}

::-webkit-input-placeholder {
    opacity: 1;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    font-style: normal;
    color: #999999;
}

::-moz-placeholder {
    opacity: 1;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    font-style: normal;
    color: #999999;
    line-height: 32px;
}

:-ms-input-placeholder {
    opacity: 1;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    font-style: normal;
    color: #999999;
}

:-moz-placeholder {
    opacity: 1;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    font-style: normal;
    color: #999999;
}

.body--Firefox .form input[type="file"] {
    line-height: 18px;
}

.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] option {
    background-color: inherit;
    font-family: inherit;
    font-size: 14px;
    line-height: 14px;
    font-weight: 300;
    font-style: normal;
    color: #565656;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: #0ea6b5;
    box-shadow: none;
}

.form .hasErrors input,
.form .hasErrors select,
.form .hasErrors textarea {
    border-color: #aa0000;
}

/* select2 */
.ui-widget {
    background-color: inherit !important;
}
.select2-container .select2-selection--multiple {
    min-height: 30px !important;
    border-radius: 2px !important;
    height: auto;
}
.select2-container .select2-search--inline .select2-search__field {
    margin-top: 5px !important;
    padding: 0 10px !important;
    width: 100% !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #0ea6b5 1px !important;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dbdbdb !important;
    border-radius: 2px !important;
}

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

/* Structure
   -------------------------------------------------------------------------- */
button,
.genericButton,
.saveButton,
.nextButton,
.gotoButton,
.redirectUrlButton,
.previousButton,
.homeButton,
.clearButton,
.cancelButton,
.button {
    padding: 7px 10px;
}

button[id*="Remove_"],
.removeFile,
.smallButton,
.button--small {
    padding: 2px 4px !important;
}

.button__icon {
    float: left;
    margin: -2px 8px -2px 0;
}

/* Behaviour
   -------------------------------------------------------------------------- */
button,
.genericButton,
.saveButton,
.nextButton,
.gotoButton,
.redirectUrlButton,
.previousButton,
.homeButton,
.clearButton,
.cancelButton,
.button {
    display: inline-block;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
    -webkit-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    transition: all 250ms ease-in-out;
}

/* Appearance
   -------------------------------------------------------------------------- */
button,
.genericButton,
.saveButton,
.nextButton,
.gotoButton,
.redirectUrlButton,
.previousButton,
.homeButton,
.clearButton,
.cancelButton,
.button {
    outline: 0;
    border-width: 1px;
    border-style: solid;
    font-family: inherit;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    text-transform: initial;
    cursor: pointer;
    text-decoration: none;
    padding: 11px 15px;
    min-width: 120px;
}

button:hover,
button: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,
.genericButton:focus,
.saveButton:focus,
.nextButton:focus,
.gotoButton:focus,
.redirectUrlButton:focus,
.previousButton:focus,
.homeButton:focus,
.clearButton:focus,
.cancelButton:focus,
.button:focus {
    text-decoration: none;
}

button[id*="Remove_"],
.removeFile,
.smallButton,
.button--small {
    font-size: 15px !important;
}

@media all and (max-width:768px) {

    /* Structure
       -------------------------------------------------------------------------- */
    .button__icon {
        float: none;
    }

}

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

/* Appearance
   -------------------------------------------------------------------------- */
button,
button:link,
button: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,
.button--default,
.button--default:link,
.button--default:visited {
    border-color: #253746;
    background-color: #253746;
    color: #FFFFFF;
}

button:hover,
button:active,
.genericButton:hover,
.genericButton:active,
.saveButton:hover,
.saveButton:active,
.nextButton:hover,
.nextButton:active,
.gotoButton:hover,
.gotoButton:active,
.redirectUrlButton:hover,
.redirectUrlButton:active,
.button--default:hover,
.button--default:active {
    border-color: #253746;
    background-color: #253746;
    color: #FFFFFF;
}

button:focus,
.genericButton:focus,
.saveButton:focus,
.nextButton:focus,
.gotoButton:focus,
.redirectUrlButton:focus,
.button--default:focus {
    background-color: #253746;
    background-color: #253746;
    color: #FFFFFF;
}

.btn-small {
    padding: 7px 20px 6px !important;
}

/* BUTTONS: SECONDARY
   ========================================================================== */

/* Appearance
   -------------------------------------------------------------------------- */
.previousButton,
.previousButton:link,
.previousButton:visited,
.homeButton,
.homeButton:link,
.homeButton:visited,
.clearButton,
.clearButton:link,
.clearButton:visited,
.cancelButton,
.cancelButton:link,
.cancelButton:visited,
.button--cancel,
.button--cancel:link,
.button--cancel:visited {
    border-color: #007481; /* var(--color--buttons) in an IE free world - use this comment as a handler for smart find & replace! */
    background-color: transparent;
    color: #007481; /* var(--color--buttons) in an IE free world - use this comment as a handler for smart find & replace! */
}

.previousButton:hover,
.previousButton:active,
.homeButton:hover,
.homeButton:active,
.clearButton:hover,
.clearButton:active,
.cancelButton:hover,
.cancelButton:active,
.button--cancel:hover,
.button--cancel:active {
    border-color: #0a5157; /* var(--color--buttons) in an IE free world - use this comment as a handler for smart find & replace! */
    background-color: #DFF6F0; /* var(--color--buttons--15) in an IE free world - use this comment as a handler for smart find & replace! */
    color: #0a5157; /* var(--color--buttons) in an IE free world - use this comment as a handler for smart find & replace! */
}

.previousButton:focus,
.homeButton:focus,
.clearButton:focus,
.cancelButton:focus,
.button--cancel:focus {
    border-color: #BDEDE1; /* var(--color--buttons--30) in an IE free world - use this comment as a handler for smart find & replace! */
    background-color: #DFF6F0; /* var(--color--buttons--15) in an IE free world - use this comment as a handler for smart find & replace! */
    color: #0a5157; /* var(--color--buttons) in an IE free world - use this comment as a handler for smart find & replace! */
}

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

/* Appearance
   -------------------------------------------------------------------------- */
.button--action-default,
.button--action-default:link,
.button--action-default:visited {
    border-color: transparent;
    background-color: transparent;
    color: #007481;
}

.button--action-default:hover,
.button--action-default:active {
    border-color: #0a5157;
    background-color: #DFF6F0;
    color: #0a5157;
}

.button--action-default:focus {
    border-color: #BDEDE1;
    background-color: #DFF6F0;
    color: #0a5157;
}

.button--action-secondary,
.button--action-secondary:link,
.button--action-secondary:visited {
    border-color: transparent;
    background-color: transparent;
    color: #828282;
}

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

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

.button--action-disabled,
.button--action-disabled:link,
.button--action-disabled:visited {
    border-color: transparent;
    background-color: transparent;
    color: #828282;
}

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

.button--action-disabled:focus {
    border-color: transparent;
    background-color: transparent;
    color: #828282;
}

.form__container--step1 button.saveButton,
.form__container--step1 button.saveButton:link,
.row--color-1 .button,
.row--color-1 .button:link {
    background-color: #007481;
    border-color: #007481;
}

.form__container--step1 button.saveButton:focus,
.form__container--step1 button.saveButton:active,
.form__container--step1 button.saveButton:hover,
.row--color-1 .button:focus,
.row--color-1 .button:active,
.row--color-1 .button:hover {
    background-color: #016d6b;
}

.icon--button,
.icon--button:hover,
.icon--button:focus {
    background-color: transparent;
    border-color: transparent;
}
