.site-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 99999;
}

.site-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.site-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  text-align: center;
  z-index: 1;
}

.site-modal-status {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.site-modal-status.success {
  background: #e9f9ef;
  color: #138a36;
}

.site-modal-status.error {
  background: #fff0f0;
  color: #c62828;
}

.site-modal-title {
  margin: 0 0 10px;
  color: var(--heading-color, #172033);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-modal-text {
  margin: 0;
  color: var(--body-text-color, #5d6881);
  font-size: 16px;
  line-height: 1.6;
}

.site-modal-actions {
  margin-top: 22px;
}

.site-modal-button {
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--primary-color, #1e73be);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-modal-button:hover,
.site-modal-button:focus {
  background: var(--heading-color, #155a96);
  transform: translateY(-1px);
}

.site-modal-button:focus-visible {
  outline: 3px solid rgba(30, 115, 190, 0.25);
  outline-offset: 2px;
}

.logo-cnt img,
.footer-logo-cnt img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-modal {
    padding: 16px;
  }

  .site-modal-card {
    padding: 28px 20px 20px;
    border-radius: 16px;
  }

  .site-modal-title {
    font-size: 24px;
  }

  .site-modal-text {
    font-size: 15px;
  }
}

footer.footer-enhanced {
  background: linear-gradient(
    180deg,
    var(--surface-muted-color, #edf4fb) 0%,
    var(--surface-alt-color, #e3edf8) 100%
  );
}

footer.footer-enhanced .footer-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: stretch;
}

footer.footer-enhanced .footer-brand-panel,
footer.footer-enhanced .footer-links-panel {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(8, 66, 102, 0.08);
  border-radius: 32px;
  padding: 32px;
}

footer.footer-enhanced .footer-brand-panel {
  display: flex;
  align-items: flex-start;
}

footer.footer-enhanced .footer-logo-cnt--enhanced {
  margin-bottom: 0;
  gap: 24px;
  align-items: flex-start;
}

footer.footer-enhanced .footer-logo-cnt--enhanced img {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

footer.footer-enhanced .footer-brand-copy {
  min-width: 0;
}

footer.footer-enhanced .footer-lead {
  margin-top: 14px;
  color: var(--body-text-color, #4f5d75);
  max-width: 34rem;
}

footer.footer-enhanced .footer-address-simple {
  margin-top: 18px;
  color: var(--heading-color, #084266);
  font-size: 17px;
  line-height: 1.65;
}

footer.footer-enhanced .footer-eyebrow {
  margin: 0 0 10px;
  color: var(--primary-color, #1e599f);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer.footer-enhanced .footer-links-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

footer.footer-enhanced .footer-links-panel a {
  color: var(--heading-color, #084266);
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

footer.footer-enhanced .footer-links-panel a:hover,
footer.footer-enhanced .footer-links-panel a:focus {
  color: var(--brand-accent-color, #593581);
  border-bottom-color: var(--brand-accent-color, #593581);
}

footer.footer-enhanced .footer-bottom {
  justify-content: center;
  background: var(--footer-background-color, #284379);
}

footer.footer-enhanced .footer-bottom-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

footer.footer-enhanced .footer-bottom-meta--single {
  width: 100%;
}

@media (max-width: 1200px) {
  footer.footer-enhanced .footer-wrapper {
    grid-template-columns: 1fr;
  }

  footer.footer-enhanced .footer-bottom-meta {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  footer.footer-enhanced .footer-brand-panel,
  footer.footer-enhanced .footer-links-panel {
    border-radius: 24px;
    padding: 24px;
  }

  footer.footer-enhanced .footer-logo-cnt--enhanced {
    flex-direction: column;
    gap: 18px;
  }

  footer.footer-enhanced .footer-logo-cnt--enhanced img {
    width: 180px;
  }

  footer.footer-enhanced .footer-links-panel ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Cookie banner — original black bar (guarded from theme overrides) */
#cookieBanner {
  background: #000 !important;
  color: #fff !important;
}

#cookieBanner > div:last-child {
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  gap: 8px !important;
}

#cookieBanner button {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  font-family: Arial, sans-serif !important;
}

#cookieBanner button:hover,
#cookieBanner button:focus,
#cookieBanner button:focus-visible,
#cookieBanner button:active {
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}
