/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
    border: 1px solid #213F95;
}

fieldset span {
    color: #a24178;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 5px; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}
form {
    font-size: 16px;
}

form p.error {
    color: #d54733;
    border:1px solid #d54733;
    font-weight: bold;
    padding: 5px 10px;
}

form sup {
    color: #d54733; }

form ul {
    margin: 0 !important;
    list-style: none !important; }
form ul li {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    margin: 0 0 10px 0 !important;
    padding: 0 !important; }
form ul li > .row {
    flex: 1 1 30%; }
form ul li > .row:not(:first-child) {
    flex: 1 1 100%; }
@media (min-width: 480px) {
    form ul li > .row:not(:first-child) {
        flex: 1 1 50%; } }
form ul li label {
    flex: 1 1 30%; }
form ul li label span {
    color: #a24178;}
form ul li label.label-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0; }
form ul li label.label-input:hover .checkbox, form ul li label.label-input:hover .radio {
    background-color: #f4f4f4;
    border-color: #a8a8a8; }
form ul li label.label-input input[type="checkbox"], form ul li label.label-input input[type="radio"] {
    display: none; }
form ul li label.label-input input[type="checkbox"]:checked + .checkbox, form ul li label.label-input input[type="checkbox"]:checked + .radio, form ul li label.label-input input[type="radio"]:checked + .checkbox, form ul li label.label-input input[type="radio"]:checked + .radio {
    background-color: #213F95;
    border-color: #213F95; }
form ul li label.label-input input[type="checkbox"]:checked + .checkbox:after, form ul li label.label-input input[type="checkbox"]:checked + .radio:after, form ul li label.label-input input[type="radio"]:checked + .checkbox:after, form ul li label.label-input input[type="radio"]:checked + .radio:after {
    opacity: 1; }
form ul li label.label-input .checkbox, form ul li label.label-input .radio {
    position: relative;
    border: 1px solid #c1c1c1;
    margin: 0 10px 0 0;
    width: 25px;
    height: 25px;
    transition: all 0.3s ease 0s;
    cursor: pointer; }
form ul li label.label-input .checkbox:after, form ul li label.label-input .radio:after {
    content: '';
    display: block;
    position: absolute;
    left: 8px;
    top: 3px;
    width: 5px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: translate3d(0, 0, 0) rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease 0s; }
form ul li label.label-input .radio {
    border-radius: 50%; }
form ul li input, form ul li textarea, form ul li select {
    flex: 1 1 100%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 2px;
    border: 1px solid #c1c1c1;
    padding: .3rem .6rem;
    background-color: #f4f4f4;
    transition: border 0.3s ease 0s;
    color: #000000; }
form ul li input:hover, form ul li textarea:hover, form ul li select:hover {
    border-color: #a8a8a8; }
form ul li input:focus, form ul li textarea:focus, form ul li select:focus {
    border-color: #2399e5;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    outline: none; }
form ul li input:invalid, form ul li input:-moz-submit-invalid, form ul li input:-moz-ui-invalid, form ul li textarea:invalid, form ul li textarea:-moz-submit-invalid, form ul li textarea:-moz-ui-invalid, form ul li select:invalid, form ul li select:-moz-submit-invalid, form ul li select:-moz-ui-invalid {
    box-shadow: none; }
form ul li input:invalid:not(:focus):not(:placeholder-shown), form ul li textarea:invalid:not(:focus):not(:placeholder-shown), form ul li select:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #d54733; }
@media (min-width: 480px) {
    form ul li input, form ul li textarea, form ul li select {
        flex: 1 1 50%; } }
form ul li select {
    padding-right: calc(.6rem + 24px);
    background: url("../assets/static/arrow-down.html") calc(100% - .6rem)/12px no-repeat #f4f4f4; }
form ul li textarea {
    flex: 1 1 100%;
    min-height: 150px; }

form input[type="submit"], form button[type="submit"], form button.submitbutton {
    width: 100%;
    margin: 10px 0 0;
    padding: .6rem .9rem;
    text-align: center;
    border: none;
    border-radius: 2px;
    color: #ffffff;
    background: #C24794;
    transition: all 0.3s ease 0s; }
form input[type="submit"]:hover, form button[type="submit"]:hover {
    background-color: #a24178; }
form input[type="submit"][disabled], form button[type="submit"][disabled] {
    cursor: not-allowed;
    background-color: #595959;
    color: white; }