.gnt__title_popup,
.caefc_block.gnt__title_popup,
.caefc_block.gnt__title_popup:has(> .caefc_admin_edit) {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    background: rgba(30, 34, 26, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s cubic-bezier(0.22, 0.8, 0.24, 1),
        visibility 0s linear 0.3s;
}

.gnt__title_popup.gnt__s_active,
.caefc_block.gnt__title_popup.gnt__s_active,
.caefc_block.gnt__title_popup.gnt__s_active:has(> .caefc_admin_edit) {
    display: grid;
    place-items: center;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.gnt__title_popup .gnt__s_inner {
    position: relative;
    margin: auto;
    justify-self: center;
    align-self: center;
    width: min(460px, 100%);
    max-width: 460px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: clamp(28px, 4vw, 44px);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px -32px rgba(46, 46, 42, 0.28);
    opacity: 1;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.gnt__title_popup:has(iframe) .gnt__s_inner,
.gnt__title_popup:has(.pss__calculator_wrapper) .gnt__s_inner {
    width: min(920px, 100%);
    max-width: 920px;
}

.gnt__title_popup.gnt__s_active .gnt__s_inner,
.caefc_block.gnt__title_popup.gnt__s_active .gnt__s_inner {
    transform: none;
}

.gnt__title_popup .gnt__s_close,
.gnt__title_popup button.gnt__s_close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #2e2e2a;
    box-shadow: none;
    cursor: pointer;
    transform: none;
    transition: background 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.gnt__title_popup .gnt__s_close:hover,
.gnt__title_popup .gnt__s_close:focus-visible,
.gnt__title_popup button.gnt__s_close:hover,
.gnt__title_popup button.gnt__s_close:focus-visible {
    background: #eef4e7;
    color: #2e2e2a;
    box-shadow: none;
    transform: none;
    filter: none;
}

.gnt__title_popup .gnt__s_close:active,
.gnt__title_popup button.gnt__s_close:active {
    transform: none;
}

.gnt__title_popup .gnt__s_close svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: none;
}

.gnt__title_popup .gnt__s_header {
    padding-right: 36px;
    text-align: left;
}

.gnt__title_popup .gnt__s_header h2,
.gnt__title_popup .gnt__s_header h3 {
    margin: 0 0 6px;
    font-family: var(--font-family-display, "Playfair Display", Georgia, serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #2e2e2a;
}

.gnt__title_popup .gnt__s_text {
    margin: 0 0 22px;
    color: #71716a;
    font-family: var(--font-family-base, "Manrope", sans-serif);
    font-size: 14.5px;
    line-height: 1.55;
}

.gnt__title_popup .gnt__s_text p {
    margin: 0 0 0.6em;
    color: inherit;
    font-size: inherit;
}

.gnt__title_popup .gnt__s_text p:last-child {
    margin-bottom: 0;
}

.gnt__title_popup .gnt__s_form {
    width: 100%;
}

.gnt__title_popup .gnt__s_form .wpcf7 {
    width: 100%;
}

.gnt__title_popup .gnt__s_inner .wpcf7-form,
.gnt__title_popup .wpcf7-form {
    display: grid;
    gap: 14px;
    margin: 0;
    justify-content: stretch;
    align-items: stretch;
}

.gnt__title_popup .wpcf7-form label {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    margin: 0;
    border: none;
}

.gnt__title_popup .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.gnt__title_popup .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.gnt__title_popup .wpcf7-form textarea,
.gnt__title_popup .wpcf7-form select {
    width: 100%;
    min-height: 58px;
    padding: 22px 18px 8px;
    border: 1.5px solid #e6e6de;
    border-radius: 14px;
    background: #fdfdfb;
    color: #2e2e2a;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.gnt__title_popup .wpcf7-form textarea {
    min-height: 120px;
    padding-top: 26px;
    resize: vertical;
}

.gnt__title_popup .gnt__s_inner .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):focus,
.gnt__title_popup .gnt__s_inner .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):focus-visible,
.gnt__title_popup .gnt__s_inner .wpcf7-form label .wpcf7-text:focus,
.gnt__title_popup .gnt__s_inner .wpcf7-form label .wpcf7-text:active,
.gnt__title_popup .gnt__s_inner .wpcf7-form textarea:focus,
.gnt__title_popup .gnt__s_inner .wpcf7-form select:focus {
    outline: none;
    border: 1.5px solid #99bc84;
    background: #fdfdfb;
    box-shadow: 0 0 0 1px #99bc84;
}

.gnt__title_popup .wpcf7-form .wpcf7-not-valid,
.gnt__title_popup .wpcf7-not-valid {
    border-color: #c96f66 !important;
}

.gnt__title_popup .wpcf7-form label .wpcf7-placeholder {
    position: absolute;
    left: 18px;
    top: 50%;
    bottom: auto;
    margin: 0;
    color: #71716a;
    font-size: 14.5px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    pointer-events: none;
    transform: translateY(-50%);
    transition:
        top 0.2s cubic-bezier(0.22, 0.8, 0.24, 1),
        font-size 0.2s cubic-bezier(0.22, 0.8, 0.24, 1),
        color 0.2s,
        letter-spacing 0.2s,
        transform 0.2s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.gnt__title_popup .wpcf7-form label .wpcf7-form-control-wrap:focus-within + .wpcf7-placeholder,
.gnt__title_popup .wpcf7-form label .wpcf7-form-control-wrap:has(input:not(:placeholder-shown)) + .wpcf7-placeholder,
.gnt__title_popup .wpcf7-form label .wpcf7-form-control-wrap:has(textarea:not(:placeholder-shown)) + .wpcf7-placeholder {
    top: 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4e7043;
    transform: none;
}

.gnt__title_popup .wpcf7-not-valid-tip {
    position: static;
    display: block;
    margin-top: 6px;
    color: #b3502f;
    font-size: 11.5px;
}

.gnt__title_popup .wpcf7-form .wpcf7-submit,
.gnt__title_popup .wpcf7-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #99bc84;
    color: #2f4427;
    box-shadow: 0 14px 30px -16px rgba(110, 150, 90, 0.8);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition:
        transform 0.25s cubic-bezier(0.22, 0.8, 0.24, 1),
        background-color 0.25s,
        color 0.25s,
        box-shadow 0.25s;
}

.gnt__title_popup .wpcf7-form .wpcf7-submit:hover,
.gnt__title_popup .wpcf7-form .wpcf7-submit:focus-visible,
.gnt__title_popup .wpcf7-submit:hover {
    background: #86ab70;
    color: #ffffff;
    transform: translateY(-2px);
    filter: none;
}

.gnt__title_popup .wpcf7-form .wpcf7-submit:active {
    transform: none;
}

.gnt__title_popup .wpcf7-spinner {
    position: absolute;
}

.gnt__title_popup .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 0;
    border: 0;
    color: #71716a;
    font-size: 14.5px;
}

