/************ MOBILE - 360PX *************/
/*****************************************/
@media only screen and (min-width: 0rem) {
    /************ LOCATIONS ******************/
    /*****************************************/
    #locations-1696 {
        position: relative;
        z-index: 1;
    }
    #locations-1696 .cs-container {
        width: 100%;
        /* changes to 1920px at tablet */
        max-width: 31.25rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #locations-1696 .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
    }
    #locations-1696 .cs-item {
        text-align: center;
        list-style: none;
        width: 100%;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        /* 24px - 100px top & bottom*/
        padding: clamp(1.5rem, 7vw, 6.25rem) 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-column: span 12;
        grid-row: span 1;
        position: relative;
        z-index: 1;
        /* bottom border */
    }
    #locations-1696 .cs-item::after {
        content: "";
        width: 100%;
        height: 1px;
        /* to change the color of the bottom border, adjust the second color (at 50%). the first and third will blend the color to transparent */
        /* note you'll also have to change the color in the tablet media query when the lines go vertical */
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        position: absolute;
        bottom: 0;
        left: 0;
    }
    #locations-1696 .cs-item:hover .cs-h3 {
        color: var(--bodyTextColorWhite);
    }
    #locations-1696 .cs-item:hover .cs-item-text {
        color: var(--bodyTextColorWhite);
        opacity: 0.9;
    }
    #locations-1696 .cs-item:hover .cs-background {
        opacity: 1;
    }
    #locations-1696 .cs-item:last-of-type::after {
        content: none;
    }
    #locations-1696 .cs-h3 {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
        font-weight: bold;
        line-height: 1.2em;
        margin: 0 0 1rem 0;
        color: var(--headerColor);
    }
    #locations-1696 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        text-decoration: none;
        max-width: 18.75rem;
        padding: 0;
        color: var(--bodyTextColor);
    }
    #locations-1696 .cs-address {
        max-width: 20ch;
        margin-bottom: 1rem;
    }
    #locations-1696 .cs-link {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2em;
        text-align: inherit;
        text-decoration: none;
        margin-top: auto;
        /* setting minimum top spacing with padding and using margin-top: auto; to ensure the link is always at the bottom of the item */
        /* 24px - 32px */
        padding-top: clamp(1.5rem, 1vw, 2rem);
        color: var(--secondary);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.625rem;
        transition: color 0.3s;
    }
    #locations-1696 .cs-link:hover .cs-arrow {
        transform: translateX(0.25rem);
    }
    #locations-1696 .cs-link-text {
        width: fit-content;
    }
    #locations-1696 .cs-arrow {
        width: 1.25rem;
        height: auto;
        display: block;
        transition: filter 0.3s, transform 0.3s;
    }
    #locations-1696 .cs-background {
        width: 100%;
        height: 100%;
        opacity: 0;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: opacity 0.3s;
    }
    #locations-1696 .cs-background:before {
        /* background color overlay */
        content: "";
        width: 100%;
        height: 100%;
        background: #1a1a1a;
        opacity: 0.84;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #locations-1696 .cs-background img {
        width: 100%;
        height: 100%;
        /* Makes img tag act as a background image */
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    /************ CONTACT FORM ***************/
    /*****************************************/
    #contact-2320 {
        padding: var(--sectionPadding);
        display: flex;
        flex-direction: column;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
        z-index: 1;
    }
    #contact-2320 .cs-container {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 36.25rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #contact-2320 .cs-container2 {
        width: 100%;
        /* changes to 1280px at desktop */
        max-width: 36.25rem;
        padding: 5rem 3rem;
        margin: auto;
        position: relative;
        z-index: 1;
    }
    #contact-2320 .cs-container2 .cs-topper {
        color: #fff;
    }
    #contact-2320 .cs-content {
        text-align: left;
    }
    #contact-2320 .cs-title {
        margin-bottom: 2rem;
    }
    #contact-2320 .cs-form {
        border-radius: 1rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    #contact-2320 .cs-label {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        width: 100%;
        color: var(--headerColor);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.25rem;
    }
    #contact-2320 .cs-input {
        font-size: 1rem;
        width: 100%;
        height: 3.5rem;
        padding: 0;
        padding-left: 1.5rem;
        color: var(--headerColor);
        background-color: #f7f7f7;
        border: none;
        /* prevents padding from adding to height and width */
        box-sizing: border-box;
    }
    #contact-2320 .cs-input::placeholder {
        color: #7d799c;
        opacity: 0.6;
    }
    #contact-2320 .cs-textarea {
        min-height: 7.5rem;
        padding-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-family: inherit;
    }
    #contact-2320 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        padding: 0 1.5rem;
        background-color: var(--primary);
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #contact-2320 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #contact-2320 .cs-button-solid:hover:before {
        width: 100%;
    }
    #contact-2320 .cs-submit {
        text-transform: uppercase;
        background-color: var(--secondaryLight);
        color: var(--headerColor);
        border: none;
        transition: color 0.3s;
    }
    #contact-2320 .cs-submit:hover {
        cursor: pointer;
        color: #fff;
    }
    #contact-2320 .cs-map {
        width: 100%;
        max-width: 39.375rem;
        height: 25rem;
        position: relative;
        z-index: 1;
        display: block;
    }
    #contact-2320 .cs-iframe-wrapper {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        /* 40px - 56px */
        bottom: clamp(2.5rem, 5vw, 3.5rem);
    }
    #contact-2320 .cs-iframe-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    #contact-2320 .cs-box {
        width: 90%;
        max-width: 28.125rem;
        /* 16px - 32px top & bottom */
        /* 16px left & right */
        padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 2.4vw, 1rem);
        background-color: #fff;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
    #contact-2320 .cs-box:before {
        content: '';
        width: 100%;
        height: 100%;
        background: var(--primary);
        pointer-events: none;
        opacity: 0.1;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #contact-2320 .cs-icon {
        width: 2rem;
        height: auto;
        display: block;
    }
    #contact-2320 .cs-flex {
        display: flex;
        flex-direction: column;
    }
    #contact-2320 .cs-header {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2em;
        margin: 0 0 0.5rem;
        color: var(--headerColor);
    }
    #contact-2320 .cs-address {
        font-size: clamp(0.75rem, 2.8vw, 1rem);
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
    }
    #contact-2320 .cs-hours {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #contact-2320 .cs-hours-info {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 3vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        width: 60%;
        max-width: 28ch;
        margin: 0;
        color: var(--bodyTextColorWhite);
    }
    #contact-2320 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #contact-2320 .cs-background:before {
        /* background color overlay */
        content: '';
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.72;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #contact-2320 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Makes img tag act as a background image */
        object-fit: cover;
    }
}

