.nearest-office-suggestion {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #09284a;
  font-family: "Manrope", Arial, sans-serif;
  opacity: 0;
  transition: opacity 220ms ease;
}

.nearest-office-suggestion[hidden] { display: none; }
.nearest-office-suggestion.is-visible { opacity: 1; }

.nearest-office-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 22, 47, 0.82);
  backdrop-filter: blur(8px);
}

.nearest-office-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 17, 40, 0.42);
  transform: translateY(18px) scale(0.985);
  transition: transform 220ms ease;
}

.nearest-office-dialog::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #f6be14;
}

.nearest-office-suggestion.is-visible .nearest-office-dialog { transform: translateY(0) scale(1); }

.nearest-office-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
  padding: 42px;
  overflow: hidden;
  background: #062b55;
  color: #fff;
}

.nearest-office-visual::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -86px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(246, 190, 20, 0.16);
  border-radius: 50%;
}

.nearest-office-brand,
.nearest-office-visual-copy,
.nearest-office-proof { position: relative; z-index: 1; }

.nearest-office-brand { display: flex; align-items: center; gap: 16px; }
.nearest-office-brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.nearest-office-brand strong,
.nearest-office-brand span { display: block; }
.nearest-office-brand strong { font-size: 1.08rem; }
.nearest-office-brand span { margin-top: 3px; color: #c6d7e8; font-size: 0.78rem; }

.nearest-office-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 11px;
  border-radius: 4px;
  background: #f6be14;
  color: #062345;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nearest-office-visual h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.02;
  font-family: "Poppins", "Manrope", Arial, sans-serif;
  font-weight: 800;
}

.nearest-office-visual-copy > p:last-child {
  margin: 18px 0 0;
  color: #dbe8f5;
  font-size: 1rem;
  line-height: 1.65;
}

.nearest-office-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nearest-office-proof span {
  padding-top: 11px;
  border-top: 2px solid #f6be14;
  color: #dbe8f5;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.nearest-office-content { position: relative; overflow-y: auto; padding: 48px; }
.nearest-office-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d6e1ec;
  border-radius: 50%;
  background: #f3f7fb;
  color: #062345;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.nearest-office-eyebrow {
  margin: 0 54px 10px 0;
  color: #0b5da8;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.nearest-office-content h3 {
  margin: 0;
  color: #062345;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-family: "Poppins", "Manrope", Arial, sans-serif;
  font-weight: 800;
}
.nearest-office-summary {
  margin: 15px 0 0;
  color: #425f7d;
  font-size: 0.98rem;
  line-height: 1.65;
}

.nearest-office-benefits { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.nearest-office-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #173b61;
  font-size: 0.9rem;
  font-weight: 750;
}
.nearest-office-benefits span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff1bd;
  color: #062345;
  font-weight: 900;
}

.nearest-office-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.nearest-office-primary,
.nearest-office-stay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 5px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.nearest-office-primary { border: 2px solid #f6be14; background: #f6be14; color: #062345; }
.nearest-office-stay {
  border: 2px solid #0b5da8;
  background: #fff;
  color: #0b5da8;
  cursor: pointer;
}
.nearest-office-primary:hover,
.nearest-office-primary:focus-visible,
.nearest-office-stay:hover,
.nearest-office-stay:focus-visible { border-color: #0b5da8; background: #0b5da8; color: #fff; }
.nearest-office-close:hover { background: #e6eef6; }
.nearest-office-close:focus-visible,
.nearest-office-stay:focus-visible { outline: 3px solid #f6be14; outline-offset: 3px; }
.nearest-office-privacy { margin: 18px 0 0; color: #667c92; font-size: 0.72rem; line-height: 1.5; }
body.nearest-office-open { overflow: hidden; }

@media (max-width: 820px) {
  .nearest-office-suggestion { padding: 12px; }
  .nearest-office-dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
  .nearest-office-visual { min-height: 260px; padding: 24px; }
  .nearest-office-brand img { width: 66px; height: 66px; }
  .nearest-office-visual h2 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .nearest-office-visual-copy > p:last-child { margin-top: 10px; font-size: 0.88rem; }
  .nearest-office-proof { display: none; }
  .nearest-office-content { overflow: visible; padding: 28px 22px 24px; }
  .nearest-office-close { top: 12px; right: 12px; }
}

@media (max-width: 520px) {
  .nearest-office-suggestion { padding: 8px; }
  .nearest-office-dialog { max-height: calc(100vh - 16px); }
  .nearest-office-visual { min-height: 230px; padding: 20px; }
  .nearest-office-brand { gap: 11px; }
  .nearest-office-brand img { width: 58px; height: 58px; }
  .nearest-office-brand strong { font-size: 0.92rem; }
  .nearest-office-kicker { margin-bottom: 9px; padding: 5px 8px; font-size: 0.62rem; }
  .nearest-office-visual h2 { max-width: 90%; font-size: 1.85rem; }
  .nearest-office-visual-copy > p:last-child { display: none; }
  .nearest-office-content { padding: 24px 18px 18px; }
  .nearest-office-content h3 { font-size: 1.45rem; }
  .nearest-office-summary { margin-top: 10px; font-size: 0.86rem; line-height: 1.5; }
  .nearest-office-benefits { margin-top: 16px; }
  .nearest-office-benefits li { font-size: 0.82rem; }
  .nearest-office-actions { grid-template-columns: 1fr; margin-top: 18px; }
  .nearest-office-privacy { margin-top: 12px; }
}

@media (max-height: 690px) and (min-width: 821px) {
  .nearest-office-dialog { max-height: calc(100vh - 24px); }
  .nearest-office-visual { min-height: 520px; padding: 32px; }
  .nearest-office-content { padding: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .nearest-office-suggestion,
  .nearest-office-dialog { transition: none; }
}
