/* OKIR V42.1.7.6: fade phone endings and email beginnings. */
.okir-contact-fade {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
    color: currentColor;
    filter: none;
    opacity: 1;
    user-select: none;
}

.okir-contact-fade--phone {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 7ch), transparent calc(100% - 2ch), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 7ch), transparent calc(100% - 2ch), transparent 100%);
}

.okir-contact-fade--email {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 2ch, #000 7ch, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 2ch, #000 7ch, #000 100%);
}

a.okir-masked-contact {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.contact-card button.profile-contact-trigger {
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    color: var(--blue-700, #0757b9);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.okir-engineer-request-anchor {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 11px 22px !important;
    border: 1px solid #0757b9 !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #1370d1, #074b9e) !important;
    box-shadow: 0 8px 18px rgba(8, 75, 158, .2) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

.okir-engineer-request-anchor:hover,
.okir-engineer-request-anchor:focus-visible {
    background: linear-gradient(180deg, #1678df, #063f88) !important;
}

.okir-request-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.engineer-consultation-open {
    overflow: hidden !important;
}

.engineer-consultation-modal[hidden] {
    display: none !important;
}

.engineer-consultation-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.engineer-consultation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 25, 58, .64);
    backdrop-filter: blur(5px);
}

.engineer-consultation-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #bfd4f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 39, 91, .32);
}

.engineer-consultation-dialog h2 {
    margin: 0 42px 6px 0;
    color: #073c80;
    font-size: 26px;
    line-height: 1.15;
}

.engineer-consultation-dialog > p {
    margin: 0 0 18px;
    color: #34557f;
}

.engineer-consultation-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #c9d9ee;
    border-radius: 50%;
    color: #073c80;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.engineer-consultation-form {
    display: grid;
    gap: 14px;
}

.engineer-consultation-form > label > span {
    display: block;
    margin-bottom: 6px;
    color: #0a3f82;
    font-weight: 800;
}

.engineer-consultation-form input[type="text"],
.engineer-consultation-form input[type="tel"],
.engineer-consultation-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #b9d0ef;
    border-radius: 8px;
    color: #123f78;
    background: #fff;
    font: inherit;
}

.engineer-consultation-form textarea {
    min-height: 110px;
    resize: vertical;
}

.engineer-consultation-question[hidden] {
    display: none !important;
}

.engineer-consultation-form .personal-data-consents {
    padding: 12px;
    gap: 8px;
}

.engineer-consultation-form .personal-data-consents label {
    font-size: 11px;
    line-height: 1.25;
}

.engineer-consultation-form > .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .engineer-consultation-modal {
        padding: 10px;
    }

    .engineer-consultation-dialog {
        max-height: calc(100vh - 20px);
        padding: 22px 16px 18px;
        border-radius: 12px;
    }

    .engineer-consultation-dialog h2 {
        font-size: 22px;
    }
}
