.contact-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    isolation: isolate;
}

.contact-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: #fed67b;
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 24px;
    transition: transform .2s ease, filter .2s ease;
}

.contact-fab svg {
    width: 36px;
    height: 36px;
}

.contact-main:hover {
    transform: translateY(-2px);
}

.contact-main:active {
    transform: translateY(0);
    filter: brightness(.92);
}

.contact-actions {
    position: absolute;
    right: 6px;
    bottom: 90px;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.contact-action {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    background: #fed67b;
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    transform: translateY(10px) scale(.92);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.contact-action svg {
    width: 24px;
    height: 24px;
}

.contact-fab.is-open .contact-actions {
    pointer-events: auto;
}

.contact-fab.is-open .contact-action {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.contact-fab.is-open .contact-action:nth-child(1) {
    transition-delay: .02s;
}

.contact-fab.is-open .contact-action:nth-child(2) {
    transition-delay: .06s;
}

.contact-fab.is-open .contact-action:nth-child(3) {
    transition-delay: .10s;
}

.contact-fab [data-tooltip] {
    position: relative;
}

.contact-fab [data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    white-space: nowrap;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    line-height: 1;

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10;
}

.contact-fab [data-tooltip]::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #111;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;

    opacity: 0;
    transition: opacity .2s ease;
}

.contact-fab [data-tooltip]:hover::before,
.contact-fab [data-tooltip]:hover::after,
.contact-fab [data-tooltip]:focus-visible::before,
.contact-fab [data-tooltip]:focus-visible::after {
    opacity: 1;
}

.contact-fab [data-tooltip]:hover::before,
.contact-fab [data-tooltip]:focus-visible::before {
    transform: translateY(-50%) translateX(0);
}


.contact-form {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(375px, calc(100vw - 32px));
    height: 100vh;
    max-height: 630px;
    overflow: auto;
    transform: translateX(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    background: #ececec;
    padding: 32px 16px 0 16px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-form .checkbox-container.label-right label {
    font-size: 12px;
    font-weight: 400;
}

.contact-form .nf-form-content {
    padding: 0;
}

.contact-form .nf-before-form-content {
    margin-bottom: 16px;
}

.contact-form .nf-field-hp {
    display: none !important;
}

.contact-form .nf-form-content .listselect-wrap .nf-field-element div,
.contact-form .nf-form-content .ninja-forms-field {
    font-family: PostGrotesk, sans-serif;
    font-size: 16px;
}

.contact-form .nf-form-fields-required {
    font-size: 12px;
}

.contact-form .nf-form-content button,
.contact-form .nf-form-content input[type=button],
.contact-form .nf-form-content input[type=submit] {
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.contact-form .nf-response-msg {
    font-weight: 700;
    text-align: center;
    padding: 32px 0;
}

.contact-form #ninja_forms_required_items, .nf-field-container {
    margin-bottom: 15px;
}

.contact-fab.is-form-open .contact-form {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.contact-fab.is-form-open .contact-form:focus-visible {
    border: 0;
    outline: none;
}

.contact-form .contact-main-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.contact-form .contact-main-close img {
    width: 30px;
    height: 30px;
}

@media (min-width: 576px) {
    .contact-form {
        right: 80px;
    }
}