/* Dialog Group websiteconcept v26
   Contact lead generation and supportive Digital Colleague.
   The existing visual system remains unchanged. */

body.v26-digital-colleague {
  --v26-blue: var(--royal, #3468D0);
  --v26-blue-dark: var(--navy, #002766);
  --v26-blue-mid: var(--blue, #004A97);
  --v26-ice: var(--ice, #EBF2FB);
  --v26-ink: var(--ink, #2B3A52);
  --v26-muted: #4F6078;
  --v26-border: rgba(0, 39, 102, 0.18);
}

/* Contact form */
.contact-grid-v26 {
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.contact-copy-v26 > p:not(.eyebrow) {
  max-width: 660px;
}

.contact-form-v26 {
  align-self: start;
}

.contact-method-v26 {
  min-width: 0;
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
}

.contact-method-v26 legend {
  margin-bottom: 0.75rem;
  color: var(--v26-blue-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.contact-method-options-v26 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-method-options-v26 label {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--v26-border);
  border-radius: var(--radius-sm, 12px);
  color: var(--v26-blue-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.contact-method-options-v26 label:hover {
  border-color: var(--v26-blue);
  background: var(--v26-ice);
}

.contact-method-options-v26 input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--v26-blue);
}

.contact-method-options-v26 label:has(input:checked) {
  border-color: var(--v26-blue);
  box-shadow: inset 0 0 0 1px var(--v26-blue);
  background: var(--v26-ice);
}

.contact-promise-v26 {
  margin: 0.2rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--v26-blue);
  border-radius: 0 var(--radius-sm, 12px) var(--radius-sm, 12px) 0;
  color: var(--v26-blue-dark);
  background: var(--v26-ice);
  font-weight: 700;
}

.contact-person-card-v26 {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md, 20px);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 42px rgba(0, 23, 63, 0.18);
}

.contact-person-card-v26 > img {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
}

.contact-person-card-v26 h3 {
  margin: 0.1rem 0 0.2rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.contact-person-card-v26 p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.contact-person-eyebrow-v26 {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-person-role-v26 {
  margin-bottom: 0.75rem !important;
  font-weight: 700;
}

.contact-person-links-v26 {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.contact-person-links-v26 a {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm, 12px);
  color: #fff;
  text-decoration: none;
  background: rgba(0, 39, 102, 0.28);
}

.contact-person-links-v26 a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.contact-person-links-v26 span {
  font-size: 0.88rem;
}

.contact-person-links-v26 strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

/* Supportive Digital Colleague */
.dg-assistant-v26 {
  position: fixed;
  z-index: 1350;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
}

.dg-assistant-trigger-v26 {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: var(--v26-blue-dark);
  box-shadow: 0 16px 38px rgba(0, 39, 102, 0.24);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dg-assistant-trigger-v26:hover {
  background: var(--v26-blue-mid);
  transform: translateY(-1px);
}

.dg-assistant-symbol-v26 {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--v26-blue);
}

.dg-assistant-symbol-v26 svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dg-assistant-panel-v26 {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  width: min(420px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid var(--v26-border);
  border-radius: var(--radius-lg, 24px);
  color: var(--v26-ink);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 39, 102, 0.24);
  overscroll-behavior: contain;
}

.dg-assistant-panel-v26[hidden] { display: none; }

.dg-assistant-head-v26 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.dg-assistant-head-v26 > div > span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--v26-blue-mid);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dg-assistant-head-v26 h2 {
  margin: 0;
  color: var(--v26-blue-dark);
  font-size: 1.45rem;
  line-height: 1.22;
}

.dg-assistant-close-v26 {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--v26-border);
  border-radius: 50%;
  color: var(--v26-blue-dark);
  background: var(--v26-ice);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.dg-assistant-intro-v26,
.dg-assistant-note-v26 {
  color: var(--v26-muted);
  line-height: 1.6;
}

.dg-assistant-links-v26 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.dg-assistant-links-v26 a {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--v26-border);
  border-radius: var(--radius-sm, 12px);
  color: var(--v26-blue-dark);
  background: var(--v26-ice);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.dg-assistant-links-v26 a:hover {
  border-color: var(--v26-blue);
  background: #fff;
}

.dg-assistant-faq-v26 {
  margin: 0 0 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v26-border);
}

.dg-assistant-faq-v26 h3 {
  margin: 0 0 0.65rem;
  color: var(--v26-blue-dark);
  font-size: 1rem;
}

.dg-assistant-faq-v26 details {
  border-bottom: 1px solid var(--v26-border);
}

.dg-assistant-faq-v26 summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  color: var(--v26-blue-dark);
  font-weight: 700;
  cursor: pointer;
}

.dg-assistant-faq-v26 summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 500;
}

.dg-assistant-faq-v26 details[open] summary::after { content: '−'; }

.dg-assistant-faq-v26 p {
  margin: 0 0 0.85rem;
  color: var(--v26-muted);
  line-height: 1.6;
}

.dg-assistant-search-v26 label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--v26-blue-dark);
  font-weight: 700;
}

.dg-assistant-search-v26 > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.dg-assistant-search-v26 input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--v26-border);
  border-radius: var(--radius-sm, 12px);
  color: var(--v26-ink);
  background: #fff;
  font: inherit;
}

