html.gf-qf-lock {
    overflow: hidden;
}

.gf-qf {
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    color: var(--gf-ink-900, #1a211d);
}

.gf-qf::backdrop {
    background: rgba(6, 10, 8, 0.64);
}

.gf-qf[open] {
    animation: gf-qf-in var(--gf-t-base, 250ms) var(--gf-ease-out, ease-out);
}

.gf-qf [hidden] {
    display: none !important;
}

.gf-qf .gf-qf__panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 24px 64px -12px rgba(6, 10, 8, 0.45);
}

.gf-qf__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.gf-qf__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gf-qf .gf-qf__title {
    margin: 0;
    font-family: var(--gf-font-display, system-ui, sans-serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: var(--gf-ink-900, #1a211d);
}

.gf-qf__intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--gf-ink-700, #5a625d);
}

.gf-qf .gf-qf__close,
.gf-qf .gf-qf__close:hover,
.gf-qf .gf-qf__close:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: -8px -10px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--gf-radius-sm, 4px);
    box-shadow: none;
    color: var(--gf-ink-800, #3d453f);
    cursor: pointer;
    transition: background-color var(--gf-t-fast, 180ms) var(--gf-ease, ease);
}

.gf-qf .gf-qf__close:hover {
    background: var(--gf-bone-200, #ebebe6);
    color: var(--gf-ink-900, #1a211d);
}

.gf-qf .gf-qf__close svg {
    width: 22px;
    height: 22px;
}

.gf-qf .gf-contact-form__textarea {
    min-height: 112px;
}

.gf-qf .gf-contact-form__submit:focus {
    background: var(--gf-green-950, #006837);
    border-color: var(--gf-green-950, #006837);
    color: #fff;
}

.gf-qf .gf-contact-form__submit[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
    box-shadow: none;
}

.gf-qf__success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    outline: none;
}

.gf-qf__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gf-green-100, #e8f5ee);
    border-radius: 50%;
    color: var(--gf-green-800, #0a7c44);
}

.gf-qf__success-icon svg {
    width: 26px;
    height: 26px;
}

.gf-qf__success-title {
    margin: 0;
    font-family: var(--gf-font-display, system-ui, sans-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gf-ink-900, #1a211d);
}

.gf-qf__success-text {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--gf-ink-800, #3d453f);
}

@keyframes gf-qf-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .gf-qf .gf-qf__title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gf-qf[open] {
        animation: none;
    }

    .gf-qf .gf-qf__close {
        transition: none;
    }
}
