.agency-head-channel { display: inline-flex; align-items: center; }
.agency-channel, .agency-lead-links a, .agency-office-map a {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #125584; font-weight: 650; text-decoration: none;
}
.agency-channel svg { width: 20px; height: 20px; flex: none; }
.agency-channel { min-height: 40px; }
.agency-head-channel .agency-channel { padding-inline: .35rem; }
.agency-channels, .agency-lead-links, .agency-office-map > div {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px;
}
.agency-channels { margin-block: 12px; }
.agency-lead-links { margin-block: 16px; }
.agency-lead-links a, .agency-office-map a { min-height: 44px; text-underline-offset: 4px; text-decoration: underline; }
.agency-float { position: fixed; z-index: 6; bottom: max(18px,env(safe-area-inset-bottom)); right: max(14px,env(safe-area-inset-right)); }
.agency-float > summary {
  width: 46px; height: 46px; list-style: none; border-radius: 50%; display: grid; place-items: center;
  background: #124f79; color: white; border: 1px solid #deedf5; box-shadow: 0 4px 16px #0e34532b; cursor: pointer;
}
.agency-float > summary::-webkit-details-marker, .agency-forms summary::-webkit-details-marker { display: none; }
.agency-float-menu {
  position: absolute; bottom: calc(100% + 6px); right: 0; display: grid;
  width: max-content; min-width: 180px; padding: 8px 14px; background: white;
  color: #12364d; border: 1px solid #c4d6e3; box-shadow: 0 8px 25px #0e345325; border-radius: 9px;
}
.agency-float-menu a { min-height: 40px; display: inline-flex; align-items: center; }
.agency-office-map { margin: 1.25rem 0; color: #10374f; }
.agency-office-map iframe { display: block; width: 100%; height: clamp(220px,27vw,330px); border: 1px solid #ccdde7; border-radius: 10px; background: #f0f5f8; }
.agency-office-map > div { justify-content: space-between; }
.agency-map-caption { padding-block: 7px; }
.agency-google-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.agency-google-rating a { text-decoration: underline; }
.agency-google-rating a span { color: #965309; }
.agency-google-rating small { color: #466071; }
.agency-forms { display: grid; gap: 12px; margin-block: 1.6rem; }
.agency-forms details { border-block: 1px solid #ccdde7; scroll-margin-top: 20px; }
.agency-forms summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 1rem 0; cursor: pointer; color: #133d5d; font: 660 clamp(20px,2.25vw,29px)/1.2 var(--rio-font);
}
.agency-forms summary::after { content: "+"; flex: none; font-size: 1.35em; font-weight: 450; }
.agency-forms details[open] summary::after { content: "−"; }
.agency-forms form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0; padding: 0 0 1.3rem; }
.agency-forms label { display: grid; align-content: start; gap: 5px; color: #173c58; font-weight: 600; }
.agency-forms :is(input,textarea) { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #9fb6c8; border-radius: 6px; color: #15374f; font: 400 16px/1.4 var(--rio-font); }
.agency-forms .lead-wide { grid-column: 1 / -1; }
.agency-forms p { color: #4b6375; }
.agency-forms button { justify-self: start; }
.agency-forms [data-lead-draft]:empty { display: none; }
.agency-forms [data-lead-draft] a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: underline; }
@media (max-width: 950px) {
  .agency-head-channel .channel-text { display: none; }
  .agency-head-channel .agency-channel { width: 34px; justify-content: center; padding: 0; }
}
@media (max-width: 740px) {
  body:has(.inquiry-dock) .agency-float { bottom: calc(79px + env(safe-area-inset-bottom)); }
  .agency-float { right: 9px; }
  .agency-float > summary { width: 42px; height: 42px; }
}
@media (max-width: 450px) {
  .agency-forms form { grid-template-columns: minmax(0,1fr); }
  .agency-head-channel .agency-channel { width: 28px; }
}
