@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..900&display=swap');

/* Segway MAX G3 D palette (same as main landing) */
:root {
  --accent: #d7f32b;
  --accent-hover: #c9e81a;
  --accent-strong: #bcd916;
  --accent-light: #f6fcd9;
  --ink: #0f1115;
  --ink-light: #24272e;
  --muted: #7a7f88;
  --border: #d9dbe0;
  --bg: #f7f1ea;
  --surface: #ffffff;
  --shadow-card:
    0 1px 2px rgba(15, 17, 21, 0.04), 0 12px 32px rgba(15, 17, 21, 0.08),
    0 32px 64px -24px rgba(15, 17, 21, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  font-family: 'Inter', Arial, sans-serif !important;
  background: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
}

#car {
  display: none !important;
}

#prize {
  display: none;
}

#prize__image {
  display: none !important;
}

.wrapper {
  background: var(--bg);
}

.container {
  max-width: 1440px !important;
}

#app-main__container {
  justify-content: flex-end;
}

.app-main__container {
  min-height: 700px !important;
}

/* background */
.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.bg img {
  display: none !important;
}

/* quiz card */
.quiz {
  display: flex !important;
  justify-content: center !important;
  position: static !important;
  margin: 40px 0 40px 0;
  align-self: center;
}

.quiz__container {
  max-width: 480px !important;
  min-width: 480px !important;
  height: fit-content;
  margin: 0;
  padding: 32px 32px 28px !important;
  /* the card must stay unpositioned, without overflow/backdrop-filter,
     because #optin-cookie-layer (position: fixed) lives inside the form */
  background: var(--surface) !important;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.quiz-pc__wrapper {
  background: none;
  padding: 0;
  border-radius: 0;
}

.title {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0 0 14px;
  background: none;
  font-weight: 850;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
}

/* «Ihre Chance:» — лаймовая плашка, как бейдж на основном ленде */
.title span {
  display: table;
  margin-bottom: 12px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
}

.subtitle {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
  color: var(--ink);
  margin-bottom: 14px;
}

.text {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-light);
  margin-bottom: 14px;
}

.text b {
  font-weight: 800;
  color: var(--ink);
}

/* info rows (e-mail / countdown) */
.quiz__elements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid var(--accent-strong);
}

.quiz__element {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz__icon {
  flex: 0 0 28px;
}

/* иконки в svg красные — перекрашиваем в тёмный под палитру */
.quiz__element img {
  width: 28px;
  filter: brightness(0);
  opacity: 0.85;
}

.quiz__element p {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-light);
  text-align: left;
}

.quiz__element p b {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.quiz__elements_mob {
  display: none;
}

.title-bg {
  display: none;
}

/* form */
form {
  max-width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

.registration-formular__fieldset {
  background: none !important;
}

.radio-filds {
  background: none !important;
  display: flex !important;
  gap: 10px !important;
  height: 48px !important;
}

.radio-field {
  height: 48px !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: center !important;
  color: var(--ink) !important;
}

.form__trigger label {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-family: 'Inter', Arial, sans-serif !important;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.form__trigger label:hover {
  background: #fbfcf4 !important;
  border-color: var(--accent-strong) !important;
}

/* popups (cookie consent, alerts, legal pages) */
.optin-cookie-layer__window,
#optin-alert__window,
.page-layer__window {
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(15, 17, 21, 0.28) !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

.optin-cookie-layer__headline {
  font-weight: 800 !important;
  color: var(--ink) !important;
}

.registration-formular__control__button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: center !important;
  color: var(--ink-light) !important;
}

.registration-formular__control__button svg {
  width: 22px;
}

input:checked ~ .registration-formular__control__button {
  background: var(--accent-light) !important;
  border-color: var(--accent-strong) !important;
  box-shadow: inset 0 0 0 1px var(--accent-strong);
  color: var(--ink) !important;
  font-weight: 600 !important;
}

input:checked ~ .registration-formular__control__button svg path {
  stroke: var(--ink) !important;
  fill: var(--ink) !important;
}

.registration-formular__field input {
  height: 48px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: left !important;
  color: var(--ink) !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.registration-formular__field input::placeholder {
  color: var(--muted);
}

.registration-formular__field input:focus {
  outline: none;
  border-color: var(--accent-strong) !important;
  box-shadow: 0 0 0 3px rgba(215, 243, 43, 0.45) !important;
}

input[name='birth_day'],
input[name='birth_month'],
input[name='birth_year'] {
  text-align: center !important;
}

.primary-button {
  min-height: auto !important;
  height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.12),
    0 10px 22px -8px rgba(150, 175, 0, 0.6) !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: 0.02em;
  text-align: center !important;
  color: var(--ink) !important;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.primary-button:hover {
  background: var(--accent-hover) !important;
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.12),
    0 14px 26px -8px rgba(150, 175, 0, 0.7) !important;
}

.primary-button:active {
  transform: translateY(1px);
}

#formular-button .flash {
  text-transform: uppercase !important;
  color: var(--ink) !important;
}

.werden {
  color: var(--ink-light) !important;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.bg-soi {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

.bg-soi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-height: 750px) {
  .wrapper {
    min-height: 750px !important;
  }
}

/* tablet: самокат уходит под карточку — сдвигаем фон */
@media (max-width: 1100px) {
  .bg {
    background-position: 15% center;
  }
}

/* mobile */
@media (max-width: 992px) {
  body {
    background: var(--bg) !important;
  }

  .wrapper {
    min-height: 1350px !important;
  }

  #app-main__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #app-footer {
    background-color: var(--bg);
  }

  .bg {
    position: relative;
    display: block !important;
    background: none !important;
  }

  .bg img {
    display: block !important;
    width: 100%;
  }

  .bg-video {
    position: relative;
    top: auto;
    left: auto;
  }

  /* mob2.webp высокая (1152×2048), самокат только сверху —
     карточка заезжает на фон сразу под колёсами */
  .quiz {
    margin: -92vw 0 0;
    padding: 0 16px 24px;
    background: none;
    position: relative !important;
  }

  .quiz__container {
    min-width: auto !important;
    max-width: 520px !important;
    width: 100%;
    padding: 24px 16px 20px !important;
    border-radius: 20px;
  }

  .title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .title span {
    font-size: 11px;
    padding: 8px 14px;
    margin-bottom: 10px;
    color: var(--ink) !important;
  }

  .subtitle {
    font-size: 16px;
  }

  .text {
    font-size: 14px;
  }

  .quiz__elements {
    display: none !important;
  }

  .quiz__elements_mob {
    display: flex !important;
    margin: 16px 0 0;
  }

  .quiz__items_mob {
    display: none !important;
  }

  .radio-filds {
    gap: 10px !important;
  }

  .primary-button {
    font-size: 16px !important;
  }

  .werden {
    text-align: center;
    font-weight: 500 !important;
    font-size: 16px;
    line-height: 115%;
    text-transform: uppercase;
    max-width: 345px;
    margin: 20px auto 12px;
    font-family: 'Inter', Arial, sans-serif !important;
  }

  #regfull .registration-formular__fields:first-child {
    gap: 0 !important;
  }

  #regfull .w67 {
    margin-bottom: 10px;
  }

  #optin-alert__window,
  .optin-cookie-layer__window {
    max-height: 75vh;
  }
}

@media (max-width: 550px) {
  .wrapper {
    min-height: 100vh !important;
  }
  #reghalf .wrapper,
  #regfull .wrapper {
    min-height: auto !important;
  }
}