/************ TABLET - 768PX *************/
/*****************************************/
@media only screen and (min-width: 48rem) {
    /************ LOCATIONS ******************/
    /*****************************************/
    #locations-1696 .cs-container {
        max-width: 120rem;
    }
    #locations-1696 .cs-item {
        grid-column: span 3;
    }
    #locations-1696 .cs-item::after {
        width: 1px;
        height: 100%;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #bababa 50%, rgba(255, 255, 255, 0) 100%);
        right: 0;
        left: initial;
    }
}

/************ DESKTOP - 1024PX ***********/
/*****************************************/
@media only screen and (min-width: 64rem) {
    /************ LOCATIONS ******************/
    /*****************************************/
    #locations-1696 .cs-item {
        /* 24px - 100px */
        padding-right: clamp(1.5rem, 5vw, 6.25rem);
        padding-left: clamp(1.5rem, 5vw, 6.25rem);
    }
    /************ CONTACT FORM ***************/
    /*****************************************/
    #contact-2320 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 3.25rem;
    }
    #contact-2320 .cs-container2 {
        max-width: 80rem;
    }
    #contact-2320 .cs-content {
        max-width: 32.625rem;
        /* 24px - 80px */
        padding: clamp(2rem, 5vw, 5rem) 0;
    }
    #contact-2320 .cs-title,
    #contact-2320 .cs-topper,
    #contact-2320 .cs-text {
        text-align: left;
        margin-left: 0;
    }
    #contact-2320 .cs-title {
        max-width: 32.625rem;
    }
    #contact-2320 .cs-services,
    #contact-2320 .cs-phone {
        width: 47%;
    }
    #contact-2320 .cs-button-solid {
        margin-left: 0;
    }
    #contact-2320 .cs-map {
        max-width: 39.375rem;
        height: auto;
        order: -1;
    }
}

/************ DARK MODE ******************/
/*****************************************/
@media only screen and (min-width: 0rem) {
    /************ LOCATIONS ******************/
    /*****************************************/
    body.dark-mode #locations-1696 .cs-h3,
    body.dark-mode #locations-1696 .cs-item-text {
      color: var(--bodyTextColorWhite);
    }
    body.dark-mode #locations-1696 .cs-item-text {
      opacity: 0.9;
    }
    body.dark-mode #locations-1696 .cs-item {
      background-color: var(--darkMedium);
    }
    /************ CONTACT FORM ***************/
    /*****************************************/
    body.dark-mode #contact-2320 .cs-topper {
        color: var(--secondaryLight);
    }
    body.dark-mode #contact-2320 .cs-title,
    body.dark-mode #contact-2320 .cs-header,
    body.dark-mode #contact-2320 .cs-address {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #contact-2320 .cs-box {
        background-color: var(--dark);
    }
    body.dark-mode #contact-2320 .cs-box:before {
        background-color: #000;
        opacity: 0.4;
    }
    body.dark-mode #contact-2320 .cs-label {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #contact-2320 .cs-input {
        background-color: rgba(255, 255, 255, 0.051);
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #contact-2320 .cs-input::placeholder {
        color: #fff;
        opacity: 0.5;
    }
    body.dark-mode #contact-2320 .select {
        background-color: rgb(27, 27, 27);
    }
}