/* ============================================================
   Country Selector Overlay – Cream/Navy Theme
   ============================================================ */

.country-selector {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 50%, #1B2A4A 100%);
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; opacity: 1; transition: opacity 0.6s ease;
}
.country-selector.fading { opacity: 0; pointer-events: none; }
.country-selector.hidden { display: none; }

.cs-header {
  width: 100%; max-width: 1000px; padding: 40px 24px 0; text-align: center;
}
.cs-header__title {
  font-family: 'Bebas Neue', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; margin-bottom: 8px;
}
.cs-header__subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.5); font-weight: 500;
}

.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 20px;
  background: rgba(232, 97, 77, 0.15); border: 1px solid rgba(232, 97, 77, 0.3);
  border-radius: 9999px; color: #E8614D;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s;
}
.cs-back:hover { background: #E8614D; color: #fff; }
.cs-back svg { width: 16px; height: 16px; }

.cs-grid {
  width: 100%; max-width: 1000px; padding: 32px 24px 64px;
}
.cs-grid--continents {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cs-grid--countries {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}

.cs-continent-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 32px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; cursor: pointer; transition: all 0.3s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.cs-continent-card:hover {
  transform: translateY(-6px); border-color: #E8614D;
  background: rgba(232, 97, 77, 0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.cs-continent-card__icon { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.cs-continent-card:hover .cs-continent-card__icon { color: #E8614D; }
.cs-continent-card__name {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cs-continent-card__count {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}

.cs-country-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; cursor: pointer; transition: all 0.25s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.cs-country-card:hover {
  transform: translateY(-4px); border-color: #E8614D;
  background: rgba(232, 97, 77, 0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.cs-country-card__flag { font-size: 2.5rem; line-height: 1; }
.cs-country-card__name {
  font-size: 0.95rem; font-weight: 700; color: #fff; text-align: center;
}
.cs-country-card__name-en {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  font-weight: 500; text-align: center; min-height: 1em;
}

/* Globe button */
.globe-wrapper { position: relative; }
.globe-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: transparent;
  border: 2px solid var(--navy, #1B2A4A); border-radius: 50%;
  cursor: pointer; transition: all 0.2s;
  color: var(--navy, #1B2A4A); font-family: 'Inter', system-ui, sans-serif; padding: 0;
}
.globe-btn:hover { background: var(--navy, #1B2A4A); color: #fff; }
.globe-btn svg { width: 20px; height: 20px; }

.globe-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 8px;
  background: var(--bg-card, #fff); border: 1px solid var(--border, rgba(27,42,74,0.1));
  border-radius: 10px; box-shadow: 0 16px 50px rgba(0,0,0,0.15);
  z-index: 200;
}
.globe-dropdown.is-open { display: block; }
.globe-dropdown__item {
  display: block; width: 100%; padding: 10px 14px;
  background: none; border: none; border-radius: 6px;
  color: var(--text-primary, #1B2A4A);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem; font-weight: 600; text-align: left;
  cursor: pointer; transition: all 0.15s;
}
.globe-dropdown__item:hover {
  background: rgba(232, 97, 77, 0.06); color: var(--coral, #E8614D);
}
.globe-dropdown__item.active {
  color: var(--coral, #E8614D); background: rgba(232, 97, 77, 0.1);
}
.globe-dropdown__item--change {
  color: var(--coral, #E8614D); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem;
}
.globe-dropdown__divider {
  height: 1px; background: var(--border, rgba(27,42,74,0.1)); margin: 6px 0;
}

/* Hero video overlay */
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: none;
}
.hero-video-overlay__flag {
  font-size: clamp(4rem, 10vw, 8rem); line-height: 1; margin-bottom: 16px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  animation: flagPulse 3s ease-in-out infinite;
}
.hero-video-overlay__text {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); text-align: center;
}
.hero-video-overlay__country {
  font-size: clamp(0.75rem, 1.5vw, 1rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7); margin-top: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@keyframes flagPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.site-nav__link { white-space: nowrap; }

/* Video loading */
.video-loading-indicator {
  position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2;
}
.video-loading-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #E8614D; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.video-loading-text {
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; font-weight: 600;
  color: #fff; text-transform: uppercase; letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5); text-align: center;
}

/* ============================================================
   Country Registration Modal (non-Jamaica countries)
   ============================================================ */

.country-reg-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.country-reg-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.country-reg-modal__container {
  position: relative; z-index: 1;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1B33 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.country-reg-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 24px; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.country-reg-modal__close:hover { background: rgba(255,255,255,0.2); }
.country-reg-modal__flag {
  text-align: center; font-size: 4rem; line-height: 1; margin-bottom: 12px;
}
.country-reg-modal__title {
  font-family: 'Bebas Neue', 'Inter', system-ui, sans-serif;
  font-size: 2rem; color: #FFD700; text-align: center;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}
.country-reg-modal__subtitle {
  text-align: center; color: rgba(255,255,255,0.7);
  font-size: 0.95rem; margin-bottom: 16px;
}
.country-reg-modal__benefits {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 12px; padding: 16px 20px;
  margin-bottom: 24px;
}
.country-reg-modal__benefits-title {
  font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,0.9); margin-bottom: 8px;
  font-family: 'Inter', system-ui, sans-serif;
}
.country-reg-modal__benefits ul {
  list-style: none; padding: 0; margin: 0;
}
.country-reg-modal__benefits li {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  padding: 4px 0 4px 20px; position: relative;
  font-family: 'Inter', system-ui, sans-serif;
}
.country-reg-modal__benefits li::before {
  content: '\2713'; position: absolute; left: 0;
  color: #FFD700; font-weight: 700;
}
.country-reg-modal__benefits-note {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  margin-top: 10px; text-align: center;
}
.country-reg-modal__benefits-note a {
  color: #FFD700; text-decoration: underline;
}
.country-reg-modal__form {
  display: flex; flex-direction: column; gap: 16px;
}
.country-reg-modal__group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.8); margin-bottom: 6px;
  font-family: 'Inter', system-ui, sans-serif;
}
.country-reg-modal__group input[type="email"],
.country-reg-modal__group input[type="tel"],
.country-reg-modal__group select {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.country-reg-modal__group input:focus,
.country-reg-modal__group select:focus {
  border-color: #FFD700;
}
.country-reg-modal__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.country-reg-modal__group select option {
  background: #1B2A4A; color: #fff;
}
.country-reg-modal__radio-row {
  display: flex; gap: 20px;
}
.country-reg-modal__radio-row label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem; color: rgba(255,255,255,0.9);
  cursor: pointer; font-weight: 500;
}
.country-reg-modal__radio-row input[type="radio"] {
  accent-color: #FFD700; width: 16px; height: 16px;
}
.country-reg-modal__submit {
  margin-top: 8px; width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.country-reg-modal__divider {
  display: flex; align-items: center; gap: 16px;
  margin: 20px 0;
}
.country-reg-modal__divider::before,
.country-reg-modal__divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.15);
}
.country-reg-modal__divider span {
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.country-reg-modal__calendly {
  display: block; width: 100%; text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.country-reg-modal__success {
  text-align: center; padding: 20px 0;
}
.country-reg-modal__success-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: #FFD700; color: #1B2A4A; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.country-reg-modal__success h3 {
  color: #fff; font-size: 1.3rem; margin-bottom: 8px;
  font-family: 'Inter', system-ui, sans-serif;
}
.country-reg-modal__success p {
  color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.5;
}
.country-reg-modal__success a { color: #FFD700; text-decoration: underline; }

@media (max-width: 768px) {
  .cs-grid--continents { grid-template-columns: repeat(2, 1fr); }
  .cs-grid--countries { grid-template-columns: repeat(2, 1fr); }
  .cs-continent-card { padding: 24px 16px; }
  .cs-header { padding: 24px 16px 0; }
}
@media (max-width: 480px) {
  .cs-grid--continents { grid-template-columns: 1fr; }
  .cs-grid--countries { grid-template-columns: repeat(2, 1fr); }
  .country-reg-modal { padding: 10px; }
  .country-reg-modal__container { padding: 28px 20px; }
  .country-reg-modal__title { font-size: 1.6rem; }
  .country-reg-modal__flag { font-size: 3rem; }
}
