@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Source+Sans+3:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  /* Official Telekom Slovenije palette (2025 template, theme TS_2016_3) */
  --telekom-blue: #00afe6;
  --telekom-blue-dark: #1e5aa5;
  --telekom-navy: #141760;
  --telekom-blue-soft: #eaf8fe;
  --telekom-blue-pale: #f4fbff;
  --accent: var(--telekom-blue-dark);
  /* Medium blue reads well as accent text/links */
  --telekom-blue-ink: #1e5aa5;
  /* Display/heading face — approximates telekom.si's Geogrotesque; body stays Source Sans */
  --font-display: "Montserrat", "Source Sans 3", Arial, Helvetica, sans-serif;
  --ink: #171717;
  --muted: #667085;
  --line: #dceef7;
  --white: #ffffff;
  --error: #b00020;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  background: var(--telekom-navy);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  /* Signature Telekom Slovenije blue gradient (lighter, all-blue) */
  background: linear-gradient(157deg, #00afe6 0%, #2b86d6 52%, #1e5aa5 100%) no-repeat;
  overflow-x: hidden;
}

/* Dynamic "bubble" brand motif (as on CGP slide 60) — soft white circles */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(100% + 116px) 20%, transparent 0 232px, rgba(255, 255, 255, 0.42) 232px 234px, transparent 234px),
    radial-gradient(circle at calc(100% + 82px) 36%, transparent 0 164px, rgba(255, 255, 255, 0.3) 164px 166px, transparent 166px),
    radial-gradient(circle at -116px 72%, transparent 0 232px, rgba(255, 255, 255, 0.34) 232px 234px, transparent 234px),
    radial-gradient(circle at -82px 92%, transparent 0 164px, rgba(255, 255, 255, 0.28) 164px 166px, transparent 166px);
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100vh;
  justify-items: center;
  padding: 0 20px 36px;
}

.prediction-card {
  width: min(100%, 500px);
  background: transparent;
  overflow: visible;
  animation: page-rise 480ms ease both;
}

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding-top: 18px;
  margin-bottom: 10px;
}

.brand-logo {
  width: clamp(128px, 36vw, 168px);
  height: auto;
  align-self: start;
}

.top-bar .language-switch {
  align-self: center;
}

.form-logo {
  display: flex;
  justify-content: center;
  margin: 10px 0 2px;
}

.form-logo img {
  width: clamp(168px, 50vw, 208px);
  height: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow: 0 8px 20px rgba(20, 23, 96, 0.18);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  border: 1px solid rgba(0, 114, 188, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 114, 188, 0.08);
  padding: 4px;
}

.language-option {
  min-height: 34px;
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--telekom-blue-ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  padding: 6px 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-option:hover {
  background: rgba(0, 159, 233, 0.1);
  transform: translateY(-1px);
}

.language-option.is-active {
  background: var(--telekom-blue);
  color: var(--white);
}

.hero-copy {
  padding: 8px 0 14px;
  text-align: center;
}

h1 {
  max-width: 480px;
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-display);
  font-size: clamp(26px, 6.4vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

.title-accent {
  color: #ffffff;
}

.lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.35;
}

.prize {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.prize-lead {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.prize-value {
  color: #ffffff;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prediction-form {
  display: grid;
  gap: 13px;
  padding: 0 0 18px;
}

.player-preview {
  margin: 0;
}

.player-image-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 68% 16%, rgba(20, 23, 96, 0.12), transparent 28%),
    radial-gradient(circle at 36% 22%, rgba(0, 159, 233, 0.24), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eaf8fe 55%, #d6f1fb 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.16), 0 22px 60px rgba(0, 48, 128, 0.16);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.player-image-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 220ms ease;
}

.player-image-frame.has-image img {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.player-image-frame.is-loading {
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.22), 0 22px 60px rgba(0, 114, 188, 0.2);
}

.player-image-frame.has-image #player-placeholder {
  display: none;
}

#player-placeholder {
  color: rgba(0, 114, 188, 0.55);
  font-size: 132px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 114, 188, 0.18);
}

