@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Christmas palette (same as main landing) */
:root {
  --red: #c8102e;
  --red-dark: #970b22;
  --red-light: #e0213f;
  --green: #0f4a36;
  --green-dark: #0a3326;
  --gold: #d9a441;
  --gold-light: #f3d58c;
  --brown: #2b1d16;
  --brown-light: #5e4a3f;
  --cream: #fbf6ee;
  --cream-dark: #efe4d3;
  --bg: #e8ddd0;
  --ribbon: repeating-linear-gradient(
    90deg,
    var(--red) 0 28px,
    #fff 28px 34px,
    var(--green) 34px 62px,
    #fff 62px 68px
  );
}

body {
  font-family: 'Montserrat', sans-serif !important;
  background: var(--bg) !important;
}

#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: center;
  background-repeat: no-repeat;
}

.bg img {
  display: none !important;
}

/* soft fade on the right so the card reads well over the photo */
.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(232, 221, 208, 0) 45%,
    rgba(232, 221, 208, 0.35) 70%,
    rgba(232, 221, 208, 0.55) 100%
  );
}

/* falling snow */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 90px 120px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 160px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(3px 3px at 230px 180px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 300px 90px, rgba(255, 255, 255, 0.75), transparent);
  background-size: 320px 220px;
  animation: snow 18s linear infinite;
  opacity: 0.8;
}

@keyframes snow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 60px 660px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg::after {
    animation: none;
  }
}

/* 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: 30px 28px 24px !important;
  /* festive ribbon on top drawn as a background layer:
     the card must stay unpositioned, without overflow/backdrop-filter,
     because #optin-cookie-layer (position: fixed) lives inside the form */
  background:
    var(--ribbon) top left / 100% 8px no-repeat,
    rgba(251, 246, 238, 0.97) !important;
  border-radius: 24px;
  box-shadow:
    0 30px 60px rgba(10, 51, 38, 0.25),
    0 0 0 1px rgba(217, 164, 65, 0.35);
}

.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: 900;
  font-size: 26px;
  line-height: 115%;
  text-transform: uppercase;
  text-align: center;
  color: var(--green);
}

.title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.title span {
  color: var(--green);
}

.subtitle {
  font-weight: 800;
  font-size: 17px;
  line-height: 125%;
  text-align: center;
  color: var(--green);
  margin-bottom: 14px;
}

.text {
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: var(--brown-light);
  margin-bottom: 14px;
}

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

/* info rows (e-mail / countdown) */
.quiz__elements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(200, 16, 46, 0.06);
  border: 1px dashed rgba(200, 16, 46, 0.3);
}

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

.quiz__icon {
  flex: 0 0 28px;
}

.quiz__element img {
  width: 28px;
}

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

.quiz__element p b {
  font-weight: 800;
  font-size: 15px;
  color: var(--red);
  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: 12px !important;
  height: 44px !important;
}

.radio-field {
  height: 44px !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-align: center !important;
  color: var(--brown) !important;
}

.form__trigger label {
  background: #fff !important;
  border: 1px solid var(--cream-dark) !important;
  border-radius: 12px !important;
  font-family: 'Montserrat', sans-serif !important;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.form__trigger label:hover {
  border-color: var(--gold) !important;
}

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

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

input:checked ~ .registration-formular__control__button {
  background: linear-gradient(180deg, var(--red-light) 0%, var(--red) 60%, var(--red-dark) 100%) !important;
  border-color: var(--red-dark) !important;
  color: #fff !important;
}

input:checked ~ .registration-formular__control__button svg path {
  stroke: #fff !important;
  fill: #fff !important;
}

.registration-formular__field input {
  height: 44px !important;
  background: #fff !important;
  border: 1px solid var(--cream-dark) !important;
  border-radius: 12px !important;
  box-shadow: none;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: left !important;
  color: var(--brown) !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.registration-formular__field input::placeholder {
  color: #9a8a7f;
}

.registration-formular__field input:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25) !important;
}

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

.primary-button {
  min-height: auto !important;
  height: 50px !important;
  border-radius: 38px !important;
  background: linear-gradient(180deg, var(--red-light) 0%, var(--red) 55%, var(--red-dark) 100%) !important;
  box-shadow:
    0 0 0 3px rgba(217, 164, 65, 0.55),
    0 10px 24px rgba(200, 16, 46, 0.35) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: 0.5px;
  text-align: center !important;
  color: #fff !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px var(--gold),
    0 14px 30px rgba(200, 16, 46, 0.45) !important;
}

#formular-button .flash {
  text-transform: uppercase !important;
}

.werden {
  color: var(--brown-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;
  }
}

/* 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::before {
    background: linear-gradient(180deg, rgba(232, 221, 208, 0) 60%, var(--bg) 100%);
  }

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

  .quiz {
    margin: -56px 0 0;
    padding: 0 16px 24px;
    background: none;
  }

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

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

  .title span {
    display: inline;
    font-size: inherit;
    color: var(--green) !important;
    margin: 0;
  }

  .subtitle {
    font-size: 15px;
  }

  .text {
    font-size: 14px;
    text-align: center;
  }

  .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: 'Montserrat', 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;
  }
}
