body {
    display: grid;
}

/* ---------- Intro image section ---------- */

.navPlusImage {
    display: grid;
    grid-template-rows: min-content 1fr;
    min-height: 360px;
}

.imagePlusLogo {
    position: relative;
}

.featureImageWrapper {
    position: absolute;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.featureImage, .featureImage-low {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featureImage {
    z-index: 0;
}

.featureImage-low {
    z-index: -1;
}

.bcorpLogo {
    position: absolute;
    height: 125px;
    top: 90px;
    filter: drop-shadow(5px 5px 10px rgba(132, 142, 138, 0.5));
}

.bcorpRegular {
    right: -1vw;
}

.bcorpOffset {
    right: 4vw;
}

.poetry {
    background-color: var(--tan-color);
    font-family: Fraunces, ui-serif;
    font-size: max(max(2.8vh, 28px), min(2.8vw, 28px));
    text-wrap: nowrap;
    padding: max(max(0.5vh, 5px), min(0.5vw, 5px))
        max(max(1vh, 10px), min(1vw, 10px));
    filter: drop-shadow(5px 5px 10px rgba(132, 142, 138, 0.5));
}

.poetryBox {
    position: absolute;
    margin-left: max(5vh, min(7vw, 70px));
    margin-top: 70px;
}

.poetryLine {
    margin-bottom: max(max(1.3vh, 13px), min(1.3vw, 13px));
}

#poetry1 {
    margin-left: max(max(2vh, 20px), min(2vw, 20px));
}

#poetry2 {
    margin-left: max(max(1vh, 10px), min(1vw, 10px));
    padding-right: max(max(3vh, 30px), min(3vw, 30px));
}

#poetry3 {
    margin-left: max(max(5vh, 50px), min(5vw, 50px));
    max-width: max(max(15vh, 150px), min(15vw, 150px));
}

#poetry4 {
    margin-left: max(max(3vh, 30px), min(3vw, 30px));
}

#poetry5 {
    margin-left: max(max(1vh, 10px), min(1vw, 10px));
}

/* ---------- Therapist display and search section ---------- */

.firstStepGrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.firstStepBox {
    margin-top: max(max(2vh, 20px), max(2vw, 20px));
    margin-left: max(max(1vh, 10px), max(1vw, 10px));
    grid-row-start: 1;
    grid-row-end: 3;
    height: max(max(23vh, 230px), min(23vw, 230px));
    position: relative;
    overflow: hidden;
    width: 173px;
    align-self: center;
}

