/* Forms */

.form-wrapper {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-wrapper h3 {
    margin-bottom: 1.25rem;
}

.form-wrapper p {
    font-size: 0.95rem;
}

.form-description {
    margin-bottom: 1rem;
}

.form-group {
    margin-top: 1rem;
}

/* Image radio buttons */

.image-radio {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.image-radio input[type="radio"] {
    display: none;
}

.image-radio img {
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.image-radio input[type="radio"]:checked+img {
    border-color: #007bff;
}

/* .form {
	width: 400px;
	margin-left: auto;
	margin-right: auto;
} */

input:not([type=checkbox], [type=radio]),
select,
textarea {
    margin-bottom: 9px;
}

label {
    font-size: 0.90em;
    margin-bottom: 2px;
}

.form-errors,
.form-field-errors {
    /* Remove bullets */
    padding: 0.5rem;
    /* Remove padding */
    margin: 0;
    /* Remove margins */
    /* color: red; */

    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;

}

.form-errors {
    text-align: center;
    margin-bottom: 1rem;
}

.form-errors li,
.form-field-errors li {
    list-style-type: none;
}

.form-after {
    text-align: center;
}



/* Styles for text inputs, selects, and textareas */
.form-field-wrapper.has-errors input:not([type="checkbox"]):not([type="radio"]),
.form-field-wrapper.has-errors select,
.form-field-wrapper.has-errors textarea {
    border-color: red;
    border-width: 2px;
    border-style: solid;
}

/* Styles for checkboxes */
.form-field-wrapper.has-errors input[type="checkbox"] {
    outline: 2px solid red;
    outline-offset: 2px;
}

.form-field-wrapper.has-errors label {
    color: red;
}

/* Hide Google ReCaptcha Badge */

/* .grecaptcha-badge {
	visibility: hidden !important;
} */

.forgot-password-link,
.forgot-password-link:link,
.forgot-password-link:visited,
.forgot-password-link:hover,
.forgot-password-link:active {
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.recaptcha-note {
    font-size: 13px;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.recaptcha-note a:link,
.recaptcha-note a:visited,
.recaptcha-note a:hover,
.recaptcha-note a:active {
    color: inherit;
}

/* Password field */

.password-container {
    position: relative;
    display: flex;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
    margin-bottom: 0.5rem;
}

.toggle-password {
    position: absolute;
    /* background-color: red; */
    top: var(--pico-form-element-spacing-vertical);
    right: var(--pico-form-element-spacing-horizontal);
    /* transform: translateY(-50%); */
    cursor: pointer;
    width: 25px;

}

.password-requirements {
    list-style: none;
    padding: 0;
    font-size: 13px !important;
    line-height: 1.4;

}

.password-requirements li {
    color: grey;
    display: inline-block;
    margin-right: 3px;
}

.password-requirements li i {
    display: none;
    font-size: 16px;
    margin-top: 1px;
}

.password-requirements li.valid {
    color: black;

}

.password-requirements li.valid i {
    display: inline-block;
    vertical-align: top;
    margin-right: 1px;
    line-height: 1;
}

.password-requirements li.valid::before {
    /* content: '✔'; */
}