body.page-template-contact-us {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-template-contact-us #page {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.page-template-contact-us #page > #content {
    flex: 1 0 auto;
}

.page-template-contact-us #page > #shopify-section-header {
    position: relative;
    top: auto;
    /* Include both the top bar and the desktop navigation in the header height. */
    height: auto;
}

#content .contact-us-form {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

#content .contact-us-form:not(:has(input:not([type="hidden"], [type="submit"]), textarea, select)) [data-testid="form-component"] {
    width: 100%;
    text-align: center;
}

/* The Klaviyo confirmation text can include inline alignment. */
#content .contact-us-form:not(:has(input:not([type="hidden"], [type="submit"]), textarea, select)) [data-testid="form-component"] :is(p, [style*="text-align"]) {
    text-align: center !important;
}

#content .contact-us-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select) {
    font-family: "GT Walsheim", sans-serif;
    color: #202324;
    background-color: #fff;
    border-radius: 4px;
}

#content .contact-us-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select):not([aria-invalid="true"]) {
    border-color: #949596;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]) {
    display: grid;
    grid-template-columns: auto 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 150px;
    max-width: 100%;
    height: 48px;
    padding: 10px 18px;
    border: 1px solid #00ba74;
    border-radius: 30px;
    background-color: #00ba74;
    color: #fff;
    font-family: "GT Walsheim", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::before,
#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::after {
    content: "";
    grid-area: 1 / 2;
    justify-self: center;
    width: 23px;
    height: 23px;
    transition: background-color 180ms ease;
    pointer-events: none;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::before {
    border-radius: 50%;
    background-color: #fff;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::after {
    background-color: #00ba74;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.0858 18L18 12L12.0858 6L10.3911 7.71928L13.3934 10.7652H6V13.2348H13.3934L10.3911 16.2807L12.0858 18Z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]):hover:not(:disabled) {
    background-color: transparent;
    color: #00ba74;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]):hover:not(:disabled)::before {
    background-color: #00ba74;
}

#content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]):hover:not(:disabled)::after {
    background-color: #000;
}

#content .contact-us-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select, button):focus-visible {
    outline: 2px solid #202324;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]),
    #content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::before,
    #content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"])::after {
        transition: none;
    }
}

@media (width < 990px) {
    #content .contact-us-form [data-testid="form-component"]:has(> button.klaviyo-form-button) {
        flex: 1 1 auto;
    }

    #content .contact-us-form :is(button.klaviyo-form-button, button[type="submit"]) {
        width: 100%;
    }
}

@media (min-width: 601px) {
    .page-template-contact-us.admin-bar #page > #content {
        scroll-margin-top: var(--wp-admin--admin-bar--height, 32px);
    }
}
