/* FIX AOS TRANSITION CONFLICTS */
/* After AOS animation completes, restore normal transitions for hover effects */
.tsm-country-card.aos-animate,
.tsm-continue-btn.aos-animate {
  transition:
    transform 1.1s ease,
    box-shadow 0.3s ease,
    border-color 1.1s ease,
    background 0.3s ease,
    opacity 1.1s ease !important;
}

/* GRID */
.tsm-country-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(200px, 1fr));
  gap: 1rem;
  margin: 30px 0;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 40px 0;
  }
}



.tsm-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1.5rem;

  img {
    max-width: 140px;
  }

  @media (min-width: 768px) {
    max-width: 300px;
    margin-bottom: 1.5rem;

    img {
      max-width: 280px;
    }
  }
}

.wp-block-group {
  margin-top: 0 !important;
}

/* CARD */
.tsm-country-card {
  background: #fff;
  border-radius: 30px;
  padding: 1.2rem;
  border: 2px solid rgba(238, 35, 70, 0.15);
  cursor: pointer;
  text-align: center;

  box-shadow: 0 10px 25px rgba(238, 35, 70, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;

  display: flex;
  flex-direction: column;
  align-items: center;

  @media (min-width: 768px) {
    padding: 1.5rem;
    border-radius: 40px;
  }
}

.tsm-country-card img {
  width: 80px;
  height: auto;
  border-radius: 8px;

  @media (min-width: 768px) {
    width: 100px;
    border-radius: 10px;
  }
}

.tsm-country-card h3 {
  font-size: 24px;
  font-weight: 800;
  font-style: italic;

  @media (min-width: 768px) {
    font-size: 28px;
  }
}

/* HOVER */
.tsm-country-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 35, 70, 0.35);
  box-shadow: 0 20px 40px rgba(238, 35, 70, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* FOCUS — visible ring for keyboard users, suppressed on mouse/touch.
   :focus-visible only matches keyboard focus, so pointer clicks stay clean
   while keyboard navigation keeps an accessible indicator. */
.tsm-country-card:focus-visible,
.tsm-continue-btn:not(:disabled):focus-visible {
  outline: 3px solid #ee2346;
  outline-offset: 3px;
}

/* SELECTED */
.tsm-country-card.is-selected {
  border-color: #ee2346;
  box-shadow: 0 10px 30px rgba(238, 35, 70, 0.18), 0 4px 10px rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

/* TEXT */
.tsm-country-card h3 {
  margin: 0.5rem 0 0;
}

.tsm-country-card small {
  color: #ee2346;
  font-weight: 700;
  font-size: 11px;
  margin-top: 10px;

  @media (min-width: 768px) {
    font-size: 12px;
    margin-top: 12px;
  }
}

/* CONTINUE BUTTON */
.tsm-continue-btn {
  margin-top: 1rem;
  padding: 16px 40px;
  border-radius: 9999px;
  border: none;
  background: #ee2346;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;

  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;

  @media (min-width: 768px) {
    width: auto;
    padding: 18px 48px;
    font-size: 16px;
    gap: 10px;
  }
}

/* HOVER */
.tsm-continue-btn:not(:disabled):hover {
  background: #d91e3c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(238, 35, 70, 0.3);
}

.tsm-continue-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(238, 35, 70, 0.2);
}

/* DISABLED */
.tsm-continue-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Full-page background — layered on top of existing theme background */
body:has(.tsm-hero) {
  min-height: 100vh; /* fallback for browsers without dvh */
  min-height: 100dvh;
  background-image: linear-gradient(160deg, rgba(253, 242, 244, 0.5) 0%, rgba(248, 249, 255, 0.5) 40%, rgba(253, 242, 244, 0.5) 70%, rgba(240, 244, 255, 0.5) 100%);
}

.tsm-hero {
  padding: 1rem 1rem 2rem;
  max-width: 1070px !important;
  margin-inline: auto; /* center in a full-width wrapper (front-page.html) */
  min-height: 100vh; /* fallback for browsers without dvh */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  @media (min-width: 768px) {
    padding: 2rem 1rem;
  }
}

.tsm-hero-inner {
  position: relative;
  z-index: 1;
}

/* Decorative background icons */
.tsm-deco {
  display: none;
  position: fixed;
  pointer-events: none;
  user-select: none;

  @media (min-width: 1200px) {
    display: block;
  }
}

/* Left side — airplane (top), package (mid), globe (bottom) */
.tsm-deco-1 {
  left: 240px;
  top: 6%;
  width: 100px;
}

.tsm-deco-2 {
  left: 150px;
  top: 38%;
  width: 120px;
}

.tsm-deco-3 {
  right: 210px;
  top: 10%;
  width: 130px;
}

/* Right side — diamond (top), truck (mid), circle (bottom) */
.tsm-deco-4 {
  right: 200px;
  top: 15%;
  width: 130px;
}

.tsm-deco-5 {
  right: 150px;
  top: 45%;
  width: 120px;
}

.tsm-deco-6 {
  left: 200px;
  bottom: 8%;
  width: 110px;
}

.tsm-hero-subtitle-wrapper {
  display: flex;
  justify-content: center;
}

.tsm-hero-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ee2346;
  background: linear-gradient(90deg, #ffe8ec 0%, #f2f4ff 100%);
  background-size: 200% 100%;
  border: 2px solid rgba(255, 31, 61, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  animation: gradient-shift 3s ease-in-out infinite;

  @media (min-width: 768px) {
    padding: 12px 22px;
    font-size: 12px;
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.tsm-hero-description {
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.4;
  color: #19191970;
  text-align: center;
  font-weight: 500;

  @media (min-width: 768px) {
    font-size: 16px;
  }
}

.tsm-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  margin-top: 35px;
  font-style: italic;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  @media (min-width: 768px) {
    font-size: 42px;
  }
}

.tsm-hero-continue-btn-wrapper {
  display: flex;
  justify-content: center;
}

.has-global-padding > .alignfull {
  margin-top: 0 !important;
  padding-top: 0 !important;
}