/* Home Visa Requirements only. The menu remains in this DOM subtree when using
   the native top layer; its ID also scopes the non-Popover fallback portal. */
body.home-page #visa-checker .home-visa-checker-compact-card-v296G {
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr) !important;
  gap: 32px !important;
  padding: 28px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  align-items: center !important;
}
body.home-page #visa-checker .home-visa-checker-copy-v296G h2 {
  font-size: clamp(24px, 2.2vw, 30px) !important;
  line-height: 1.18 !important;
  margin: 8px 0 0 !important;
  max-width: 360px;
}
body.home-page #visa-checker .home-visa-checker-box-v296G {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
}
body.home-page #visa-checker .visa-checker-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 12px !important;
}
body.home-page #visa-checker label[for="homeVisaCountrySearch"] {
  display: block;
  color: #334155;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
}
body.home-page #visa-checker #homeVisaSearchSelect {
  position: relative !important;
  margin: 0 !important;
}
body.home-page #visa-checker #homeVisaCountrySearch {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
body.home-page #visa-checker #homeVisaCountrySearch::placeholder { color: #64748b; opacity: 1; }
body.home-page #visa-checker #homeVisaCountrySearch:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-color: #2563eb;
}
body.home-page #visa-checker #homeVisaCountrySearch[aria-invalid="true"] { border-color: #b91c1c; }
body.home-page #visa-checker .visa-country-chevron {
  position: absolute;
  right: 14px;
  top: 17px;
  color: #475569;
  pointer-events: none;
}
body.home-page #visa-checker #homeVisaSearchSelect.open .visa-country-chevron { transform: rotate(180deg); }
body.home-page #visa-checker [data-visa-check-button] {
  min-height: 52px !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 184px;
  margin: 0 !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 1.4;
  white-space: nowrap;
}
#homeVisaCountryMenu[data-country-popup] {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  display: flex;
  overflow: hidden;
  z-index: 1000;
  font-family: Inter, Arial, sans-serif;
}
#homeVisaCountryMenu[data-country-popup][hidden] { display: none; }
#homeVisaCountryOptions {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f8fafc;
  position: relative;
}
#homeVisaCountryMenu .country-list-heading {
  padding: 8px 10px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #475569;
}
#homeVisaCountryMenu .country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px;
  background: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
#homeVisaCountryMenu .country-option:hover,
#homeVisaCountryMenu .country-option.is-active { background: #eff6ff; }
#homeVisaCountryMenu .country-option[aria-selected="true"] { background: #dbeafe; color: #1e40af; }
#homeVisaCountryMenu .country-option img { flex: 0 0 20px; object-fit: cover; border-radius: 2px; }
#homeVisaCountryMenu .country-option img[hidden] { display: none; }
#homeVisaCountryMenu .country-option-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#homeVisaCountryMenu .country-option-local { font-size: 12px; color: #475569; }
#homeVisaCountryMenu .country-list-empty { padding: 14px 10px; font-size: 14px; }
@media (max-width: 1024px) {
  body.home-page #visa-checker .home-visa-checker-compact-card-v296G { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  body.home-page #visa-checker .home-visa-checker-copy-v296G h2 { max-width: none; }
}
@media (max-width: 600px) {
  body.home-page #visa-checker .home-visa-checker-compact-card-v296G { padding: 20px !important; gap: 20px !important; }
  body.home-page #visa-checker .visa-checker-form { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  body.home-page #visa-checker [data-visa-check-button] { width: 100% !important; min-width: 0; }
}
