:root {
    --blue: #00ACCB;
    --pink: #EC008C;
}
#hero {
	position: relative;
    background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    height: 267px;
}

#hero .site-width {
    height: 100%;
}

#content.join {
	position: relative;
    padding: 72px 0 112px;
}
#content.join:before {
    content: '';
    position: absolute;
    top: 190px;
    left: 0;
    width: 121px;
    height: 165px;
    background-image: url('../img/join-before.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
#content.join:after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 162px;
    width: 210px;
    height: 253px;
    background-image: url('../img/join-after.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
#content .illu-donat {
    position: absolute;
    right: 0;
}
#content .illu-donat1 {
    top: 499px;
}
#content .illu-donat2 {
    top: 675px;
}
#content.join .page-title {
    margin-bottom: 28px;
    font-family: 'NextExitRounded', serif;
    font-size: 100px;
    font-weight: 700;
    line-height: normal;
}
#content.join .page-subtitle {
    max-width: 641px;
    margin-bottom: 40px;
    font-family: 'NextExitRounded', serif;
    font-size: 45px;
    font-weight: 700;
    line-height: normal;
}
#content.join .entry-content {
    max-width: 641px;
    margin-bottom: 60px;
}
#content.join .entry-content p {
    margin-bottom: 20px;
    font-size: 21px;
    line-height: 27px;
}

.form-section {
    position: relative;
    z-index: 1;
}
.form-section .form-title {
    margin-bottom: 10px;
    font-family: 'NextExitRounded', serif;
    font-size: 42px;
    font-weight: 700;
}
.form-note {
    margin-bottom: 20px;
    font-size: 20px;
}
form.flex {
	flex-wrap: wrap;
	gap: 52px 24px;
}
form.flex .form-field:not(:has(input[type="checkbox"])) {
	position: relative;
    width: calc(50% - 12px);
}
form.flex .form-field:not(:has(input[type="checkbox"])) label {
	display: block;
    font-size: 17px;
    font-weight: 500;
}
form.flex .form-field input:not([type="checkbox"]), 
form.flex .form-field select {
	width: 100%;
    padding: 20px 15px;
    font-size: 21px;
    background: #f0f0f0;
}
form.flex .form-field input:not([type="checkbox"]):disabled {
    color: #888;
}
form.flex .form-field input:not([type="checkbox"]):focus {
    background: #E9F4F9;
}
form.flex .form-field input:focus-visible {
    outline: 2px solid #000;
}
form.flex .form-field input.error:not([type="checkbox"]) {
    background: #F7E8F1;
}
form.flex .form-field input::placeholder, 
form.flex .form-field select::placeholder {
    font-size: 21px;
    color: #acacac;
}

.form-field .dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}
.form-field .result-item.active {
    background-color: var(--blue);
    color: #fff;
    cursor: pointer;
}
.form-field .dropdown.hidden {
    display: none;
}

.form-field .result-item {
    padding: 8px;
    cursor: pointer;
}

.form-field .result-item:hover {
    background-color: var(--blue);
    color: #fff;
}

.error-message {
    color: #AC0066;
    font-size: 16px;
    font-weight: 500;
}

form.flex .checkboxes .form-field {
	align-items: center;
	flex-wrap: wrap;
}
form.flex .checkboxes .form-field + .form-field {
	margin-top: 12px;
}
form.flex .checkboxes .form-field input {
	margin-top: 0;
	margin-bottom: 0;
}
#content form.flex .checkboxes .form-field + .form-field {
    margin-top: 32px;
}
#content form.flex .checkboxes .form-field p {
	margin-top: 0;
	font-size: 17px;
	line-height: normal;
}
#content form.flex .checkboxes .form-field p a {
    font-weight: 500;
    color: #005F70;
}
#content form.flex .checkboxes .form-field p a:hover {
    text-decoration: underline;
}
#content .g-recaptcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.g-recaptcha .error-message {
    color: #AC0066;
    font-size: 16px;
    font-weight: 500;
}
#content form.flex input[type="submit"] {
    display: block;
    width: 484px;
    margin: 0 auto;
    font-family: 'NextExitRounded', serif;
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;
    color: #fff;
}
#content form.flex input[type="submit"]:focus {
    outline: 2px solid #000;
}
form.flex .checkboxes .form-field .error-message {
	width: 100%;
	color: #AC0066;
	font-size: 14px;
    font-weight: 500;
}
form #errorMessages {
    width: 100%;
    color: #AC0066;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}
form #errorMessages.active {
    margin-bottom: -30px;
}

#loader-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    justify-content: center;
    align-items: center;
}

#loader-popup.active {
    display: flex;
}

#loader-popup .loader-popup-inner {
    position: relative;
    width: 868px;
    height: 536px;
    background: #fff;
    z-index: 3;
    text-align: center;
}
#loader-popup .popup-content.loading {
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
}
#loader-popup.active .popup-content.success {
    display: none;
}
#loader-popup.active.success .popup-content.loading {
    display: none;
}
#loader-popup.active.success .popup-content.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#loader-popup.active .loader-popup-inner .loader-animation {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loader-popup .loader-popup-text {
    margin-top: 49px;
    font-family: 'NextExitRounded', serif;
    font-size: 42px;
    font-weight: 700;
}
body.loader-popup-active > *:not(#loader-popup, #header) {
    filter: blur(5px);
}
#loader-popup .close-popup {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
}
#loader-popup.success .close-popup {
    display: block;
}
#loader-popup.success .img-wrapper {
    position: relative;
    margin-bottom: 22px;
}
#loader-popup.success .img-wrapper > img.confetti {
    position: absolute;
    bottom: -30px;
    right: calc(100% - 30px);
}
#loader-popup.success .img-wrapper > img.confetti:nth-child(2) {
    right: auto;
    left: calc(100% - 30px);
    transform: scaleX(-1);
}
#loader-popup.success .popup-title {
    margin-bottom: 14px;
    font-family: 'NextExitRounded', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: normal;
}
#loader-popup.success .popup-text {
    max-width: 400px;
    font-size: 17px;
    line-height: 28px;
}
#loader-popup.success .ampm-button {
    margin-top: 25px;
    margin-bottom: 6px;
}

