.contact-chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
    align-items: start;
    gap: 2rem clamp(2rem, 6vw, 7rem);
    margin-top: clamp(2rem, 5vw, 4.5rem);
}
.quote-form {
    display: grid;
    gap: .7rem;
    min-width: 0;
    padding-top: .85rem;
    border-top: 1px solid #555;
    text-align: left;
    scroll-margin-top: 7rem;
    container-type: inline-size;
}
.quote-form h3 {
    color: var(--text);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}
.quote-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.quote-fields label:first-child { grid-column: 1 / -1; }
@container (min-width: 28rem) {
    .quote-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quote-fields label:first-child { grid-column: auto; }
}
.quote-form label {
    display: grid;
    gap: .25rem;
    min-width: 0;
    color: #b3b0a9;
    font: 400 .625rem/1.5 "DM Mono", monospace;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.quote-form input, .quote-form textarea {
    width: 100%;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid #555;
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    font: 400 .9375rem/1.35 Inter, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
.quote-form textarea { min-height: 4rem; resize: vertical; }
.quote-form button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem .8rem;
    border: 1px solid #555;
    background: transparent;
    color: var(--text);
    font: 400 .625rem/1.4 "DM Mono", monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.quote-form button:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}
#quote-success { font-size: .875rem; }
.contact-chat-button, #live-chat-toggle {
    border: 0;
    border-radius: 2rem;
    padding: .75rem 1rem;
    color: #fff;
    background: #352952;
    font: inherit;
    cursor: pointer;
}
@media (max-width: 760px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .quote-form { width: min(100%, 34rem); }
    .quote-form input, .quote-form textarea { font-size: 1rem; }
}
#live-chat-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    box-shadow: 0 4px 16px #0004;
    font-size: 1.35rem;
    z-index: 90;
}
#guest-dialog {
  width: min(490px, calc(100% - 24px));
  max-height: min(720px, calc(100dvh - 24px));
}
#guest-dialog .modal-top { margin-bottom: 8px; }
.guest-description { font-size: .83rem; margin-bottom: 16px; }
#guest-start label, #guest-send label { margin: 0; }
#guest-start .primary { width: 100%; margin-top: 12px; }
#guest-empty { font-size: .83rem; padding: 12px; margin: 0; }
#guest-messages {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: grid;
  gap: 8px;
  max-height: min(40dvh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#guest-messages:empty { display: none; }
.guest-message {
  width: fit-content;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.guest-message.mine { justify-self: end; background: var(--selected); }
.guest-message strong { display: block; color: var(--muted); font-size: .72rem; }
.guest-message p { margin: 3px 0 0; white-space: pre-wrap; }
#guest-send { margin-top: 12px; }
#guest-message { resize: vertical; max-height: 22dvh; font-size: 1rem; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guest-actions .primary { margin-inline-start: auto; }
#guest-status { margin: 10px 0 0; font-size: .82rem; }
#guest-status:empty { display: none; }

#guest-dialog {
    --soft: #f4f1fb;
    --selected: #eee7ff;
    --muted: #60596f;
    position: fixed;
    inset: auto 1rem 1rem auto;
    margin: 0;
    padding: 1rem;
    width: min(24rem, calc(100vw - 2rem));
    border: 1px solid #e8e1f5;
    border-radius: 1rem;
    color: #241b34;
    background: #fff;
    box-shadow: 0 12px 48px #0004;
    font: 400 .9375rem/1.45 Inter, Arial, sans-serif;
}
#guest-dialog::backdrop { background: #15112366; }
#guest-dialog [hidden] { display: none; }
#guest-dialog .modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
#guest-title { font-size: 1.15rem; font-weight: 600; }
#guest-title span {
    display: block;
    color: #6546d3;
    font: 400 .625rem/1.6 "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .1em;
}
#guest-dialog .subtle { color: var(--muted); }
#guest-dialog label { display: block; font-size: .8125rem; }
#guest-dialog input, #guest-dialog textarea {
    display: block;
    width: 100%;
    margin: .35rem 0 0;
    padding: .65rem;
    border: 1px solid #d6cede;
    border-radius: .65rem;
    color: inherit;
    background: #fff;
    font: inherit;
    font-size: 1rem;
}
#guest-dialog button {
    min-height: 42px;
    padding: .5rem .85rem;
    border: 0;
    border-radius: .65rem;
    color: inherit;
    background: var(--soft);
    cursor: pointer;
    font: inherit;
}
#guest-dialog button.primary { background: #6546d3; color: #fff; }
#guest-dialog button:disabled { opacity: .55; cursor: wait; }
#guest-dialog button.icon-button { min-width: 42px; font-size: 1.35rem; }
#guest-dialog .error { color: #a5253d; }
#guest-dialog :focus-visible { outline: 2px solid #6546d3; outline-offset: 2px; }
