/* Region preference modal */
.region-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.region-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.region-dialog {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  padding: 32px 28px 24px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

.region-overlay.is-open .region-dialog {
  transform: translateY(0) scale(1);
}

.region-dialog__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #004a7e;
}

.region-dialog__title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #0f172a;
}

.region-dialog__subtitle {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.region-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.region-option:hover,
.region-option:focus-visible {
  border-color: #004a7e;
  box-shadow: 0 8px 24px rgba(0, 74, 126, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.region-option__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #f8fafc;
}

.region-option__icon--india {
  background: #fff7ed;
}

.region-option__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-option__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.region-option__meta {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.4;
}

.region-option__arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
}

.region-dialog__note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.region-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d9e0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  margin-right: 4px;
}

.region-switcher__btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.region-switcher__btn.is-active {
  background: #004a7e;
  color: #fff;
}

.region-switcher__btn:hover:not(.is-active) {
  color: #004a7e;
}

body.region-modal-open {
  overflow: hidden;
}

.region-switcher--mobile {
  display: none;
  width: calc(100% - 36px);
  margin: 0 18px 8px;
}

@media (max-width: 1024px) {
  .region-switcher--mobile {
    display: inline-flex;
  }
}

@media (max-width: 576px) {
  .region-dialog {
    padding: 24px 18px 18px;
  }

  .region-dialog__title {
    font-size: 1.3rem;
  }

  .region-switcher:not(.region-switcher--mobile) {
    display: none;
  }
}