@media (max-width: 1399px) {
    #content.join:before {
        transform: scale(0.85);
        transform-origin: left;
    }
    #content.join:after {
        transform: scale(0.85);
        transform-origin: bottom;
    }
    #content .illu-donat {
        transform: scale(0.85);
        transform-origin: right;
    }
    #content .illu-donat2 {
        top: 645px;
    }
    #content form.flex input[type="submit"] {
        width: 440px;
        font-size: 46px;
    }
}

@media (max-width: 1249px) {
    #content.join:before {
        transform: scale(0.75);
    }
    #content.join:after {
        transform: scale(0.75);
    }
    #content .illu-donat {
        transform: scale(0.75);
    }
    #content .illu-donat2 {
        top: 625px;
    }
    #content form.flex input[type="submit"] {
        width: 400px;
        font-size: 42px;
    }
}

@media (max-width: 1023px) {
    #content.join {
        padding: 60px 0 96px;
    }
    #content.join:before {
        top: 120px;
    }
    #content.join:after {
        left: 82px;
        transform-origin: bottom left;
    }
    #content .illu-donat {
        display: none;
    }
    #content.join .page-title {
        margin-bottom: 20px;
        font-size: 86px;
    }
    #content.join .page-subtitle {
        margin-bottom: 32px;
        font-size: 42px;
    }
    #content.join .entry-content p {
        margin-bottom: 18px;
        font-size: 20px;
    }
    form.flex {
        gap: 46px 24px;
    }
    form.flex .form-field input:not([type="checkbox"]), 
    form.flex .form-field select {
        font-size: 20px;
    }
    form.flex .form-field input::placeholder, 
    form.flex .form-field input::-webkit-input-placeholder {
        font-size: 20px;
    }
    #content form.flex input[type="submit"] {
        width: 370px;
        font-size: 40px;
    }
    #loader-popup .loader-popup-inner {
        max-width: 95vw;
    }
}

@media (max-width: 767px) {
    #content.join {
        padding: 48px 0 160px;
    }
    #content.join:before {
        top: 41px;
        height: 107px;
        transform: none;
    }
    #content.join:after {
        left: 24px;
        width: 116px;
        height: 141px;
        transform: none;
    }
    #content.join .page-title {
        margin-bottom: 12px;
        font-size: 60px;
    }
    #content.join .page-subtitle {
        margin-bottom: 24px;
        font-size: 32px;
    }
    #content.join .entry-content {
        margin-bottom: 41px;
    }
    #content.join .entry-content p {
        margin-bottom: 14px;
        font-size: 16px;
        line-height: 24px;
    }
    form.flex {
        gap: 32px 16px;
    }
    form.flex .form-field.half:not(:has(input[type="checkbox"])) {
        width: calc(50% - 8px);
    }
    form.flex .form-field:not(:has(input[type="checkbox"])):not(.half) {
        width: 100%;
    }
    form.flex .form-field:not(:has(input[type="checkbox"])) label {
        font-size: 16px;
    }
    form.flex .form-field input:not([type="checkbox"]), 
    form.flex .form-field select {
        padding: 15px 12px;
        font-size: 21px;
    }
    form.flex .form-field input::placeholder, 
    form.flex .form-field input::-webkit-input-placeholder {
        font-size: 17px;
    }
    form.flex .checkboxes .form-field {
        align-items: flex-start;
    }
    form.flex .checkboxes .form-field input {
        margin-top: 4px;
    }
    #content form.flex .checkboxes .form-field p {
        font-size: 16px;
    }
    form.flex .checkboxes .form-field label {
        width: calc(100% - 24px);
    }
    #content form.flex .checkboxes .form-field + .form-field {
        margin-top: 28px;
    }
    #content form.flex input[type="submit"] {
        width: 320px;
        margin-top: 14px;
        padding: 0 22px;
        font-size: 50px;
    }
    #loader-popup .loader-popup-inner {
        max-width: 95vw;
        height: 450px;
    }
    #loader-popup .loader-popup-text {
        font-size: 38px;
    }
    #loader-popup.success .img-wrapper {
        max-width: 60%;
    }
    #loader-popup.success .img-wrapper > img.confetti {
        bottom: -10px;
        max-width: 50% !important;
    }
    #loader-popup.success .img-wrapper > img.size-box-image {
        position: relative;
    }
    #loader-popup.success .popup-title {
        margin-bottom: 10px;
        font-size: 36px;
    }
    #loader-popup.success .popup-text {
        max-width: 95%;
        font-size: 16px;
        line-height: 24px;
    }
    .page-template-join #loader-popup .ampm-button {
        margin-top: 20px;
        font-size: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    .page-title,
    .page-subtitle,
    .entry-content,
    label {
        color: #fff;
    }
}