.gnt__title_popup .wpcf7 form.sent .wpcf7-response-output {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding: 18px 20px;
    border: 1.5px solid rgba(153, 188, 132, 0.5);
    border-radius: 16px;
    background: rgba(153, 188, 132, 0.14);
    color: #2e2e2a;
    font-size: 15px;
}

.gnt__title_popup .wpcf7 form.sent label,
.gnt__title_popup .wpcf7 form.sent .wpcf7-submit {
    display: none;
}

.gnt__title_popup .gnt__s_form iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 16px;
}

.gnt__title_popup .pss__calculator_wrapper {
    max-width: none;
    margin: 0;
}

.gnt__title_popup .pss__input,
.gnt__title_popup .pss__select {
    min-height: 58px;
    padding: 16px 18px;
    border: 1.5px solid #e6e6de;
    border-radius: 14px;
    background: #fdfdfb;
    color: #2e2e2a;
}

.gnt__title_popup .pss__input:focus,
.gnt__title_popup .pss__select:focus {
    border-color: #99bc84;
    background: #fff;
}

@media (max-width: 991.98px) {
    .gnt__title_popup .gnt__s_inner .wpcf7-form label,
    .gnt__title_popup .wpcf7-form label {
        flex: none;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gnt__title_popup,
    .caefc_block.gnt__title_popup,
    .gnt__title_popup .gnt__s_inner {
        transition: none;
        transform: none;
    }
}
