.participant_wrapper {
    max-width: 1000px;
}

.reg-form {
    /* background-color: rgb(255, 255, 255); */
    /* background-color: #478795; */
    border-color: blue;
}

.form-control {
    display: inline-block;
    /* background-color: rgb(193, 193, 214);
    color: white; */
}

.form-group {
    display: inline-block;
}

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

.reg-form {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
}

.reg-form * {
    box-sizing: border-box;
    line-height: 1.2;
}

.form__title {
    font-size: 2em;
    font-weight: 600;
}

.form__flex_raw {
    display: flex;
    flex-direction: row;
}

.form__item_normal, .form__custom_inputs {
    display: block;
    flex-direction: row;
}

.form__item_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* grid-auto-flow:row; */
    grid-gap: 5px;
    justify-content: left;
    padding-bottom: 5px;
}

.form__item_grid_projects {
    display: grid;
    /* grid-template-columns: 350px 350px; */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* grid-auto-flow:column; */
    grid-gap: 5px;
    justify-content: center;
}

/* .form__item_grid caption { */
.form_divider {
    font-size: 1em;
    font-weight: 600;
    color: #CEF6DD;
    margin: 20px 0 20px 0;
    border-bottom: 3px solid #dddddd;
}

.form__flex_column {
    display: flex;
    flex-direction: column;
}

.form__custom_inputs {
    /* border: 2px solid #14b64a; */
    margin-top: 10px;
}

/* this aligns all children of 'form__item' to the actual size of the element */
/* .form__item > * {
    align-self: flex-start;
} */

.form__label {
    font-weight: 400;
    padding: 5px 0; /* top-bottom and left-right */
}

.form__legend {
    font-weight: 900;
    padding: 5px 0; /* top-bottom and left-right */
}

/* input[type=text], select {
} */

.form__input {
    /* make the design consistent over all web browsers */
    -webkit-appearance: none;

    width: 100%;
    max-width: 525px;

    /* Fix for Safari/iOS date fields */
    min-height: calc(0.9em + (0.8em * 2) + 0.6em);

    padding: 0.8em;
    font-size: 0.9em;
    font-family: 'Source Sans 3', sans-serif;

    outline: none;
    border: 1px solid #CEF6DD;
    border-radius: 4px;
    background: #478795;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.form__select {
    -webkit-appearance: auto;
}

.form__input:required {
    /* border-color: rgb(0, 0, 0); */
    /* background: #fff8f8; */
}

.form_date_wrapper {
    padding-top: 0.8em;
    font-size: 0.9em;
    font-family: 'Source Sans 3', sans-serif;
    /* border: 1px solid #dddddd; */
    /* background: #f9f9f9; */
    outline: none;
    color: #CEF6DD;
}

select {
    color: #CEF6DD;
    -webkit-appearance: none;
}

[type="date"] {
    color: #CEF6DD;
    -webkit-appearance: none;
}

[type="checkbox"] {
    position: relative;
    left: 15px;
    top: -4px;
    z-index: 0;
    -webkit-appearance: none;
}

[type="checkbox"]+label {
    position: absolute;
}

[type="checkbox"]+label::before {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    border: 2px solid #478795;
    background-color: #fff;
    display: block;
    content: "";
    float: left;
    margin-right: 5px;
    z-index: 5;
    position: relative;
}

[type="checkbox"]:checked+label::before {
    box-shadow: inset 0px 0px 0px 3px #fff;
    background-color: #478795;
}

.form__item_atb {
    color: #a1a1a1;
    -webkit-appearance: none;
    padding-top: 10px;
    padding-bottom: 20px;
}

.form__item_atbtext {
    color: #a1a1a1;
    -webkit-appearance: none;
    padding-left: 30px;
    padding-top: 10px;
}

#dateOfBirth.form__input {
    max-width: 150px;
}

.form__item_radio {
    color: #a1a1a1;
    display: block;
    padding-top: 10px;
    min-height: 40px;
}

.form__one_line {
    max-width: 1000px;
}

.form__field {
    border: 1px solid #CEF6DD;
    /* width: 100%; */
    display: block;
    max-width: 1025px;
}

.form__input:focus {
    background: #478795;
}

.form__input::placeholder {
    color: #CEF6DD;
}

.form__input--error {
    color: #d50000;
    background: #fff8f8;
    border-color: #d50000;
}

.form__input--error::placeholder {
    color: #ffbfbf;

}

.form_container {
    padding-top: 30px;
}

.form__error {
    padding-top: 10px;
    color:#d50000;
    font-size: 0.9em;
    visibility: hidden;
}

.error-msg {
	color: #af4242;
	background-color: #fde8ec;
	padding: 10px;
	display: none;
	padding: 10px;
	font-size: 16px;
}
.success-msg {
	margin-bottom: 30px;
	color: green;
	background-color: #d2ffd2;
	padding: 10px;
	display: none;
	font-size: 16px;
}

.form__info {
    padding-top: 10px;
    padding-left: 30px;
    color:#61a978;
    font-size: 0.9em;
}

.form__input--error + .form__error {
    visibility: visible;
}

.form__input--small {
    max-width: 250px;
}

textarea.form__input {
    resize: none;
    min-height: 50px;
}

.submit-button-container {
    justify-content: center;
}

.form__btn {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 16px;
    margin: 10px 0;
    color: #ffffff;
    background: #14b64a;
    border: 2px solid #0fa942;
    border-radius: 5px;

    cursor: pointer;
    outline: none;
}

.form__btn:active {
    background: #0fa942;
}

.form__btn_add_g {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 16px;
    margin: 10px 0;
    color: #aaaaaa;
    background: #d6d6d6;
    border: 2px solid #aaaaaa;
    border-radius: 5px;

    cursor: pointer;
    outline: none;
}

.form__btn_add_g:active {
    background: #a1a1a1;
}

/* form {
    width: 430px;
    height: fit-content;
    border: 12px solid #224c30;
    border-radius: 3mm;
    background: rgb(97, 28, 28);
} */

.close {
    position: relative;
    right: 10px;
    top: 50%;
    transform: translate(0, -50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: rgb(154, 20, 20);
    transition: 0.25s;
}


.close_wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.close:hover {
    background: rgb(255, 133, 81);
    color: black;
}

.hidden {
    display: none;
}

/* select {
    width: 10rem;
    background-color: #c3f0c6;
    border: #b2eeac 2px solid;
}

select>option {
    background-color: #b8e1ba;
}
 */
/* TESTING */

/* select {
    color: #000000;
}

select::invalid {
    color: #ff0000;
} */

.vy-content {
    max-width: 800px;
    margin: auto;
}

a {
    color: #CEF6DD;
}

label {
    padding-right: 5px;
}
