/*--------
共通カラー
---------*/
:root {
    --color-black: #131313;
    --color-main: #256b93;
    --hover-color: rgb(238, 127, 127);
    --color-yellow: rgb(238, 195, 25);
}
.fd_contact_title_ptn_1 {
    margin-bottom: 48px;
    text-align: center;
    font-size: 32px;
    @media (max-width: 980px) {
        font-size: 28px;
    }
    @media (max-width: 500px) {
        margin-bottom: 32px;
        font-size: 22px;
    }
}
/**
 * FD Contact Form Styles
 */
.fd_area_wrap {
    padding: 80px 24px 80px 24px;
    background: #fff;
    color: #222;
    font-weight: 500;
    @media (max-width: 1080px) {
        padding-bottom: 64px;
    }
    @media (max-width: 800px) {
        padding-bottom: 48px;
    }
    @media (max-width: 600px) {
        padding-bottom: 40px;
    }
    @media (max-width: 450px) {
        padding-top: 64px;
    }
    header {
        p {
            margin-top: 32px;
            line-height: 1.8em;
            text-align: center;
            @media (max-width: 1080px) {
                margin-top: 24px;
            }
            @media (max-width: 800px) {
                margin-top: 16px;
            }
        }
    }
}
.fd_contact_form {
    margin: 64px auto;
    margin-bottom: 0;
    max-width: 880px;
    border-top: 1px solid #aaa;

    @media (max-width: 800px) {
        margin-top: 40px;
    }
    @media (max-width: 600px) {
        margin-top: 24px;
    }

    form {
        dl {
            display: grid;
            grid-template-columns: 280px calc(100% - 280px);

            @media (max-width: 800px) {
                grid-template-columns: 200px calc(100% - 200px);
            }
            @media (max-width: 600px) {
                display: block;
            }

            dt,
            dd {
                padding: 32px 0;
                border-top: 1px solid #aaa;
                line-height: 1.6em;
                display: flex;
                align-items: start;
                align-content: start;
                flex-wrap: wrap;

                @media (max-width: 800px) {
                    padding: 24px 0;
                    font-size: 14px;
                }

                &:first-of-type {
                    border: none;
                }
            }

            dt {
                padding-top: 40px;
                justify-content: space-between;

                @media (max-width: 800px) {
                    padding-top: 32px;
                }
                @media (max-width: 600px) {
                    padding-top: 24px;
                    padding-bottom: 8px;
                }
            }

            dd {
                padding-left: 40px;

                @media (max-width: 600px) {
                    padding-left: 0;
                    padding-top: 0;
                    border: none;
                }
            }

            label {
                margin-right: 24px;
            }

            .fd_contact_required {
                padding-top: 1px;
                width: 48px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #491c1c;
                color: #fff;
                font-size: 12px;
            }

            input[type="text"],
            input[type="email"],
            input[type="tel"],
            textarea {
                padding: 12px;
                width: 100%;
                border: 1px solid #aaa;
                border-radius: 0;
                font-size: 18px;

                @media (max-width: 800px) {
                    font-size: 16px;
                }
            }

            .fd_contact_select_wrap {
                position: relative;
                width: 100%;

                &::after {
                    position: absolute;
                    top: 18px;
                    right: 15px;
                    z-index: 10;
                    display: block;
                    content: "";
                    border-right: 8px solid transparent;
                    border-top: 12px solid #1f242d;
                    border-left: 8px solid transparent;
                }

                select {
                    position: relative;
                    padding: 12px;
                    font-size: 18px;
                    width: 100%;
                    border: 1px solid #aaa;

                    @media (max-width: 800px) {
                        font-size: 16px;
                    }
                }
            }

            .fd_contact_privacy {
                width: 100%;
                padding: 32px 0;
                border-top: 1px solid #aaa;
                line-height: 1.6em;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                grid-column: span 2;
                white-space: nowrap;

                @media (max-width: 800px) {
                    font-size: 14px;
                }
                label {
                    white-space: nowrap;
                    a {
                        text-decoration: underline;
                        color: #2041d4;
                        font-weight: 600;
                    }
                }
                input[type="checkbox"] {
                    position: relative;
                    margin: 0 24px;
                    width: 28px;
                    height: 28px;
                    visibility: hidden;
                    cursor: pointer;

                    &::before {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        content: "";
                        display: block;
                        border: 1px solid #000;
                        visibility: initial;
                    }

                    &:checked::after {
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        margin: auto;
                        content: "";
                        display: block;
                        width: 70%;
                        height: 70%;
                        background: rgb(187, 88, 88);
                        visibility: initial;
                    }
                }
            }

            .fd_contact_submit {
                padding: 56px 0 64px 0;
                width: 100%;
                border-top: 1px solid #aaa;
                grid-column: span 2;

                input[type="submit"] {
                    margin: 0 auto;
                    max-width: 400px;
                    width: 100%;
                    height: 72px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: #999;
                    color: #fff;
                    font-size: 18px;
                    font-weight: 500;
                    transition: background 0.3s;
                    pointer-events: none;
                    cursor: pointer;
                    border: none;

                    @media (max-width: 600px) {
                        font-size: 16px;
                    }

                    &:hover {
                        background: #781919;
                    }

                    &.on {
                        pointer-events: initial;
                        background: #0e369b;
                    }
                }
            }
        }
    }

    .fd_contact_error_message,
    .fd_contact_error_message_submit {
        margin-top: 8px;
        width: 100%;
        display: none;
        font-size: 14px;
        color: rgb(204, 44, 44);

        &.on {
            display: block;
        }
    }

    .fd_contact_error_message_submit {
        margin-top: 24px;
        text-align: center;

        @media (max-width: 600px) {
            margin-top: 16px;
        }
    }
}