.player-number {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--white);
  color: var(--telekom-blue-ink);
  box-shadow: 0 14px 34px rgba(0, 82, 136, 0.2);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-image-frame.has-image .player-number {
  opacity: 1;
  transform: translateY(0);
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  padding: 0;
  transition: color 160ms ease;
}

.player-meta-logo {
  width: 104px;
  height: auto;
  flex: 0 0 auto;
}

.caption-number {
  text-decoration: underline;
  text-decoration-color: var(--telekom-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.points-wrap {
  display: none;
  gap: 8px;
  justify-items: center;
  text-align: center;
  animation: soft-pop 320ms ease both;
}

.points-wrap.is-visible {
  display: grid;
}

.points-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.points-layout {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.points-side {
  display: grid;
  gap: 12px;
}

.adjust {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid var(--telekom-blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 18px rgba(0, 159, 233, 0.1);
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.adjust:hover {
  background: var(--telekom-blue-soft);
  box-shadow: 0 10px 24px rgba(0, 159, 233, 0.18);
  transform: translateY(-1px);
}

.adjust:active {
  transform: translateY(0);
}

.points-stepper {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf8fe 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.16), 0 14px 34px rgba(0, 48, 128, 0.12);
}

.points-value {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  outline: none;
  caret-color: transparent;
  user-select: none;
}

.points-value:focus {
  border: 0;
  box-shadow: none;
}

.points-value::-webkit-outer-spin-button,
.points-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.points-value[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

select,
input,
button {
  min-height: 44px;
  border: 1px solid #d9edf7;
  border-radius: 999px;
  font: inherit;
  padding: 11px 16px;
}

select,
input {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 114, 188, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230072bc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select:focus,
input:focus {
  border-color: var(--telekom-blue);
  box-shadow: 0 0 0 4px rgba(0, 159, 233, 0.16);
  outline: 0;
}

button {
  border: 0;
  background: var(--telekom-blue);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--telekom-blue-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.checkbox-label input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  border: 1px solid #d9edf7;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.checkbox-label input:checked {
  border-color: var(--telekom-blue);
  background: var(--telekom-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 12px 12px;
}

.checkbox-label input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 159, 233, 0.25);
}

a {
  color: #ffffff;
  font-weight: 700;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #ffd5da;
  font-weight: 700;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 6px 0 0;
  border-top: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--telekom-blue-dark);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 14px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button-link:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.thank-you-card {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thank-you-main {
  display: grid;
  align-content: center;
  flex: 1 1 auto;
}

.thank-you-main > h1 {
  align-self: stretch;
  margin: 0 0 8px;
  text-align: left;
}

.thank-you-main > .lede {
  margin-bottom: 22px;
}

.thank-you-main > .button-link {
  align-self: stretch;
  margin-bottom: 8px;
}

.thank-you-card > .site-footer {
  margin-top: auto;
}

@media (max-width: 520px) {
  body::before {
    background:
      radial-gradient(circle at calc(100% + 58px) 24%, transparent 0 116px, rgba(255, 255, 255, 0.38) 116px 118px, transparent 118px),
      radial-gradient(circle at calc(100% + 43px) 34%, transparent 0 86px, rgba(255, 255, 255, 0.28) 86px 88px, transparent 88px),
      radial-gradient(circle at -61px 82%, transparent 0 122px, rgba(255, 255, 255, 0.3) 122px 124px, transparent 124px),
      radial-gradient(circle at -45px 92%, transparent 0 90px, rgba(255, 255, 255, 0.24) 90px 92px, transparent 92px);
  }

  .site-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .player-meta {
    gap: 12px;
    font-size: 20px;
  }

  .player-meta-logo {
    width: 92px;
  }

  .player-image-frame {
    border-radius: 22px;
  }

  .player-number {
    right: 14px;
    bottom: 12px;
    min-width: 72px;
    min-height: 50px;
    font-size: 28px;
  }
}
