.engineer-contact {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1040;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    color: #111B24;
}

.engineer-contact *,
.engineer-contact *::before,
.engineer-contact *::after { box-sizing: border-box; }

.engineer-contact__trigger {
    min-width: 44px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: #111B24;
    color: #fff;
    font: 600 15px/1 "IBM Plex Sans", Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(17, 27, 36, .24);
    cursor: pointer;
}

.engineer-contact__trigger:hover { background: #0B4B68; }
.engineer-contact__trigger:focus-visible,
.engineer-contact__close:focus-visible,
.engineer-contact__option:focus-visible,
.engineer-contact__action:focus-visible {
    outline: 3px solid #EA6429;
    outline-offset: 3px;
}

.engineer-contact__trigger-icon { position: relative; width: 24px; height: 24px; flex: 0 0 24px; }
.engineer-contact__trigger-icon svg,
.engineer-contact__option-icon svg,
.engineer-contact__chevron,
.engineer-contact__close svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.engineer-contact__trigger-icon > span {
    position: absolute;
    top: -1px;
    right: -2px;
    width: 8px;
    height: 8px;
    border: 2px solid #111B24;
    border-radius: 50%;
    background: #EA6429;
}

.engineer-contact__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(420px, calc(100vw - 36px));
    overflow: hidden;
    border: 1px solid rgba(17, 27, 36, .16);
    border-radius: 18px;
    background: #F7F6F2;
    box-shadow: 0 22px 55px rgba(17, 27, 36, .25);
    animation: engineer-panel-in .18s ease-out;
}
.engineer-contact__panel[hidden] { display: none; }

