.custom-footer {
    display: flex;
    flex-direction: column;
}

.footer-first-row {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-repeat: no-repeat;
    background-position: center bottom !important;
    background-size: 100% auto;
    height: 424px;
    color: #99e6ff;
}

.footer-first-row .footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35%;
}

.footer-first-row p {
    max-width: 400px;
    margin: 0 0 20px 0;
    color: #99e6ff;
    font-weight: 600;
    font-size: 30px;
    line-height: 32px;
    font-family: "Instrument Sans", sans-serif;
}

.footer-first-row .footer-col #form-message p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #99e6ff;
    max-width: none;
}

.footer-first-row .footer-socials {
    display: flex;
    margin-top: 50px;
    gap: 0 25px;
}

.footer-first-row img {
    width: 40px;
    height: 40px;
}

.footer-first-row form {
    display: flex;
    flex-direction: column;
    justify-items: end;
    align-items: end;
    margin-top: -10px;
}

.footer-first-row form input,
.footer-first-row form textarea {
    width: 100%;
    color: #99e6ff !important;
    background-color: transparent;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #99e6ff !important;
    margin-bottom: 20px;
    outline: unset !important;
    padding-left: 0;
}

.footer-first-row form textarea {
    height: 150px;
}

.footer-first-row form input:focus,
.footer-first-row form textarea:focus {
    padding-left: 20px;
}

.footer-first-row form input::placeholder,
.footer-first-row form textarea::placeholder {
    color: #99e6ff !important;
}

.footer-first-row form button {
    width: 100px;
    font-family: "VT323", monospace;
    font-size: 1.4rem;
    color: #99e6ff;
    background: transparent;
    border-color: #99e6ff;
    padding: 2px 10px;
}

.footer-first-row form button:hover,
.footer-first-row form button:focus {
    width: 100px;
    color: #4f48d6;
    background: #99e6ff;
    border-color: #99e6ff;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.footer-container .footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-container .separator {
    margin: 0 10px 0 0;
    color: #fff;
    font-weight: 700;
}

.footer-container .footer-nav-menu a {
    display: block;
    position: relative;
    padding: 0.2em 0;
    overflow: hidden;
}

.footer-container .footer-nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.15em;
    transition: opacity 300ms, transform 300ms;
    opacity: 1;
    transform: translate3d(-110%, 0, 0);
}

.footer-container .footer-nav-menu a:hover::after,
.footer-container .footer-nav-menu a:focus::after {
    transform: translate3d(0, 0, 0);
}

.footer-container .footer-copyright p {
    font-size: 14px;
    margin: 0;
}

.footer-container .footer-nav-menu {
    flex: 1;
    text-align: center;
}

.footer-container .footer-nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.footer-container .footer-nav-menu li {
    margin: 0 10px;
}

.footer-container .footer-nav-menu a {
    text-decoration: none;
}

.footer-container .footer-google {
    max-width: 70%;
}

.footer-container .footer-google p {
    text-align: center;
    margin-bottom: 4px;
}

.footer-container .footer-google a {
    text-decoration: underline;
    color: #99e6ff;
}

.footer-container .footer-google a:hover {
    text-decoration: underline;
    color: #f83d49;
}

.backtotop {
    position: fixed; /* Sticks to the bottom right of the viewport */
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.backtotop button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.backtotop button.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .custom-footer {
        display: flex;
    }

    .footer-container {
        display: flex;
        width: 100%;
        align-items: center;
    }

    .footer-container .footer-copyright p {
        font-size: 10px;
        margin: 0;
    }

    .footer-container .separator {
        display: none;
    }

    .footer-container .footer-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .footer-container .footer-content div {
        margin: 5px 0;
    }

    .footer-container .footer-socials a {
        width: 20px;
        height: 20px;
        margin: 0 5px;
    }

    .footer-container .footer-socials a img {
        width: 20px;
        height: 20px;
    }

    .footer-container .footer-nav-menu ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        text-align: center;
        padding: 0;
    }

    .footer-container .footer-nav-menu li {
        margin: 2px 0;
    }

    .footer-container .footer-google {
        font-size: 14px;
    }
}

@media (max-width: 426px) {
    .footer-first-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        background-color: #4f48d6 !important;
        background-image: none !important;
        height: fit-content;
        color: #99e6ff;
        padding: 15px 0;
    }

    .footer-first-row .footer-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 90%;
    }

    .footer-first-row p {
        max-width: 400px;
        margin: 0 0 15px 0;
        color: #99e6ff;
        font-weight: 600;
        font-size: 20px;
        line-height: 32px;
        font-family: "Instrument Sans", sans-serif;
    }

    .footer-first-row .footer-col #form-message p {
        font-size: 14px;
        line-height: 24px;
        font-weight: 400;
        color: #99e6ff;
        max-width: none;
    }

    .footer-first-row .footer-socials {
        display: flex;
        margin-top: 10px;
        margin-bottom: 20px;
        gap: 0 15px;
    }

    .footer-first-row img {
        width: 25px;
        height: 25px;
    }

    .footer-first-row form textarea {
        height: 100px;
    }

    .footer-first-row form button {
        width: fit-content;
        font-family: "VT323", monospace;
        font-size: 1rem;
        color: #99e6ff;
        background: transparent;
        border-color: #99e6ff;
        padding: 5px 15px;
    }

    .footer-first-row form button:hover,
    .footer-first-row form button:focus {
        width: fit-content;
        color: #4f48d6;
        background: #99e6ff;
        border-color: #99e6ff;
    }

    .footer-container .footer-google {
        font-size: 12px;
        max-width: 90%;
    }
}