.dg-assistant-search-v26 button {
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius-sm, 12px);
  color: #fff;
  background: var(--v26-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dg-assistant-note-v26 {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.dg-assistant-person-v26 {
  margin: 1rem -1.35rem -1.35rem;
  padding: 0.9rem 1.35rem;
  border-radius: 0 0 var(--radius-lg, 24px) var(--radius-lg, 24px);
  color: var(--v26-blue-dark);
  background: var(--v26-ice);
  font-size: 0.92rem;
}

.dg-assistant-person-v26 span { display: block; margin-bottom: 0.2rem; }
.dg-assistant-person-v26 a { color: var(--v26-blue-dark); font-weight: 700; }

body.v26-digital-colleague :is(.dg-assistant-trigger-v26, .dg-assistant-close-v26, .dg-assistant-links-v26 a, .dg-assistant-search-v26 input, .dg-assistant-search-v26 button, .contact-method-options-v26 label, .contact-person-links-v26 a):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--v26-blue-dark);
}

@media (max-width: 860px) {
  .contact-grid-v26 { gap: 2.5rem; }
  .contact-person-card-v26 { max-width: 680px; }
}

@media (max-width: 640px) {
  .contact-method-options-v26 { grid-template-columns: 1fr; }
  .contact-person-card-v26 { grid-template-columns: 82px minmax(0, 1fr); gap: 1rem; }
  .contact-person-card-v26 > img { width: 82px; height: 82px; border-radius: 14px; }
  .contact-person-links-v26 { grid-column: 1 / -1; }

  .dg-assistant-v26 { right: 0.75rem; bottom: 0.75rem; }
  .dg-assistant-trigger-v26 { width: 52px; padding: 0.45rem; }
  .dg-assistant-trigger-v26 > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .dg-assistant-panel-v26 {
    position: fixed;
    right: 0.5rem;
    bottom: 4.7rem;
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 5.5rem);
  }
  .dg-assistant-links-v26 { grid-template-columns: 1fr; }
  .dg-assistant-search-v26 > div { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .contact-person-card-v26 { grid-template-columns: 1fr; }
  .contact-person-card-v26 > img { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-assistant-trigger-v26,
  .dg-assistant-panel-v26,
  .contact-method-options-v26 label {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .dg-assistant-trigger-v26,
  .dg-assistant-panel-v26,
  .contact-method-options-v26 label,
  .contact-person-card-v26,
  .contact-person-links-v26 a {
    border: 1px solid ButtonText;
  }
  body.v26-digital-colleague :focus-visible {
    outline: 3px solid Highlight !important;
    box-shadow: none !important;
  }
}

/* Explicit colour overrides for contact controls on the dark contact section. */
body.v26-digital-colleague .contact-form-v26 .contact-method-options-v26 label,
body.v26-digital-colleague .contact-form-v26 .contact-method-options-v26 label > span {
  color: var(--v26-blue-dark) !important;
}

body.v26-digital-colleague .contact-form-v26 :is(.optional, [data-phone-requirement-v26]) {
  color: var(--v26-muted) !important;
  font-weight: 500;
}

body.v26-digital-colleague .contact-form-v26 .contact-promise-v26 {
  color: var(--v26-blue-dark) !important;
}

body.v26-digital-colleague .contact-form-v26 :is(.form-privacy, .form-note, .form-status) {
  color: var(--v26-muted) !important;
}

.dg-assistant-v26.is-open .dg-assistant-trigger-v26 {
  opacity: 0;
  pointer-events: none;
}

.dg-assistant-person-v26 a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  body.contact-page:has(.contact-form-v26 :focus) .dg-assistant-trigger-v26 {
    opacity: 0;
    pointer-events: none;
  }
}

/* The contact page already offers direct human support. Hide the assistant there to keep the conversion form distraction-free. */
body.contact-page .dg-assistant-v26 {
  display: none;
}
