.expert-contact-lock {
    overflow: hidden;
}

.expert-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
    backdrop-filter: none;
}

.expert-contact-modal.is-open {
    display: flex;
}

.expert-contact-dialog {
    position: relative;
    width: min(100%, 1040px);
    max-height: min(92vh, 980px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #0b0b0c;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .54);
    color: #fff;
}

.expert-contact-dialog::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 208, 162, .18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 38%);
}

.expert-contact-inner {
    position: relative;
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    min-height: 640px;
}

.expert-contact-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}

.expert-contact-logo {
    --logo-height: 2.5rem;
    background: transparent;
    color: #fff;
}

.expert-contact-logo .primary-header__logo-mark--light {
    display: none;
}

.expert-contact-logo .primary-header__logo-mark--dark {
    display: block;
}

.expert-contact-logo .primary-header__logo-word {
    color: #fff;
}

.expert-contact-brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 34px;
}

.expert-contact-kicker {
    display: inline-flex;
    flex: 0 0 auto;
    width: fit-content;
    border: 1px solid rgba(0, 208, 162, .34);
    border-radius: 999px;
    padding: 7px 12px;
    color: #00d0a2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.expert-contact-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: 34px;
    line-height: 1.08;
}

.expert-contact-copy,
.expert-contact-proof,
.expert-contact-status {
    color: rgba(255, 255, 255, .7);
}

.expert-contact-copy {
    max-width: 32rem;
    line-height: 1.58;
}

.expert-contact-proof {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
}

.expert-contact-proof li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.expert-contact-proof li::before {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 999px;
    background: #00d0a2;
    content: "";
}

.expert-contact-body {
    padding: 34px;
}

.expert-contact-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.expert-contact-close:hover,
.expert-contact-close:focus {
    background: rgba(0, 208, 162, .18);
    outline: none;
}

.expert-contact-form .form-control {
    min-height: 52px;
    border-color: rgba(255, 255, 255, .18);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.expert-contact-form.row {
    margin-right: 0;
    margin-left: 0;
}

.expert-contact-form textarea.form-control {
    min-height: 142px;
}

.expert-contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, .52);
}

.expert-contact-form .form-control:focus {
    border-color: rgba(0, 208, 162, .72);
    box-shadow: 0 0 0 .2rem rgba(0, 208, 162, .12);
}

.expert-company-field {
    position: relative;
}

.expert-company-results {
    position: absolute;
    z-index: 3;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: #161617;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.expert-company-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 14px 16px;
}

.expert-company-option:last-child {
    border-bottom: 0;
}

.expert-company-option:hover,
.expert-company-option:focus {
    background: rgba(0, 208, 162, .1);
    outline: none;
}

.expert-company-option__name {
    display: block;
    font-weight: 800;
}

.expert-company-option__meta,
.expert-company-status,
.expert-company-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
}

.expert-company-option__meta,
.expert-company-status {
    color: rgba(255, 255, 255, .64);
}

.expert-company-status {
    min-height: 18px;
}

.expert-company-status.is-valid {
    color: #00d0a2;
}

.expert-company-error,
.expert-contact-error {
    color: #ff8d8d;
}

.expert-company-details {
    border: 1px solid rgba(0, 208, 162, .26);
    border-radius: 8px;
    background: rgba(0, 208, 162, .07);
    padding: 16px;
}

.expert-company-details label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

