html,
body {
    margin: 0;
}

h1 {
    color: var(--study-header-font-color);
}

.main {
    color: var(--body-font-color);
    display: flex;
    font-size: var(--body-font-size);
    line-height: 1.43;
    min-height: 100vh;
}

.main,
input {
    font-family: var(--body-font-family), sans-serif;
}

.column {
    width: 50%;
}

.studyDescriptionContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 3.5rem;
}

.studyDescriptionContainer > p {
    margin-top: 0;
}

.studyDescriptionContainer > ul {
    margin: 0 0 1rem;
}

.logo {
    margin: var(--logo-align);
    width: var(--logo-width);
    padding: var(--logo-padding);
}

#app > .logo {
    display: none;
}

#app > .language-picker {
    display: none;
}

.formStudyBenefitsContaner {
    display: flex;
}

.formContainer {
    background-color: var(--form-bg-color);
    border-radius: 0.5rem;
    flex: 1 0 50%;
    margin-bottom: auto;
}

.formHeader {
    font-weight: bold;
}

.formFooter,
.studyFooter {
    font-size: 0.875rem;
    font-style: italic;
}

.studyFooter {
    margin: 1rem 0;
}

.studyFooter p:first-child {
    margin-top: 0;
}

.studyFooter p:last-child {
    margin-bottom: 0;
}

.formFooter > p:first-of-type {
    margin-top: 0;
}

.formFooter {
    margin-bottom: 1rem;
}

.studyBenefitsHeader {
    font-weight: bold;
    margin-left: 2.5rem;
}

.studyBenefitsHeader:empty {
    display: none;
}

.studyBenefits {
    list-style: none;
    padding-left: 1rem;
}

.studyBenefits:empty {
    display: none;
}

.studyBenefits li {
    display: flex;
    margin-bottom: 0.5rem;
}

.studyBenefits .marker {
    fill: var(--study-benefits-marker-color);
    flex-shrink: 0;
    height: 1.125rem;
    margin-right: 0.5rem;
    width: 1rem;
}

.castorLogoContainer {
    display: flex;
    justify-content: center;
    margin: auto 0 1.5rem;
}

.castorLogo {
    margin-top: 1.5rem;
    width: 175px;
}

.studyImageColumn {
    display: flex;
    position: relative;
}

.studyImageContainer {
    background-image: var(--study-image-url);
    background-position: center;
    background-size: cover;
    width: 100%;
}

.studyImageContainer::after {
    position: relative;
    display: block;
    top: 50%;
    background: linear-gradient(
        180deg,
        transparent,
        var(--study-image-container-bg-color) 99%
    );
    height: 50%;
    width: 100%;
    content: "";
}

.studyImageHeader {
    background-color: var(--study-image-header-bg-color);
    top: var(--study-image-header-top);
    bottom: var(--study-image-header-bottom);
    color: var(--study-image-header-font-color);
    left: 50%;
    padding: 20px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    width: 80%;
    font-size: var(--study-image-header-font-size);
    font-weight: 700;
}

.studyImageHeader:empty {
    display: none;
}

label:not(:empty) {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

input,
select {
    background-clip: padding-box;
    border-radius: 0.25rem;
    border: 1px solid #8B8E9C;
    box-sizing: border-box;
    color: var(--body-font-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0.375rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    background-color: #ffffff;
}

input:focus,
select:focus {
    border-color: #4391EA;
    box-shadow: 0 0 0 0.2rem #4391EA;
    outline: 0;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0 0.5rem 0.5rem 0;
}

button {
    display: inline-block;
    color: var(--body-font-color);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button[type="submit"] {
    color: white;
    background-color: var(--form-submit-button-bg-color);
    border-color: var(--form-submit-button-bg-color);
}

button:not(:disabled) {
    cursor: pointer;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.loaderContainer {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.loader {
    margin: auto;
    width: 100px;
}

[v-cloak] {
    display: none;
}

.form-wrapper {
    margin: 1rem;
}

.alert {
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    margin-top: -0.75rem;
}

label + .invalid-feedback {
    margin-top: -0.5rem;
}

.language-picker {
    width: fit-content;
    display: block;
    position: absolute;
    right: 50%;
    top: 2%;
    margin-right: 1%;
}

@media (max-width: 1000px) {
    .main {
        flex-direction: column-reverse;
    }

    .column {
        width: 100%;
    }

    .studyImageColumn {
        height: 40vh;
    }

    .studyDescriptionContainer > .logo {
        display: none;
    }

    .studyDescriptionContainer > .language-picker {
        display: none;
    }

    #app > .logo {
        display: flex;
        margin: 1.5rem auto;
        width: 98%
    }

    #app > .language-picker {
        width: fit-content;
        display: flex;
        margin: 1.5rem auto;
        position: static;
    }
}

@media (min-width: 1000px) and (max-width: 1366px) {
    .formStudyBenefitsContaner {
        flex-direction: column-reverse;
    }

    .studyBenefitsHeader {
        margin-left: 0;
        margin-top: 0;
    }

    .studyBenefits {
        padding-left: 0;
    }

    .formContainer {
        flex-shrink: 1;
    }
}

@media (max-width: 600px) {

    .studyImageColumn {
        min-height: 90vh;
        flex-direction: column;
    }

    .studyImageContainer {
        flex: 1;
        min-height: -webkit-fill-available;
    }

    .studyImageHeader {
        margin-block-start: 0;
        top: 0;
        bottom: 0;
        left: 0;
        position: static;
        transform: none;
        width: unset;
    }

    .studyHeaderText {
        margin-block-start: 9rem;
    }

    .formStudyBenefitsContaner {
        flex-direction: column-reverse;
    }

    .studyBenefitsHeader {
        margin-left: 0;
        margin-top: 0;
    }

    .studyBenefits {
        padding-left: 0;
    }

    .formContainer {
        flex-shrink: 1;
    }

    .studyImageHeader {
        font-size: 1.5rem;
    }

    .studyDescriptionContainer {
        margin: 0 1.5rem;
    }
}

