/* CodForm — Countries / world map section */
.codform-countries__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.codform-countries__headline,
.codform-countries__title {
  font-size: clamp(0.8125rem, 2vw, 1rem);
  font-weight: 700;
}

.codform-countries__headline {
  display: none;
  margin: 0 0 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  max-width: 18rem;
}

/* —— Map (all breakpoints) —— */
.codform-countries__map-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 950 / 400;
  overflow-x: hidden;
}

.codform-countries__map-scaler {
  width: 100%;
  height: 100%;
}

.codform-countries__map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.codform-countries__title {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1.25rem;
  max-width: 72%;
  margin-inline: auto;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.codform-countries__floater {
  position: absolute;
  z-index: 20;
  width: clamp(6.5rem, 18vw, 11.5rem);
  height: auto;
  aspect-ratio: 150 / 91;
  pointer-events: none;
  animation: codform-countries-orbit 14s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.08));
}

.codform-countries__floater img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes codform-countries-orbit {
  0% {
    left: 78%;
    top: 18%;
    transform: translate(-50%, -50%) rotate(12deg);
  }
  25% {
    left: 58%;
    top: 38%;
    transform: translate(-50%, -50%) rotate(-6deg);
  }
  50% {
    left: 32%;
    top: 52%;
    transform: translate(-50%, -50%) rotate(10deg);
  }
  75% {
    left: 55%;
    top: 68%;
    transform: translate(-50%, -50%) rotate(-10deg);
  }
  100% {
    left: 78%;
    top: 18%;
    transform: translate(-50%, -50%) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .codform-countries__floater {
    animation: none;
    left: 78%;
    top: 18%;
    transform: translate(-50%, -50%) rotate(12deg);
  }
}

/* —— Mobile —— */
@media (max-width: 809px) {
  .codform-countries__headline {
    display: block;
    font-size: clamp(0.875rem, 3.5vw, 0.9375rem);
    max-width: 14rem;
  }

  .codform-countries__title {
    display: none;
  }

  .codform-countries__map-wrap {
    height: clamp(240px, 68vw, 340px);
    aspect-ratio: auto;
  }

  .codform-countries__map-scaler {
    position: absolute;
    left: 50%;
    top: 0;
    width: 200%;
    height: 100%;
    transform: translateX(-50%);
  }

  .codform-countries__floater {
    width: clamp(7.5rem, 30vw, 10.5rem);
  }
}
