.consultation-header { margin: 0 0 1rem; }
.consultation-header h2 { margin: 0; font-size: 1.4rem; font-weight: 550; }
.consultation-header p, #contact-status { margin: .5rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--text-muted); }
.contact-choices, .contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-entry { min-height: max(320px, var(--enquiry-height)); display: grid; place-items: center; text-align: center; }
.contact-entry p { margin: 0; font-size: 1rem; line-height: 1.6; }
.contact-entry a { text-decoration: underline; text-underline-offset: .2em; }
.contact-spinner { display: block; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: contact-spin .8s linear infinite; }
@keyframes contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .contact-spinner { animation: none; } }
.contact-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid var(--border); background: var(--page-bg); color: var(--text); }
.contact-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.contact-dialog h2 { margin: 0 0 1.25rem; font-size: 1.25rem; font-weight: 550; }
.contact-dialog > form, .contact-dialog > p { margin-bottom: 1rem; }
.contact-tools { position: sticky; top: 0; z-index: 1; align-self: flex-end; height: 0; margin-bottom: -1rem; }
.enquiry:has(.contact-tools:not([hidden])) #contact-status { padding-right: 2rem; }
.contact-voice-options { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.contact-voice-options button { text-align: left; }
.contact-voice-options span, .contact-voice-options small { display: block; }
.contact-voice-options small { margin-top: .35rem; font-size: .8rem; line-height: 1.5; color: var(--text-muted); }
.consultation-panel button:not(.chat-send), .summary-page > button { padding: .65rem .8rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.consultation-panel button:not(.chat-send):hover:not(:disabled), .summary-page > button:hover { background: var(--surface-selected); }
.consultation-panel button:disabled { opacity: .55; cursor: default; }
.consultation-panel button.contact-link, .consultation-panel button.contact-link:hover { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.consultation-panel button.contact-icon-button, .consultation-panel button.contact-icon-button:hover { padding: 4px; border: 0; background: transparent; line-height: 0; }
.contact-link-icon { vertical-align: -.2em; margin-inline-end: .25em; }
.enquiry { gap: .75rem; height: max(320px, var(--enquiry-height)); min-height: 0; max-height: none; overflow: hidden; }
.enquiry > * { flex-shrink: 0; }
.enquiry .enquiry-history { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 6px 2px 8px; display: flex; flex-direction: column; }
.enquiry-history:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.enquiry .contact-choices { min-height: 0; max-height: 25%; overflow-y: auto; }
.enquiry #contact-status { margin: 0; font-size: .8rem; }
.enquiry #contact-status:empty { display: none; }
.enquiry .contact-actions { gap: .25rem .75rem; }
.enquiry .contact-actions button { padding: .25rem 0; border: 0; background: transparent; font-size: .8rem; }
.chat-thinking { display: flex; align-items: center; gap: 5px; min-height: 1.6em; }
.chat-thinking span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: chat-thinking 1.2s ease-in-out infinite; }
.chat-thinking span:nth-child(2) { animation-delay: .15s; }
.chat-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-thinking { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-thinking span { animation: none; opacity: .65; } }
.enquiry label { display: grid; gap: .5rem; font-size: .9rem; line-height: 1.5; }
.enquiry input { width: 100%; padding: .75rem; border: 1px solid var(--border); background: var(--page-bg); color: var(--text); font: inherit; }
.enquiry input:focus-visible, .summary-page button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.enquiry form:not(.enquiry-composer) { display: grid; gap: 1rem; }
.consultation-panel { width: 100%; min-width: 0; }
#consultation-content > .contact-note { margin: .75rem 0 0; }
.contact-note { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
#contact-consent-notice { font-size: .8rem; opacity: .75; }
a.contact-note, .contact-note a, .contact-link-label, .evidence-card a, .summary-page a { text-decoration: underline; text-underline-offset: .2em; }
#contact-thread { display: grid; flex-shrink: 0; gap: 1rem; margin-top: auto; }
#contact-thread .chat-message { max-width: 100%; }
.enquiry .chat-send { border-radius: 0; width: auto; flex-basis: auto; padding-inline: 1rem; font-size: .9rem; }
.summary-page { max-width: 840px; margin: 0 auto; padding: 2rem 1.25rem 4rem; line-height: 1.7; }
.summary-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.summary-page h1 { font-size: 2em; margin: 2rem 0 1rem; }
.summary-page h2 { font-size: 1.2em; margin: 1.5rem 0 .6rem; }
.privacy-content { font-size: .9rem; opacity: .85; }
.summary-page #summary-content { display: grid; gap: 1rem; margin-bottom: 1rem; }
.summary-page #summary-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-error { color: #f2a6a6 !important; }
@media print { .summary-page button, .summary-page nav { display: none; } .summary-page { color: black; background: white; } .privacy-content { opacity: 1; } }
