.gm-api-lead-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    color: #333840;
}

.gm-api-lead-modal.is-open {
    display: block;
}

.gm-api-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 19, 0.9);
}

.gm-api-lead-dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 0;
    overflow: auto;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    border-radius: 6px;
}

.gm-api-lead-close {
    position: fixed;
    top: 32px;
    right: max(24px, calc((100vw - 760px) / 2 + 110px));
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gm-api-lead-close::before,
.gm-api-lead-close::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 21px;
    width: 30px;
    height: 3px;
    background: #111411;
}

.gm-api-lead-close::before {
    transform: rotate(45deg);
}

.gm-api-lead-close::after {
    transform: rotate(-45deg);
}

.gm-api-lead-card {
    width: min(560px, 100%);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.gm-api-lead-hero {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 1.25fr;
    gap: 32px;
    align-items: center;
    min-height: 250px;
    padding: 42px 46px;
    background: #ffd548;
}

.gm-api-lead-hero.has-image {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.gm-api-lead-hero.has-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gm-api-lead-logo {
    display: grid;
    place-items: center;
    align-content: center;
    width: 190px;
    max-width: 100%;
    aspect-ratio: 0.82;
    justify-self: center;
    color: #ffdf54;
    background: #08100f;
    border: 10px solid #ffe86b;
    border-radius: 48% 48% 54% 54%;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    transform: perspective(160px) rotateX(-4deg);
}

.gm-api-lead-logo span {
    display: block;
    font-size: 26px;
}

.gm-api-lead-slogan {
    color: #07100f;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.14;
}

.gm-api-lead-form {
    display: grid;
    gap: 10px;
    padding: 44px 48px 56px;
}

.gm-api-lead-form h2 {
    margin: 0 0 10px;
    color: #2e3640;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 500;
}

.gm-api-lead-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #2e3640;
    font-size: 18px;
    font-weight: 500;
}

.gm-api-lead-form label b {
    color: #e64b35;
}

.gm-api-lead-form input,
.gm-api-lead-form select {
    width: 100%;
    height: 54px;
    border: 0;
    /*border-bottom: 2px solid #d8d8d8;*/
    border-radius: 0;
    padding: 0 18px;
    background: #f7f7f7;
    box-shadow: none;
    color: #111;
    font-size: 20px;
    max-width: 100%;
}

.gm-api-lead-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #9ca8b3 50%), linear-gradient(135deg, #9ca8b3 50%, transparent 50%);
    background-position: calc(100% - 24px) 24px, calc(100% - 16px) 24px;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    color: #333840;
    cursor: pointer;
}

.gm-api-lead-form input:focus,
.gm-api-lead-form select:focus {
    outline: 2px solid rgba(255, 206, 45, 0.5);
    outline-offset: 2px;
    border-bottom-color: #ffce2d;
}

.gm-api-lead-form button[type="submit"] {
    justify-self: start;
    min-width: 146px;
    height: 58px;
    margin-top: 14px;
    border: 0;
    border-radius: 6px;
    padding: 0 32px;
    background: #ffce2d;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
}

.gm-api-lead-form button[type="submit"]:disabled {
    opacity: 0.72;
    cursor: wait;
}

.gm-api-lead-error {
    min-height: 20px;
    margin: 0;
    color: #b42318;
    font-size: 14px;
}

.gm-api-lead-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
}

@media (max-width: 768px) {
    .gm-api-lead-dialog {
        /*width: calc(100vw - 24px);*/
        margin: 12px auto;
        /*padding: 22px 12px;*/
    }



    .gm-api-lead-hero:not(.has-image) {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
        padding: 34px 28px;
        text-align: center;
    }

    .gm-api-lead-logo {
        width: 180px;
    }

    .gm-api-lead-slogan {
        font-size: 34px;
    }

    .gm-api-lead-form {
        padding: 16px 18px 20px;
    }

    .gm-api-lead-form h2 {
        font-size: 24px;
    }
    .gm-api-lead-form label {
        font-size: 15px;
        padding-bottom: 0;
    }
}

@media (max-width: 550px) {
    .gm-api-lead-dialog {
        max-height: calc(100vh - 56px);
        margin: 8px auto;
    }
    .gm-api-lead-close {
        top: 14px;
        right: 20px;
    }
    .gm-api-lead-hero:not(.has-image) {
        padding: 28px 18px;
    }

    .gm-api-lead-logo {
        width: 144px;
    }

    .gm-api-lead-logo span {
        font-size: 20px;
    }

    .gm-api-lead-slogan {
        font-size: 28px;
    }

    .gm-api-lead-form {
        padding: 16px 18px 20px;
    }

    .gm-api-lead-form h2 {
        font-size: 22px;
        margin-bottom: 0;
    }
    .gm-api-lead-form input, .gm-api-lead-form select {
        height: 48px;
        font-size: 16px;
        padding: 0 14px;
    }
    .gm-api-lead-form select {
        background-position: calc(100% - 24px) 20px, calc(100% - 16px) 20px;
    }
    .gm-api-lead-form button[type="submit"] {
        height: 48px;
        margin-top: 6px;
    }
}