/* reCAPTCHA バッジ非表示 */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
}

/* サンクスページ */
.fd_contact_thanks_page {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99999;
    padding: 40px 24px 16px 24px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    background-size: cover;
    background-position: center;

    @media (max-width: 600px) {
        padding: 8px;
    }
    @media (max-width: 500px) {
        padding: 0px;
        align-items: flex-start;
        background: #fff;
    }

    .filter {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.492);
    }

    .inner {
        position: relative;
        padding: 72px 56px;
        width: 640px;
        background: #fff;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
        overflow: scroll;

        @media (max-width: 700px) {
            padding: 56px 40px;
        }
        @media (max-width: 500px) {
            padding: 40px 24px;
            min-height: 100vh;
            box-shadow: none;
        }
        @media (max-width: 400px) {
            padding: 32px 16px;
        }

        header {
            margin-bottom: 24px;
            text-align: center;
            font-size: 32px;

            @media (max-width: 550px) {
                font-size: 28px;
            }
            @media (max-width: 400px) {
                font-size: 24px;
            }
        }

        section {
            line-height: 2em;

            @media (max-width: 600px) {
                font-size: 14px;
            }
        }

        .top_return {
            margin-top: 24px;
            width: 100%;
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgb(239, 143, 26);
            color: #fff;

            @media (max-width: 650px) {
                height: 64px;
            }
            @media (max-width: 400px) {
                height: 56px;
            }
        }
    }
}

