/* ==========================================================
   100MEDO SHARED CONTACT / HANDOFF
   G-SHARED-03B
   ========================================================== */

.cemmedo-handoff {
    position: fixed;
    z-index: 100000;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.cemmedo-handoff[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}

.cemmedo-handoff__backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(12, 10, 15, .76);

    backdrop-filter: blur(4px);
}

.cemmedo-handoff__dialog {
    position: relative;
    z-index: 2;

    width: min(720px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    padding: 34px;

    border:
        1px solid
        rgba(116, 64, 177, .12);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 24px 80px
        rgba(20, 13, 28, .26);

    color: #302b34;

    outline: none;
}

.cemmedo-handoff__close {
    position: absolute;

    top: 14px;
    right: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f4f1f6;

    color: #4a414f;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.cemmedo-handoff__close:hover,
.cemmedo-handoff__close:focus {
    background: #ece6f0;

    color: #7627c9;
}

.cemmedo-handoff__header {
    padding-right: 44px;
    margin-bottom: 26px;
}

.cemmedo-handoff__eyebrow {
    margin: 0 0 8px;

    color: #7627c9;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.cemmedo-handoff__title {
    margin: 0 0 12px;

    color: #302b34;

    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
}

.cemmedo-handoff__context {
    margin: 0 0 12px;

    color: #635a69;

    font-size: 13px;
    line-height: 1.4;
}

.cemmedo-handoff__context strong {
    color: #4b4050;
}

.cemmedo-handoff__description {
    margin: 0;

    color: #625a66;

    font-size: 15px;
    line-height: 1.6;
}

.cemmedo-handoff__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.cemmedo-handoff__intent-group {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 18px;
}

.cemmedo-handoff__intent-group[hidden] {
    display: none !important;
}

.cemmedo-handoff__field {
    margin-top: 18px;
}

.cemmedo-handoff__grid
.cemmedo-handoff__field {
    margin-top: 0;
}

.cemmedo-handoff__field label {
    display: block;

    margin-bottom: 7px;

    color: #453d49;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.cemmedo-handoff__field input,
.cemmedo-handoff__field select,
.cemmedo-handoff__field textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 12px 13px;

    border:
        1px solid
        #dcd5df;

    border-radius: 9px;

    background: #ffffff;

    color: #302b34;

    font: inherit;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.cemmedo-handoff__field input,
.cemmedo-handoff__field select {
    min-height: 46px;
}

.cemmedo-handoff__field textarea {
    resize: vertical;

    min-height: 118px;
}

.cemmedo-handoff__field input:focus,
.cemmedo-handoff__field select:focus,
.cemmedo-handoff__field textarea:focus {
    border-color: #7627c9;

    box-shadow:
        0 0 0 3px
        rgba(118, 39, 201, .10);
}

.cemmedo-handoff__privacy {
    margin-top: 20px;

    padding: 14px 16px;

    border-radius: 10px;

    background: #f7f4f8;
}

.cemmedo-handoff__privacy label {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 0;

    color: #564d5a;

    font-size: 12px;
    line-height: 1.5;

    cursor: pointer;
}

.cemmedo-handoff__privacy input {
    flex: 0 0 auto;

    margin-top: 3px;
}

.cemmedo-handoff__notice {
    min-height: 20px;

    margin-top: 16px;

    color: #665c6a;

    font-size: 13px;
    line-height: 1.45;
}

.cemmedo-handoff__submit {
    display: block;

    width: 100%;

    min-height: 48px;

    margin-top: 12px;

    padding: 12px 18px;

    border: 0;
    border-radius: 9px;

    background: #7627c9;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 750;

    cursor: pointer;
}

.cemmedo-handoff__submit[disabled] {
    cursor: not-allowed;

    opacity: .48;
}

.cemmedo-handoff__disclaimer {
    margin: 14px 0 0;

    color: #756b79;

    font-size: 11px;
    line-height: 1.5;
}

html.cemmedo-handoff-open,
html.cemmedo-handoff-open body {
    overflow: hidden !important;
}

@media (max-width: 640px) {

    .cemmedo-handoff {
        align-items: flex-end;

        padding: 0;
    }

    .cemmedo-handoff__dialog {
        width: 100%;
        max-height: 94vh;

        padding:
            28px
            20px
            24px;

        border-radius:
            18px
            18px
            0
            0;
    }

    .cemmedo-handoff__title {
        font-size: 24px;
    }

    .cemmedo-handoff__grid,
    .cemmedo-handoff__intent-group {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .cemmedo-handoff__field {
        margin-top: 14px;
    }

    .cemmedo-handoff__grid
    .cemmedo-handoff__field {
        margin-top: 0;
    }

}
