/* START hero */

.hero {
    min-height: 70vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero .uniformSpacing{
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.hero .uniformSpacing > div {
    width: 70%;
}

.hero > img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 80%;
    width: auto;
    aspect-ratio: 1/1;
}

@media screen and (max-width: 1200px) {
    .hero > img {
        width: 30%;
        height: auto;;
    }
}

@media screen and (max-width: 800px) {
    .hero .containerText {
        width: 100%;
    }

    .hero > img {
        position: relative;
        transform: initial;
        width: 50%;
    }

    .hero {
        align-items: center;
        gap: 1.5em;
    }
}


/* END hero */


/* START intro */
.intro.uniformSpacing{
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.intro.uniformSpacing > div {
    width: 70%;
}
/* END intro */

/* START formPage */

.formPage .uniformSpacing {
    max-width: 1480px;
}

.formLayout {
    display: grid;
    gap: 3em;
    align-items: flex-start;
}

.formNav {
    top: 7em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
}

.formCards {
    display: flex;
    flex-wrap: wrap;
    gap: .75em;
    width: 100%;
}

.formCard {
    display: flex;
    flex-direction: column;
    gap: .45em;
    padding: 1em;
    border: 1px solid rgba(18, 128, 164, .18);
    border-radius: var(--smallRadius);
    background-color: var(--basicWhite);
    color: var(--basicColor4);
    box-shadow: 0 8px 22px rgba(45, 47, 45, .1);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    width: calc((100% - 1em * 4) / 5);
}

.formCard:hover,
.formCard.active {
    border-color: var(--basicColor1);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 128, 164, .16);
}

.formCard strong {
    font-weight: 700;
    line-height: 1.2;
}

.formCard span {
    color: var(--basicColor1);
    font-size: .75em;
    line-height: 1.25;
}

.formMain {
    min-width: 0;
}

.formIntroPanel,
.formSuccess,
.seraDynamicForm {
    border-radius: var(--smallRadius);
    background-color: var(--basicWhite);
}

.formIntroPanel,
.formSuccess {
    padding: 1.3em;
    box-shadow: 0 8px 22px rgba(45, 47, 45, .1);
}

.formSuccess {
    margin-bottom: 1.5em;
    border: 1px solid rgba(18, 128, 164, .25);
    display: flex;
    flex-direction: column;
    gap: .4em;
    color: var(--basicColor1);
}

.backLink {
    display: inline-flex;
    margin-bottom: 1em;
    font-weight: 700;
}

.seraDynamicForm {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.formTitle {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.formSection {
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.formSection legend {
    padding: 0;
    margin-bottom: .3em;
    color: var(--basicBlack);
    font-size: 1.65em;
    font-weight: 700;
    line-height: 1.15;
}

.sectionIntro,
.fieldHelp {
    color: var(--basicColor1);
    font-size: .72em;
    line-height: 1.25;
}

.sectionGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8em 1.4em;
}

.formField {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35em;
}

.formField.wide {
    grid-column: 1 / -1;
}

.formField[hidden] {
    display: none;
}

.formField > label,
.checkField {
    color: var(--basicColor1);
    font-size: .82em;
    line-height: 1.25;
}

.requiredMark {
    color: var(--basicColor1);
    font-weight: 700;
}

.formField input:not([type="checkbox"]):not([type="file"]),
.formField select,
.formField textarea {
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: var(--smallRadius);
    background-color: var(--basicWhite);
    box-shadow: 3px 3px 14px rgba(0, 0, 0, .22);
    color: var(--basicColor4);
    font-size: .82em;
    padding: .6em .9em;
    min-height: 2.4rem;
}

.formField textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.formField input:focus,
.formField select:focus,
.formField textarea:focus {
    outline: 3px solid rgba(86, 194, 222, .3);
    border-color: var(--basicColor1);
}

.checkField {
    display: grid;
    grid-template-columns: 1em minmax(0, 1fr);
    gap: .55em;
    align-items: flex-start;
}

.checkField input[type="checkbox"] {
    width: 1em;
    height: 1em;
    margin-top: .1em;
    accent-color: var(--basicColor1);
}

.fileField {
    position: relative;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: .8em;
}

.fileField input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.fileButton,
.fileName {
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    border-radius: var(--smallRadius);
    box-shadow: 3px 3px 14px rgba(0, 0, 0, .22);
    font-size: .78em;
}

.fileButton {
    padding: .55em 1em;
    background-color: var(--basicColor1);
    border: 1px solid var(--basicColor1);
    color: var(--basicWhite);
    font-weight: 700;
    white-space: nowrap;
}

.fileName {
    overflow: hidden;
    padding: .55em .9em;
    border: 1px solid #d6d6d6;
    background-color: var(--basicWhite);
    color: var(--basicColor3);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fileHelp {
    color: var(--basicColor3);
}

.fileName.fileError,
.formError,
.formFileError {
    border-color: #d94f4f;
    color: #b42f2f;
}

.formError,
.formFileError {
    padding: .9em 1em;
    border: 1px solid rgba(217, 79, 79, .35);
    border-radius: var(--smallRadius);
    background-color: rgba(217, 79, 79, .08);
    font-size: .85em;
    line-height: 1.35;
}

.formNotice {
    padding: .9em 1em;
    border-left: 4px solid var(--basicColor1);
    border-radius: var(--smallRadius);
    background-color: rgba(86, 194, 222, .12);
    color: var(--basicColor1);
    font-size: .85em;
}

.formSubmit {
    display: flex;
    justify-content: center;
    padding-top: 1em;
}

.formSubmit button {
    min-width: 260px;
    border: 1px solid var(--basicColor1);
    border-radius: var(--basicRadius);
    background-color: var(--basicColor1);
    color: var(--basicWhite);
    cursor: pointer;
    font-weight: 700;
    padding: .75em 1.8em;
    transition: background-color .25s ease, color .25s ease;
}

.formSubmit button:hover,
.formSubmit button:focus {
    background-color: var(--basicWhite);
    color: var(--basicColor1);
}

@media screen and (max-width: 1200px) {
    .formCard{
        width: calc((100% - 1em * 2) / 3);
    }
}


@media screen and (max-width: 700px) {
    .formCard{
        width: calc((100% - 1em ) / 2);
    }

    .sectionGrid {
        grid-template-columns: 1fr;
    }

    .formField.wide {
        grid-column: auto;
    }

    .fileField {
        grid-template-columns: 1fr;
    }

    .fileButton,
    .fileName {
        justify-content: center;
    }

    .formSubmit button {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .formCard{
        width: 100%;
    }
}

/* END formPage */
