body.guideform_page_locked {
    overflow: hidden;
}

.guideform_overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: rgba(35, 24, 35, 0.58);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.guideform_overlay_open {
    visibility: visible;
    opacity: 1;
}

.guideform_dialog {
    position: relative;
    width: min(100%, 540px);
    padding: 46px 44px 40px;
    color: #493649;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(31, 17, 30, 0.25);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.guideform_overlay_open .guideform_dialog {
    transform: translateY(0);
}

.guideform_close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #6d526c;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.guideform_close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.guideform_title {
    margin: 0 40px 12px 0;
    color: #5a365b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.guideform_description {
    margin: 0 0 24px;
    color: #685d68;
    font-size: 15px;
    line-height: 1.55;
}

.guideform_form {
    display: grid;
    gap: 16px;
}

.guideform_label {
    display: block;
}

.guideform_label_text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.guideform_input,
.guideform_label input[type="text"],
.guideform_label input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    color: #403840;
    background: #fff;
    border: 1px solid rgba(90, 54, 91, 0.25);
    border-radius: 4px;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.guideform_input:focus,
.guideform_label input[type="text"]:focus,
.guideform_label input[type="email"]:focus {
    border-color: #7a4978;
    box-shadow: 0 0 0 3px rgba(122, 73, 120, 0.12);
}

.guideform_submit {
    min-height: 54px;
    padding: 12px 24px;
    color: #fff;
    background: #7a4978;
    border: 1px solid #7a4978;
    border-radius: 4px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.guideform_submit:hover {
    background: #62375f;
    border-color: #62375f;
}

.guideform_agreement {
    margin: 0;
    color: #746974;
    font-size: 12px;
    line-height: 1.5;
}

.guideform_agreement a {
    color: #70416e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guideform_error,
.guideform_success {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.guideform_error {
    color: #8f3434;
    background: #fff1f1;
}

.guideform_success {
    color: #496942;
    background: #f0f8ed;
}

@media (max-width: 640px) {
    .guideform_overlay {
        align-items: end;
        padding: 12px;
    }

    .guideform_dialog {
        padding: 38px 22px 28px;
    }

    .guideform_title {
        font-size: 25px;
    }
}