@keyframes engineer-panel-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.engineer-contact__header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(17, 27, 36, .13);
}
.engineer-contact__brand {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #111B24;
}
.engineer-contact__brand img { width: 100%; height: 100%; display: block; object-fit: contain; }
.engineer-contact__heading { min-width: 0; padding-top: 2px; }
.engineer-contact__heading strong { display: block; color: #111B24; font-size: 17px; line-height: 1.25; font-weight: 700; }
.engineer-contact__heading > span { display: block; margin-top: 4px; color: #5D6974; font-size: 13px; line-height: 1.35; }
.engineer-contact__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111B24;
    cursor: pointer;
}
.engineer-contact__close:hover { background: rgba(17, 27, 36, .08); }

.engineer-contact__options { background: #fff; }
.engineer-contact__option {
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(17, 27, 36, .12);
    color: #111B24;
    text-decoration: none;
}
.engineer-contact__option-button { width: 100%; border-width: 0 0 1px; font-family: inherit; text-align: left; cursor: pointer; }
.engineer-contact__option:hover { background: #F7F6F2; color: #111B24; text-decoration: none; }
.engineer-contact__option-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(11, 75, 104, .10);
    color: #0B4B68;
}
.engineer-contact__option-copy { min-width: 0; }
.engineer-contact__option-copy > strong { display: block; color: #111B24; font-size: 15px; line-height: 1.3; font-weight: 700; }
.engineer-contact__option-copy > span:not(.engineer-contact__direct-actions) { display: block; margin-top: 3px; color: #5D6974; font-size: 12.5px; line-height: 1.35; }
.engineer-contact__chevron { width: 20px; height: 20px; color: #5D6974; }
.engineer-contact__option--direct { grid-template-columns: 44px minmax(0, 1fr); padding-block: 14px; }
.engineer-contact__direct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.engineer-contact__action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #0B4B68;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}
.engineer-contact__action--primary { border-color: #EA6429; background: #EA6429; color: #111B24; }
.engineer-contact__action--primary:hover { background: #EA6429; color: #111B24; box-shadow: inset 0 0 0 2px rgba(17, 27, 36, .22); text-decoration: none; }
.engineer-contact__action--secondary { background: #fff; color: #0B4B68; }
.engineer-contact__action--secondary:hover { background: #0B4B68; color: #fff; text-decoration: none; }
.engineer-contact__footer {
    padding: 11px 16px;
    color: #5D6974;
    font: 500 12px/1.4 "IBM Plex Mono", monospace;
    text-align: center;
}

.engineer-contact__meeting { max-height: min(680px, calc(100vh - 140px)); overflow-y: auto; padding: 14px 16px 18px; background: #fff; }
.engineer-contact__meeting[hidden] { display: none; }
.engineer-contact__back {
    min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 4px; padding: 0 8px;
    border: 0; background: transparent; color: #0B4B68; font: 600 14px/1 "IBM Plex Sans", Arial, sans-serif; cursor: pointer;
}
.engineer-contact__back span { font-size: 28px; line-height: 1; }
.engineer-contact__back:hover { text-decoration: underline; }
.engineer-contact__meeting h2 { margin: 2px 0 4px; color: #111B24; font-size: 20px; line-height: 1.25; }
.engineer-contact__meeting > div > p { margin: 0 0 14px; color: #5D6974; font-size: 14px; line-height: 1.45; }
.engineer-contact__meeting form { display: grid; gap: 12px; }
.engineer-contact__field { min-width: 0; }
.engineer-contact__field label,
.engineer-contact__meeting legend { display: block; margin-bottom: 5px; color: #111B24; font-size: 13px; line-height: 1.35; font-weight: 600; }
.engineer-contact__meeting legend small { color: #5D6974; font-weight: 400; }
.engineer-contact__field input,
.engineer-contact__field textarea {
    width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #7A858E; border-radius: 7px;
    background: #fff; color: #111B24; font: 400 16px/1.35 "IBM Plex Sans", Arial, sans-serif;
}
.engineer-contact__field textarea { min-height: 84px; resize: vertical; }
.engineer-contact__field input:focus,
.engineer-contact__field textarea:focus { border-color: #0B4B68; outline: 3px solid rgba(11, 75, 104, .22); outline-offset: 1px; }
.engineer-contact__meeting fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.engineer-contact__date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.engineer-contact__timezone { margin: 6px 0 0; color: #5D6974; font: 500 12px/1.4 "IBM Plex Mono", monospace; }
.engineer-contact__radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.engineer-contact__radios label {
    min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #9AA2A8;
    border-radius: 7px; color: #111B24; font-size: 13px; cursor: pointer;
}
.engineer-contact__radios input { width: 18px; height: 18px; margin: 0; accent-color: #0B4B68; }
.engineer-contact__error { display: block; min-height: 0; margin-top: 4px; color: #9C3210; font-size: 12px; line-height: 1.35; }
.engineer-contact__error:empty { display: none; }
.engineer-contact__error--general { padding: 9px 11px; border-left: 4px solid #BB471A; background: #F7F6F2; font-size: 13px; }
.engineer-contact__submit {
    min-height: 48px; padding: 0 18px; border: 1px solid #EA6429; border-radius: 9px; background: #EA6429;
    color: #111B24; font: 700 15px/1 "IBM Plex Sans", Arial, sans-serif; cursor: pointer;
}
.engineer-contact__submit:hover { box-shadow: inset 0 0 0 2px rgba(17, 27, 36, .22); }
.engineer-contact__submit:disabled { cursor: wait; opacity: .72; }
.engineer-contact__back:focus-visible,
.engineer-contact__submit:focus-visible { outline: 3px solid #EA6429; outline-offset: 3px; }
.engineer-contact__honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.engineer-contact__success { padding: 24px 8px 30px; text-align: center; }
.engineer-contact__success > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #0B4B68; color: #fff; font-size: 24px; }
.engineer-contact__success p { margin: 9px 0; color: #111B24; font-size: 15px; line-height: 1.5; }
.engineer-contact__success strong { font-family: "IBM Plex Mono", monospace; }
.engineer-contact__network-error { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid #BB471A; background: #F7F6F2; color: #111B24; font-size: 13px; line-height: 1.45; }
.engineer-contact__network-error[hidden] { display: none; }

@media (max-width: 599px) {
    .engineer-contact__trigger {
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
    }
    .engineer-contact__trigger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .engineer-contact__panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
    }
    .engineer-contact__meeting { max-height: none; }
    .engineer-contact.is-open .engineer-contact__trigger { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .engineer-contact__panel { animation: none; }
    .engineer-contact__trigger { transition: none; }
}

@media print { .engineer-contact { display: none !important; } }