/*--------
page_style
---------*/
.fd_contact_privacy_content {
    > h2 {
        margin-bottom: 48px;
        @media (max-width: 700px) {
            margin-bottom: 32px;
        }
    }
}
.fd_contact_page_style {
    margin: 0 auto;
    max-width: 880px;
    font-size: 16px;
    @media (max-width: 1080px) {
        font-size: 15px;
    }
    @media (max-width: 900px) {
        font-size: 16px;
    }
    @media (max-width: 750px) {
        font-size: 15px;
    }
    @media (max-width: 500px) {
        line-height: 2em;
    }
    @media (max-width: 360px) {
        font-size: 14px;
    }
    /* 段落 */
    p {
        line-height: 2em;
    }
    > p:not([class]) {
        margin: 16px auto;
        padding: 0;
        text-justify: inter-ideograph;
        font-size: 16px;
        @media (max-width: 1080px) {
            margin: 14px auto;
            font-size: 15px;
        }
        @media (max-width: 500px) {
            line-height: 2em;
        }
        @media (max-width: 360px) {
            font-size: 14px;
        }
        &:empty {
            margin: 0;
            padding: 0;
        }
    }
    > h2,
    > h3,
    > h4,
    > h5,
    > h6 {
        padding: 0;
        & + p {
            margin-top: 0;
        }
    }
    /* h2 */
    > h2 {
        font-size: 24px;
        margin: 1em auto;
        @media (max-width: 700px) {
            font-size: 22px;
        }
        @media (max-width: 500px) {
            font-size: 18px;
        }
    }
    > h2:not([class*="is-style-ttl_"]),
    h2.is-style-default {
        padding-bottom: 0.3em;
        line-height: 1.5em;
        font-weight: 500;
        color: var(--color-black);
        border-bottom: 2px solid var(--color-main);
    }
    /* h3 */
    > h3 {
        margin: 2em auto 1em auto;
        font-size: 20px;
        @media (max-width: 500px) {
            font-size: 18px;
        }
    }
    > h3:not([class*="is-style-ttl_"]),
    h3.is-style-default {
        padding-left: 0.5em;
        padding-bottom: 0.2em;
        line-height: 1.5em;
        font-weight: 500;
        color: var(--color-main);
        border-left: 0.3em solid var(--color-main);
    }
    /* h4 */
    > h4 {
        margin: 2em auto 0.5em auto;
        font-size: 18px;
        @media (max-width: 500px) {
            font-size: 16px;
        }
    }
    > h4:not([class*="is-style-ttl_"]),
    h4.is-style-default {
        position: relative;
        padding-left: 1.5em;
        line-height: 1.5em;
        font-weight: 500;
        color: var(--color-main);
        &::before {
            position: absolute;
            top: 0.35em;
            left: 0;
            z-index: 1;
            margin-right: 0.5em;
            padding-right: 0.3em;
            content: "";
            display: block;
            width: 1em;
            height: 1em;
            background: var(--color-main);
            border-radius: 50%;
        }
        &::after {
            position: absolute;
            top: 0.7em;
            left: 0.3em;
            z-index: 2;
            content: "";
            width: 0.3em;
            height: 0.3em;
            border-top: 2px solid #fff;
            border-left: 2px solid #fff;
            transform: rotate(134deg);
            @media (max-width: 600px) {
                border-width: 1px;
            }
        }
    }
    /* 太文字 strong */
    strong,
    b {
        font-weight: 500;
    }
    /* 強調文字 em */
    em {
        font-weight: 500;
        font-size: 1.1em;
        background: rgb(248, 246, 138);
    }
    /* カラム */
    .wp-block-columns {
        margin: 16px auto;
        padding: 0;
        p {
            margin: 0.8em auto;
            text-justify: inter-ideograph;
            font-size: 16px;
            line-height: 1.8em;
            @media (max-width: 1080px) {
                font-size: 15px;
            }
            @media (max-width: 900px) {
                font-size: 16px;
            }
            @media (max-width: 750px) {
                font-size: 15px;
            }
            @media (max-width: 500px) {
                line-height: 2em;
            }
            @media (max-width: 360px) {
                font-size: 14px;
            }
        }
        h2,
        h3,
        h4 {
            margin: 1.3em 0 1em 0;
            font-size: 20px;
            font-weight: 500;
            @media (max-width: 1080px) {
                font-size: 18px;
            }
            @media (max-width: 600px) {
                font-size: 16px;
            }
        }
    }
    /* カラム */
    .wp-block-columns {
        @media (max-width: 781px) {
            > p:not([class]) {
                display: none;
            }
        }
    }
    /* 画像 */
    .wp-block-image {
        width: 100%;
    }
    .wp-block-image,
    .wp-block-columns .wp-block-image {
        margin: 0 auto;
        figcaption {
            text-align: center;
        }
    }
    .wp-block-columns .wp-block-image {
        padding: 0;
    }
    .wp-block-embed__wrapper::before,
    .wp-block-columns .wp-block-embed__wrapper::before {
        content: "";
        padding-top: 57%;
        display: block;
    }
    .wp-block-embed__wrapper iframe,
    .wp-block-columns .wp-block-embed__wrapper iframe {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    /* ギャラリー */
    .blocks-gallery-grid {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        figure {
            box-shadow: 0 0 50px #eee;
        }
    }
    /* 文中ユーチューブ動画のサイズ */
    .wp-block-embed__wrapper {
        margin: 16px auto;
        margin-bottom: 24px;
        padding: 0 16px;
        max-width: 832px;
        width: 100%;
        height: auto;
        position: relative;
        &::before {
            padding-top: 56.3%;
            content: "";
            display: block;
        }
        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
    /* ユーチューブをifremeで埋め込みした場合 */
    > .youtube_video_iframe {
        position: relative;
        margin: 16px auto;
        padding: 0 16px;
        max-width: 832px;
        width: 100%;
        height: auto;
        &::before {
            padding-top: 56.2%;
            content: "";
            display: block;
        }
        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
    /* 引用 */
    > .wp-block-quote {
        position: relative;
        z-index: 10;
        margin: 40px 0;
        padding: 24px 32px;
        font-size: 0.95em;
        border-left: 0.5em solid rgb(112, 151, 151);
        text-justify: inter-ideograph;
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
            content: "";
            width: 100%;
            height: 100%;
            display: block;
            background: rgb(112, 151, 151);
            opacity: 0.1;
        }
        p {
            margin: 0;
            margin-bottom: 16px;
        }
        cite {
            font-size: 0.9em;
        }
    }
    /* コード */
    > .wp-block-code {
        code {
            padding: 1em 1.5em;
            display: block;
            background: #222;
            color: #fff;
        }
    }
    /* リスト */
    > ul:not([class*="is-style-li_"]),
    .wp-block-columns ul:not([class*="is-style-li_"]) {
        margin: 1.3em auto;
        line-height: 1.6em;
        display: grid;
        gap: 0.6em;
        li {
            position: relative;
            margin-left: 1.2em;
            padding-left: 1.7em;
            @media (max-width: 1080px) {
                font-size: 14px;
            }
            @media (max-width: 1080px) {
                margin-left: 0.5em;
            }
            &::before {
                position: absolute;
                top: 0.55em;
                left: 0;
                content: "";
                display: block;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: #000;
            }
        }
        ul,
        ol {
            margin-top: 0.6em;
        }
    }
    > ol:not([class*="is-style-li_"]),
    .wp-block-columns ol:not([class*="is-style-li_"]) {
        margin: 1em auto;
        padding-left: 1em;
        list-style-type: decimal;
        line-height: 1.6em;
        li {
            margin-left: 1.2em;
            margin-bottom: 0.8em;
            @media (max-width: 1080px) {
                font-size: 14px !important;
            }
            ol {
                li {
                    margin-left: 0.6em;
                }
            }
        }
        ul,
        ol {
            margin-top: 0.6em;
            padding-left: 0;
        }
    }
    .wp-block-columns ul:not([class*="is-style-li_"]),
    .wp-block-columns ol:not([class*="is-style-li_"]) {
        padding-left: 0.3em;
    }
    /* リンク文字 */
    > a {
        color: #1a65a3;
    }
    > p a {
        text-decoration: underline;
        &:hover {
            color: rgb(250, 85, 85);
        }
    }
    > figure a {
        border: none;
    }
    /* 画像 */
    > .wp-block-image {
        margin: 1.5em 0;
    }
    /* グーテンベルグのボタン */
    > .wp-block-button {
        a {
            padding: 0.5em 1em;
            font-size: 14px;
            transition: 0.5s;
            text-decoration: none;
            &:hover {
                opacity: 0.8;
            }
        }
    }
    /* ファイルダウンロードボタン */
    > .wp-block-file {
        a.wp-block-file__button {
            color: #fff;
            text-decoration: none;
        }
    }
    /* テーブル */
    > p:not([class]) + .wp-block-table {
        margin-top: 1.5em;
    }
    > .wp-block-table {
        max-width: 100%;
        overflow: scroll;
        border-bottom: none;
        letter-spacing: 0;
        line-height: 1.4em;
        font-size: 14px;
        @media (max-width: 500px) {
            font-size: 14px;
        }
        table {
            border-collapse: collapse; /* セルの線を重ねる */
        }
        thead {
            background: #555;
            color: #fff;
            tr {
                th {
                    padding: 0.5em 0.3em;
                    border-right: 1px solid #ddd;
                    &:last-of-type {
                        border-right: none;
                    }
                }
            }
        }
        tbody {
            tr {
                th,
                td {
                    border: solid 1px #ccc; /* 枠線指定 */
                }
            }
        }
        td {
            padding: 12px;
            ul {
                margin: 0;
                padding: 0;
                border: none;
                li {
                    margin: 0;
                    padding: 0;
                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
    > .wp-block-table.is-style-stripes {
        thead {
            background: #555;
            color: #fff;
            tr {
                th {
                    padding: 0.2em;
                    border-right: 1px solid #eee;
                    color: 0;
                    &:last-of-type {
                        border-right: none;
                    }
                }
            }
        }
        td {
            padding: 0.2em;
        }
    }
    > .wp-block-table table.has-fixed-layout {
        @media (max-width: 560px) {
            width: 500px;
            max-width: initial !important;
        }
    }
    > .wp-block-table + p {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* iframe{ */
    > iframe {
        max-width: 100% !important;
    }
    /* .wp-block-preformatted */
    > .wp-block-preformatted {
        white-space: inherit;
    }
    /* wp-block-video */
    > .wp-block-video {
        position: relative;
        margin: 24px auto;
        max-width: 832px;
        width: 100%;
        & + p.is-style-p_03,
        & + p.is-style-p_04 {
            margin-top: -12px;
        }
        &::before {
            padding-top: 60%;
            content: "";
            display: block;
        }
        video {
            position: absolute;
            top: 0;
            left: 16px;
            width: calc(100% - 32px);
            height: 100%;
            object-fit: cover;
        }
    }
    /* wp-block-columns */
    > .wp-block-columns {
        margin-bottom: 1em;
        gap: 16px;
        @media (max-width: 781px) {
            gap: 0;
        }
        > p:not([class]) {
            display: none;
        }
    }
}

/* fd_contact_popup_related_business */
.fd_contact_popup_trigger {
    cursor: pointer;
}
.fd_contact_popup_related_business {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    padding: 80px;
    padding-bottom: 200px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    @media (max-width: 1000px) {
        padding: 64px 24px;
    }
    @media (max-width: 500px) {
        padding: 64px 16px;
    }
    &.is-open {
        visibility: initial;
        opacity: 1;
    }
    .close_btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 64px;
        aspect-ratio: 1;
        background: #d15656;
        @media (max-width: 1000px) {
            width: 48px;
        }
        @media (max-width: 500px) {
            width: 40px;
        }
        div {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            margin: auto;
            width: 60%;
            height: 2px;
            background: #fff;
            border-radius: 3em;
            transform: rotate(45deg);
            cursor: pointer;
            &:last-of-type {
                transform: rotate(-45deg);
            }
        }
    }
    .fd_contact_popup_overlay {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
    }
    h2 {
        text-align: center;
        font-weight: 400;
        .main {
            display: block;
            font-size: 40px;
            line-height: 1.6;
            @media (max-width: 1000px) {
                font-size: 32px;
            }
        }
        .sub {
            display: block;
            font-size: 18px;
            line-height: 1.8;
            @media (max-width: 1000px) {
                font-size: 16px;
            }
        }
    }
    .wrap {
        margin-top: 64px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 48px;
        @media (max-width: 1000px) {
            margin-top: 40px;
            gap: 32px;
        }
        @media (max-width: 500px) {
            margin-top: 24px;
        }
        .content {
            padding: 32px;
            width: 440px;
            border: 1px solid #fff;
            background: #000;
            @media (max-width: 1000px) {
                max-width: 400px;
            }
            @media (max-width: 500px) {
                padding: 24px;
            }
            .content_head {
                display: flex;
                align-items: center;
                gap: 32px;
                @media (max-width: 500px) {
                    gap: 20px;
                }
                .image_logo {
                    padding: 16px;
                    width: 78px;
                    aspect-ratio: 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border: 1px solid #fff;
                    @media (max-width: 500px) {
                        padding: 10px;
                        width: 64px;
                    }
                    svg {
                        width: 100%;
                        height: 100%;
                    }
                }
                h3 {
                    color: #fff;
                    .main {
                        display: block;
                        font-size: 28px;
                        line-height: 1.4;
                        white-space: nowrap;
                        @media (max-width: 1000px) {
                            font-size: 24px;
                        }
                    }
                    .sub {
                        display: block;
                        font-size: 16px;
                        line-height: 1.6;
                        @media (max-width: 1000px) {
                            font-size: 14px;
                        }
                        @media (max-width: 500px) {
                            font-size: 12px;
                        }
                    }
                }
            }
            p {
                margin-top: 1.2em;
                line-height: 1.8em;
                font-size: 18px;
                @media (max-width: 1000px) {
                    font-size: 16px;
                }
            }
            .btn {
                margin-top: 24px;
                width: 100%;
                height: 56px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #eb6666;
                color: #fff;
                border-radius: 2px;
                transition: opacity 0.3s;
                &:hover {
                    opacity: 0.8;
                }
            }
        }
    }
    .btn_bottom {
        margin: 0 auto;
        margin-top: 24px;
        height: 64px;
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #fff;
        color: #fff;
        @media (min-width: 601px) {
            display: none;
        }
    }
}
/* fd_contact_company_profile */
.fd_contact_company_profile {
    margin: 48px auto;
    max-width: 880px;
    > dl {
        display: grid;
        grid-template-columns: 200px calc(100% - 200px);
        @media (max-width: 800px) {
            grid-template-columns: 1fr;
        }
        > dt,
        > dd {
            position: relative;
            padding: 1.5em 0;
            line-height: 2em;
            font-size: 16px;
            border-top: 2px solid #eee;
        }
        > dt {
            color: var(--color-main);
            font-weight: 700;
            @media (max-width: 800px) {
                padding-bottom: 0.2em;
            }
            &::after {
                position: absolute;
                top: -2px;
                left: 0;
                z-index: 10;
                width: 100%;
                height: 2px;
                content: "";
                display: block;
                background: var(--color-main);
                @media (max-width: 800px) {
                    width: 200px;
                }
            }
        }
        > dd {
            @media (max-width: 800px) {
                padding-top: 0;
                border: none;
            }
        }
    }
}

/*--------
送信完了ポップアップ
---------*/
.fd_contact_success_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fd_contact_success_popup_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.fd_contact_success_popup_content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fd_contact_popup_fadein 0.4s ease-out;
}

@keyframes fd_contact_popup_fadein {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fd_contact_success_popup_icon {
    margin-bottom: 24px;
}

.fd_contact_success_popup_icon svg {
    animation: fd_contact_checkmark 0.6s ease-out 0.2s both;
}

@keyframes fd_contact_checkmark {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.fd_contact_success_popup_title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.fd_contact_success_popup_message {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.fd_contact_success_popup_button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--color-main, #256b93);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fd_contact_success_popup_button:hover {
    background: var(--hover-color, #1a4d6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .fd_contact_success_popup_content {
        padding: 36px 24px;
    }

    .fd_contact_success_popup_title {
        font-size: 22px;
    }

    .fd_contact_success_popup_message {
        font-size: 14px;
    }

    .fd_contact_success_popup_button {
        padding: 14px 36px;
        font-size: 14px;
    }
}