.oxidize, .oxidize-low {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oxidize {
    z-index: 0;
}

.oxidize-low {
    z-index: -1;
}

.firstStepText {
    color: white;
    font-size: max(max(3.5vh, 35px), min(3.5vw, 35px));
    margin-top: max(max(2.5vh, 25px), min(2.5vw, 25px));
    margin-left: max(max(3.2vh, 32px), min(3.2vw, 32px));
    font-family: Plaster, "Adjusted Arial Fallback", ui-sans-serif;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.stepText, .stepText2 {
    white-space: normal;
}

.stepText3 {
    display: none;
}

.findRightTherapist {
    margin-top: max(max(2vh, 20px), min(2vw, 20px));
    grid-column-start: 2;
    grid-column-end: 7;
    background-color: var(--salmon-color);
    color: white;
    font-variant: small-caps;
    font-family: Baloo2-Bold, ui-sans-serif;
    text-align: center;
    font-size: max(max(2.5vh, 25px), min(2.5vw, 25px));
    margin-right: max(max(2vh, 20px), min(2vw, 20px));
    margin-left: max(max(1vh, 10px), min(1vw, 10px));
    line-height: max(max(3.5vh, 35px), min(3.5vw, 34px));
    height: min-content;
}

.headshotBox {
    grid-column-start: 2;
    grid-column-end: 7;
    overflow: hidden;
    height: min-content;
    display: grid;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
}

.headshotSwipe {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.headshotSwipe::-webkit-scrollbar {
    display: none;
}

.therapistFrame {
    width: 150px;
    min-width: 150px;
    height: 200px;
    overflow: hidden;
    display: grid;
    justify-content: center;
    margin-left: 10px;
    margin-top: 10px;
}

.therapistFrame1 {
    margin-left: -30px;
}

.therapistImage {
    width: max(max(13.5vh, 200px), min(13.5vw, 200px));
    height: max(max(13.5vh, 200px), min(13.5vw, 200px));
}

.filterBarBox {
    display: flex;
    flex-wrap: wrap;
    margin-top: max(3.5vh, min(3.5vw, 35px));
    margin-left: max(0.9vh, min(0.9vw, 9px));
}

.filterBar, .filterBar2 {
    background-color: var(--tan-color);
    width: max(15.8%, 15.8vh);
    min-width: 5vh;
    text-align: center;
    color: var(--forest-color);
    padding-top: max(0.5vh, min(0.5vw, 5px));
    padding-bottom: max(0.5vh, min(0.5vw, 5px));
    font-family: Baloo2-Bold, ui-sans-serif;
    font-variant: small-caps;
    font-weight: bold;
    border: max(0.5vh, min(0.5vw, 5px)) solid white;
    border-radius: max(0.5vh, min(0.5vw, 5px));
    font-size: max(max(2.4vh, 24px), min(2.4vw, 24px));
}

.filterBar2 {
    width: 100%;
}

.popupLink:hover * {
    background-color: var(--blueWhite-color);
}

.browseLink:hover * {
    background-color: var(--ocean-color);
}

.expandIcon {
    display: none;
}

.browseLink {
    width: max(15.8%, 15.8vh);
    min-width: 140px;
    text-decoration: none;
}

.browse {
    background-color: var(--forest-color);
    color: var(--spring-color);
    width: 100%;
}

.browse:hover {
    color: var(--forest-color);
}

@supports selector(::scroll-button(*)) {

    .headshotSwipe::scroll-button(*) {
        border: 0;
        background: none;
        color: var(--spring-color);
        opacity: 0.7;
        cursor: pointer;
    }

    .headshotSwipe::scroll-button(*):hover,
    .headshotSwipe::scroll-button(*):focus {
        opacity: 1;
    }

    .headshotSwipe::scroll-button(*):active {
        translate: 1px 1px;
    }

    .headshotSwipe::scroll-button(*):disabled {
        opacity: 0;
        cursor: unset;
    }

    .headshotSwipe::scroll-button(left) {
        content: "" / "Previous";
        width: 0;
        height: 0;
        border-top: 6.93px solid transparent;
        border-bottom: 6.93px solid transparent;
        border-right:12px solid var(--spring-color);
    }

    .headshotSwipe::scroll-button(right) {
        content: "" / "Next";
        width: 0;
        height: 0;
        border-top: 6.93px solid transparent;
        border-bottom: 6.93px solid transparent;
        border-left:12px solid var(--spring-color);
    }

    .headshotSwipe {
        anchor-name: --headshotCarousel;
    }

    .headshotSwipe::scroll-button(*) {
        position: absolute;
        position-anchor: --headshotCarousel;
    }

    .headshotSwipe::scroll-button(left) {
        right: calc(anchor(left) + 20px);
        bottom: calc(anchor(center));
    }

    .headshotSwipe::scroll-button(right) {
        left: calc(anchor(right) + 20px);
        bottom: calc(anchor(center));
    }
}

@supports (scroll-snap-align: center) {

    .therapistFrame {
        scroll-snap-align: center;
        flex: 0 0 2vw;
    }
}

@media (width <= 995px) {

    .filterBarBox {
        justify-content: center;
    }
}

@media (width < 700px) {

    .banner {
        anchor-name: banner;
    }

    .firstStepGrid {
        grid-template-columns: auto;
        grid-row-gap: 0;
    }

    .firstStepBox {
        grid-row-start: 1;
        grid-row-end: 1;
        height: min-content;
        width: 95%;
        margin-left: 0;
        justify-self: center;
    }

    .findRightTherapist, .headshotBox {
        grid-column-start: 1;
        grid-column-end: 1;
    }

    .oxidize, .oxidize-low {
        object-fit: cover;
    }

    .firstStepText {
        padding: 20px;
        margin-top: 0;
        margin-left: 0;
    }

    .stepText2 {
        display: none;
    }

    .stepText3 {
        display: block;
        white-space: nowrap;
    }

    .headshotBox {
        margin-top: 0;
    }

    .filterBarBox {
        margin-top: 0;
    }
}

/* ---------- Popup section ---------- */

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    display: grid;
    z-index: 20;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

form {
    align-self: center;
    justify-self: center;
}

.popup {
    padding: 20px;
    border-radius: 5px;
    width: min(70vw, 500px);
    position: relative;
    transition: all 0.5s ease-in-out;
    display: grid;
    background-color: var(--tan-color);
}

.popup .close {
    position: absolute;
    top: 10px;
    right: 20px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup .close:hover {
    color: #06D85F;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

.popupLink {
    text-decoration: none;
    min-width: 140px;
    width: max(16.6%, 16.6vh);
}

.optionBox {
    display: grid;
    justify-self: center;
    align-self: center;
    width: 70%;
    scrollbar-width: none;
}

.optionBox::-webkit-scrollbar {
    display: none;
}

.explainer, .checkBoxLabel {
    display: grid;
    margin-top: max(max(1vh, 10px), min(1vw, 10px));
    justify-self: center;
    height: max(max(7vh, 70px), min(7vw, 70px));
    line-height: 1em;
}

.checkBoxLabel:hover {
    background-color: var(--sage-color);
}

.checkBoxLabel {
    font-family: Baloo2, ui-sans-serif;
    font-size: 1.3em;
    cursor: pointer;
    align-content: center;
    text-align: center;
    width: 100%;
}

@media (width < 800px) {

    .checkBoxLabel {
        margin-top: 0;
    }
}

@media (width < 700px) {

    .popupLink, .browseLink {
        width: 98%;
        position: relative;
    }

    .expandIcon {
        display: block;
        position: absolute;
        text-decoration: none;
        color: var(--spring-color);
        z-index: 1;
        top: 18px;
        right: 15px;
        font-size: max(max(1.6vh, 16px), min(1.6vw, 16px));
    }
}

@media (width < 500px) {

    .checkBoxLabel {
        font-size: 1.2em;
    }
}

@media (width < 400px) {

    .checkBoxLabel_specialty {
        margin-left: max(max(2vh, 20px), min(2vw, 20px));
    }
}

.checkbox {
    cursor: pointer;
    scale: 1.5;
    align-self: center;
    justify-self: center;
    visibility: hidden;
    width: 1px;
    height: 1px;
    position: absolute;
}

/* ------ Specialty Popup section ------ */

.specialtyTitle {
    font-family: Baloo2, ui-sans-serif;
    font-size: 1.4em;
    text-align: center;
    width: 70%;
    justify-self: center;
    margin-bottom: max(max(2vh, 20px), max(2vw, 20px));
}

.specDetails {
    padding-right: max(max(2vh, 20px), max(2vw, 20px));
    padding-left: max(max(2vh, 20px), max(2vw, 20px));
    padding-bottom: max(max(2vh, 20px), max(2vw, 20px));
    cursor: pointer;
    width: 100%;
}

.optionBox:has(.specDetails[open]) {
    & > details:not([open]) {
        display: none;
    }
}

.optionBox_specialtyPopup {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    align-self: center;
    width: 80%;
    max-height: 600px;
    overflow: scroll;
}

.specSummary {
    font-family: Baloo2, ui-sans-serif;
    font-size: 1.3em;
}

.checkBoxLabel_specialty {
    font-family: Baloo2, ui-sans-serif;
    height: max(max(5vh, 50px), min(5vw, 50px));
    width: 100%;
    line-height: 1em;
}

@media (width < 650px) {

    .specialtyTitle {
        font-size: 1.3em;
    }

    .specSummary {
        font-size: 1.3em;
    }

    .specDetails {
        padding: max(1vh, min(1vw, 10px)) max(2vh, min(2vw, 20px))
        max(1vh, min(1vw, 10px)) max(max(2vh, 10px), max(2vw, 10px));
    }
}

@media (width < 500px) {

    .specDetails {
        padding-bottom: max(max(0.2vh, 2px), max(0.2vw, 2px));
        position: relative;
        z-index: 50;
        background-color: var(--tan-color);
    }

    .specialtyTitle {
        margin-bottom: 0;
    }
}

/* ----- Insurance Popup Section ----- */

.insLogo {
    width: 80%;
    height: 100%;
    max-width: 13vh;
    min-width: 9vh;
    justify-self: center;
}

/* ------ Alerts section ----- */

.alerts {
    display: grid;
    justify-content: center;
    background-color: white;
}

.alert {
    color: var(--red-color);
    font-family: Baloo2-Bold, ui-sans-serif;
    font-size: max(2.25vh, 22.5px);
    padding-top: max(1vh, 10px);
    margin-bottom: max(-10vh, -10px);
}