section img {
    max-width: 100%;
}

section#contact {
    display: flex;
    flex-direction: column;
}

section#contact>#contact-details {
    display: flex;
    flex-direction: column;
    background: #F6F7FB;
    padding: 32px 16px;
}

#contact-details>h1 {
    padding-block-end: 16px;
    color: var(--logo-color);
    font-size: 36px;
    font-weight: 700;
    line-height: 36px;
    text-transform: uppercase;
}

#contact-details>p {
    color: #5A5A5A;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

#contact-details>dl>div {
    margin-block: 15px;
}

#contact-details>dl>div>dt {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
}

#contact-details>dl>div>dd {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

#contact-form {
    padding: 16px;
    border-block: 1px solid rgba(128, 128, 128, 0.40);
}

#contact-form>div>h2 {
    color: #1A1A1A;
    font-size: 28px;
    font-weight: 600;
    line-height: 39.2px
}

#contact-form>div>p {
    color: #5A5A5A;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

#contact-form>div>form {
    padding-block-start: 40px;
}

#contact-form>div>form>p {
    margin-block-end: 20px;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    gap: 20px;
}

#contact-form>div>form>p>input,
#contact-form>div>form>p>textarea {
    color: #808080;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    flex: 1 0 0;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.80);
}

#contact-form>div>form>p>select {
    color: #808080;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    flex: 0 0 0;
    /* width: 100%; */
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.80);
}

#contact-form>div>form>p>textarea {
    color: #808080;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    height: 28vw;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.80);
}

#contact-form>div>form>button {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin-block-start: 48px;
}

.btn {
    margin-inline: auto;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

.btn-orange {
    color: #FFF;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    background-color: var(--logo-color);
    border: 1px solid var(--logo-color);
}

#location {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #808080;
}

#map-locator {
    position: relative;
}

#map-location-details {
    position: absolute;
    top: 26px;
    right: 4vw;
    border-radius: 12px;
    background: #FFF;
    padding: 12px;
}

#location-details-header {
    display: flex;
    gap: 8px;
}

#location-details-header>img {
    width: 40px;
    height: 40px;
}

#location-details-header>div>h3 {
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

#location-details-header>div>p {
    color: #5A5A5A;
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
}

#map-location-details>address {
    display: flex;
    flex-direction: column;
    margin-block: 16px;
}

#map-location-details>address>div:first-of-type {
    color: #5A5A5A;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.012px;
    font-style: normal;
}

#map-location-details>address>div:last-of-type {
    order: -1;
    color: #1A1A1A;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

#map-location-details>a {
    grid-area: links;
    color: #2F4EA6;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

#location-arrow {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* bottom: -12vh; */
    left: 50%;
}

#location-arrow>img:first-of-type {
    position: relative;
    /* top: 33px;
    left: 44%; */
}

#location-arrow>img:last-of-type {
    position: relative;
    /* top: 90px;
    left: 29%; */
}

#location-details {
    padding: 24px 16px 32px 16px;
}

#location-details>h3 {
    color: var(--logo-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.32px;
    padding-block-end: 24px;
}

#location-details>p {
    color: #1A1A1A;
    font-size: 28px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: -0.28px;
    padding-block-end: 28px;
}

#location-details>h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.02px;
    padding-block-end: 8px;
}

#location-details>address {
    color: #5A5A5A;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.02px;
}

main.blurred {
    filter: blur(4px);
    pointer-events: none;
    /* Prevent interactions with the blurred content */
}

#response-container {
    display: none;
}

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--logo-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#response-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    /* Ensure it's on top of other content */
    background-color: #4caf50;
    /* Default success color */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease, top 0.5s ease;
}

#response-container.error {
    background-color: #f44336;
    /* Error color */
}

#response-container.show {
    opacity: 1;
    top: 20px;
    /* Slightly lower for animation effect */
}


@media (min-width:768px) {}

@media (min-width:1024px) {
    section#contact {
        flex-direction: row;
        background: #F6F7FB;
    }

    section#contact>#contact-details {
        flex: 0 0 45%;
    }

    #contact-details>h1 {
        font-size: 80px;
        font-weight: 700;
        line-height: 120px;
        letter-spacing: -0.512px;
    }

    #contact-details>p {
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        letter-spacing: -0.016px;
    }

    #contact-details>dl {
        display: flex;
        gap: 20px;
        margin-block-start: 54px;
    }

    #contact-details>dl>div:first-of-type {
        flex: 0 0 47%;
    }

    #contact-details>dl>div:last-of-type {
        flex: 0 0 53%
    }

    #contact-details>dl>div>dt {
        font-size: 16px;
        letter-spacing: -0.016px;
    }

    #contact-details>dl>div>dd {
        font-size: 16px;
        letter-spacing: -0.016px;
    }

    section#contact>#contact-form {
        flex: 0 0 55%;
        display: flex;
        justify-content: center;
        margin-block: 50px;
        border-block: none;
    }

    section#contact>#contact-form>div {
        background-color: #ffffff;
        padding: 64px;
        border-radius: 24px;
        border: 1px solid rgba(128, 128, 128, 0.40);
    }

    #contact-form>div>h2 {
        font-size: 36px;
        line-height: 50.4px;
    }

    #contact-form>div>form>p>input {
        font-size: 16px;
        line-height: 24px;
    }

    #contact-form>div>form>p>select {
        font-size: 16px;
        line-height: 24px;
    }

    #contact-form>div>form>p>textarea {
        color: #808080;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        height: 8vw;
    }

    #location {
        flex-direction: row;
        align-items: center;
        border-bottom: none;
    }

    #map-locator>img {
        padding: 64px;
    }

    #map-location-details {
        top: 20vh;
        right: 17vw;
    }
}