/* Contact request dialog. Kept separate so public and app layouts render identically. */
html.contact-modal-open { overflow: hidden; }

.contact-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    color: #182230;
    font-family: inherit;
}

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

.contact-widget__launcher {
    display: inline-flex;
    width: auto;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid #173b60;
    border-radius: 8px;
    background: #173b60;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 35, 58, .22);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.contact-widget__launcher:hover { background: #102f50; box-shadow: 0 12px 28px rgba(15, 35, 58, .27); transform: translateY(-1px); }
.contact-widget__launcher svg { width: 21px; height: 21px; }
.contact-widget.is-open .contact-widget__launcher { visibility: hidden; }

.contact-widget__backdrop {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(13, 28, 43, .56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: contact-backdrop-in .2s ease both;
}

.contact-widget__backdrop[hidden], .contact-widget__panel[hidden] { display: none !important; }

.contact-widget__panel {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border: 1px solid #dce6ed;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(15, 35, 54, .3);
    animation: contact-panel-in .26s cubic-bezier(.2,.8,.25,1) both;
}

.contact-widget__header {
    position: relative;
    display: block;
    padding: 30px 76px 24px 32px;
    border-bottom: 1px solid #e5eaf0;
    background: linear-gradient(135deg, #fff, #f8fbfd);
    color: #182230;
}

.contact-widget__header::before { content: ""; position: absolute; inset-block: 31px auto; inset-inline-start: 0; width: 4px; height: 34px; border-radius: 0 4px 4px 0; background: #087fb7; }
.contact-widget__header h2 { margin: 0; color: #132c40; font-size: 27px; font-weight: 750; line-height: 1.22; letter-spacing: -.035em; }
.contact-widget__header p { max-width: 520px; margin: 8px 0 0; color: #607286; font-size: 14px; line-height: 1.6; }
.contact-widget__header button { position: absolute; top: 22px; right: 24px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid #dce5ec; border-radius: 50%; background: #fff; color: #5e7081; font: inherit; font-size: 23px; line-height: 1; cursor: pointer; transition: background-color .16s,color .16s,transform .16s; }
.contact-widget__header button:hover { background: #123651; border-color: #123651; color: #fff; transform: rotate(4deg); }

.contact-widget__form { padding: 26px 32px 30px; background: #fff; }
.contact-widget__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 20px; }
.contact-widget__grid label { display: block; margin: 0; }
.contact-widget__grid label > span { display: block; margin-bottom: 7px; color: #344b5f; font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.contact-widget__grid label > span b { color: #087fb7; font-size: 12px; }
.contact-widget__grid label > span em { margin-left: 4px; color: #98a2b3; font-size: 11px; font-style: normal; font-weight: 400; }
.contact-widget__grid input, .contact-widget__grid select, .contact-widget__grid textarea { display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid #cbd7e1; border-radius: 11px; outline: 0; background: #fff; color: #182f42; font: inherit; font-size: 14px; box-shadow: 0 1px 2px rgba(18,54,81,.025); transition: border-color .16s,box-shadow .16s,background-color .16s; }
.contact-widget__grid input::placeholder, .contact-widget__grid textarea::placeholder { color: #98a2b3; }
.contact-widget__grid input:hover, .contact-widget__grid select:hover, .contact-widget__grid textarea:hover { border-color: #aebfcd; }
.contact-widget__grid input:focus, .contact-widget__grid select:focus, .contact-widget__grid textarea:focus { border-color: #087fb7; box-shadow: 0 0 0 4px rgba(8, 127, 183, .1); }
.contact-widget__phone > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.contact-widget__phone input:first-child { background: #f4f7f9; color: #40576a; text-align: center; }
.contact-widget__email, .contact-widget__message { grid-column: 1 / -1; }
.contact-widget__grid textarea { min-height: 108px; resize: vertical; }

.contact-widget__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8eef2; }
.contact-widget__privacy { max-width: 290px; margin: 0; color: #7b8794; font-size: 11px; line-height: 1.45; text-align: left; }
.contact-widget__submit { display: inline-flex; width: auto; min-width: 174px; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 0 23px; border: 1px solid #123651; border-radius: 999px; background: #123651; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(18,54,81,.16); transition: background-color .16s,box-shadow .16s,transform .16s; }
.contact-widget__submit:hover { background: #087fb7; border-color: #087fb7; box-shadow: 0 10px 22px rgba(8,127,183,.2); transform: translateY(-1px); }
.contact-widget__submit svg { width: 18px; height: 18px; }

.contact-widget__success, .contact-widget__error { display: flex; align-items: center; gap: 9px; margin: 16px 26px 0; padding: 10px 12px; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.contact-widget__success { border: 1px solid #a9dfbe; background: #effaf3; color: #17663a; }
.contact-widget__error { border: 1px solid #f0b8b8; background: #fff4f4; color: #9f2929; }
.contact-widget__success svg { width: 18px; height: 18px; flex: none; }
.contact-widget__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }

@media (max-width: 620px) {
    .contact-widget { right: 14px; bottom: 14px; }
    .contact-widget__launcher { width: 50px; height: 50px; padding: 0; border-radius: 50%; }
    .contact-widget__launcher span { display: none; }
    .contact-widget__panel { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: calc(100vh - 16px); border-radius: 20px; transform: none; }
    .contact-widget__header { padding: 23px 60px 19px 22px; }
    .contact-widget__header::before { inset-block-start: 24px; height: 31px; }
    .contact-widget__header h2 { font-size: 23px; }
    .contact-widget__header p { font-size: 13px; }
    .contact-widget__header button { top: 17px; right: 17px; }
    .contact-widget__form { padding: 20px 22px 22px; }
    .contact-widget__grid { grid-template-columns: 1fr; gap: 13px; }
    .contact-widget__email, .contact-widget__message { grid-column: auto; }
    .contact-widget__footer { flex-direction: column-reverse; gap: 12px; padding-top: 18px; }
    .contact-widget__privacy { max-width: none; text-align: center; }
    .contact-widget__submit { width: 100%; }
}

@keyframes contact-panel-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes contact-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 620px) { @keyframes contact-panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } } }
@media (prefers-reduced-motion: reduce) { .contact-widget__panel, .contact-widget__backdrop { animation: none; } }

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