{% if expertContactTechSeoDiagnostic %}
    .expert-contact-modal--techseo-diagnostic .expert-contact-dialog {
        width: min(calc(100vw - 32px), 1480px);
        height: min(820px, calc(100vh - 32px));
        max-height: calc(100vh - 32px);
        overflow: hidden;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-inner {
        grid-template-columns: 340px minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-aside,
    .expert-contact-modal--techseo-diagnostic .expert-contact-body {
        min-height: 0;
        padding: 24px;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-body {
        padding-right: 72px;
        overflow: hidden;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-close {
        z-index: 8;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        border-color: rgba(255, 255, 255, .22);
        background: rgba(14, 16, 17, .96);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-brand {
        justify-content: flex-start;
        margin-bottom: 34px;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-kicker {
        display: none;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-title {
        font-size: 28px;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-copy {
        font-size: 14px;
        line-height: 1.52;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-proof {
        gap: 10px;
        margin-top: 22px;
        font-size: 13px;
        line-height: 1.38;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-form {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 10px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        align-content: start;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-form > :not(input[type="hidden"]) {
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--techseo {
        order: 1;
        grid-column: 1 / -1;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--firstname,
    .expert-contact-modal--techseo-diagnostic .expert-contact-field--lastname,
    .expert-contact-modal--techseo-diagnostic .expert-contact-field--phone,
    .expert-contact-modal--techseo-diagnostic .expert-contact-field--email {
        order: 2;
        grid-column: span 3;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--company {
        order: 3;
        grid-column: span 6;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--message {
        order: 3;
        grid-column: span 6;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--details {
        order: 4;
        grid-column: 1 / -1;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--captcha {
        order: 5;
        grid-column: span 4;
        align-self: end;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-field--submit {
        order: 5;
        grid-column: span 8;
        align-self: end;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-form .form-control {
        min-height: 40px;
        font-size: 14px;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-form textarea.form-control {
        min-height: 78px;
        resize: none;
    }

    .expert-contact-modal--techseo-diagnostic .expert-contact-submit {
        min-height: 40px;
    }

    .expert-contact-modal--techseo-diagnostic .expert-company-status {
        min-height: 14px;
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.25;
    }

    .expert-contact-modal--techseo-diagnostic .expert-company-results {
        max-height: 220px;
    }

    .expert-techseo-diagnostic {
        display: grid;
        gap: 10px;
        border: 1px solid rgba(0, 208, 162, .22);
        border-radius: 8px;
        background:
            linear-gradient(135deg, rgba(0, 208, 162, .10), rgba(255, 255, 255, .04)),
            rgba(255, 255, 255, .035);
        padding: 14px;
    }

    .expert-techseo-diagnostic[hidden] {
        display: none;
    }

    .expert-techseo-diagnostic__head {
        display: grid;
        gap: 6px;
        min-height: 58px;
        align-content: center;
    }

    .expert-techseo-diagnostic__head strong {
        color: #fff;
        font-size: 16px;
        line-height: 1.3;
    }

    .expert-techseo-diagnostic__head span {
        color: rgba(255, 255, 255, .62);
        font-size: 13px;
        line-height: 1.45;
    }

    .expert-techseo-diagnostic__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .expert-techseo-diagnostic__field {
        display: grid;
        gap: 4px;
    }

    .expert-techseo-diagnostic__field--wide {
        grid-column: span 2;
    }

    .expert-techseo-diagnostic__field label {
        color: rgba(255, 255, 255, .64);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    @media (max-width: 1199.98px) {
        .expert-techseo-diagnostic__grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .expert-techseo-diagnostic__field--wide {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 991.98px) {
        .expert-contact-modal--techseo-diagnostic .expert-contact-dialog {
            height: auto;
            overflow: auto;
        }

        .expert-contact-modal--techseo-diagnostic .expert-contact-inner {
            grid-template-columns: 1fr;
            height: auto;
        }

        .expert-contact-modal--techseo-diagnostic .expert-contact-body {
            padding-right: 24px;
            overflow: visible;
        }

        .expert-contact-modal--techseo-diagnostic .expert-contact-form {
            grid-template-columns: 1fr;
            height: auto;
            overflow: visible;
        }

        .expert-contact-modal--techseo-diagnostic .expert-contact-form > :not(input[type="hidden"]) {
            grid-column: 1 / -1;
        }

        .expert-techseo-diagnostic__grid {
            grid-template-columns: 1fr;
        }
    }
{% endif %}

.expert-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: #00d0a2;
    color: #06110e;
    padding: 0 22px;
    font-weight: 900;
}

.expert-contact-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.expert-contact-status {
    margin-bottom: 0;
    font-size: 14px;
}

.expert-contact-status.is-success {
    color: #00d0a2;
}

.expert-contact-status.is-error {
    color: #ff8d8d;
}

@media (max-width: 991.98px) {
    .expert-contact-inner {
        grid-template-columns: 1fr;
    }

    .expert-contact-aside {
        gap: 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
}

@media (max-width: 575.98px) {
    .expert-contact-modal {
        padding: 12px;
    }

    .expert-contact-aside,
    .expert-contact-body {
        padding: 24px;
    }

    .expert-contact-title {
        font-size: 28px;
    }

    {% if expertContactTechSeoDiagnostic %}
        .expert-techseo-diagnostic__grid {
            grid-template-columns: 1fr;
        }
    {% endif %}

    .expert-contact-brand {
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 28px;
        padding-right: 48px;
    }

    .expert-contact-logo {
        --logo-height: 2.25rem;
    }

    .expert-contact-kicker {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: .06em;
        white-space: nowrap;
    }
}
