@font-face {
  font-family: "Raleway Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/raleway-cyrillic-ext-wght-normal-Dc5xu4We.woff2") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Raleway Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/raleway-cyrillic-wght-normal-B0Yo_ULV.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Raleway Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/raleway-vietnamese-wght-normal-wikBsL6_.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Raleway Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/raleway-latin-ext-wght-normal-CwtNDoQR.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Raleway Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/raleway-latin-wght-normal-CSF1BaNN.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Raleway Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #002c42;
  background: #c4deea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  background: #fff;
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  display: block;
  height: 6.5rem;
  width: auto;
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header__lang-link {
  color: #002c42;
  text-decoration: none;
}

.site-header__lang-link:hover {
  color: #e74f3e;
}

.site-header__lang-link--active {
  font-weight: 800;
  color: #e74f3e;
}

.site-header__lang-sep {
  color: #999;
  font-weight: 400;
}

/* Hero banner */

.hero-banner {
  background: #e74f3e;
  color: #fff;
}

.hero-banner__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}

.hero-banner__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-banner__text {
  margin: 0 auto;
  max-width: 52rem;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  line-height: 1.5;
}

/* Main content */

.content {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.form-panel {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
}

.locations {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
}

.location-item input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #e74f3e;
}

.user-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-fields.hidden {
  display: none;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #002c42;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid rgba(0, 44, 66, 0.35);
  border-color: #002c42;
}

.field--invalid input:focus {
  outline: 2px solid rgba(231, 79, 62, 0.35);
  border-color: #e74f3e;
}

.newsletter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.newsletter-item input {
  margin-top: 0.15rem;
  accent-color: #e74f3e;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(to right, #e74f3e, #962512);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(to right, #e74f3e, #e74f3e);
}

.btn-secondary {
  background: #fff;
  color: #e74f3e;
  border: 2px solid #e74f3e;
  margin-top: 0.75rem;
}

.btn-secondary:hover:not(:disabled) {
  background: #fff5f4;
}

.message {
  display: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  margin-top: 1rem;
}

.message.visible {
  display: block;
}

.message--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.message--error {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.message--eol {
  background: #eef4f7;
  color: #002c42;
  border: 1px solid #c4deea;
  font-size: 1.15rem;
  text-align: center;
}

.message--validation {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6c2;
}

.field--invalid label {
  color: #b71c1c;
}

.field--invalid input[type="text"],
.field--invalid input[type="email"] {
  border-color: #e74f3e;
  background: #fff8f7;
  outline: 2px solid rgba(231, 79, 62, 0.25);
}

/* Promo image below form */

.promo-image {
  margin: 0;
  display: flex;
  justify-content: center;
}

.promo-image__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Prize info */

.prize-section {
  position: relative;
  background-color: #e74f3e;
  color: #fff;
  overflow: hidden;
}

.prize-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/ice-train.png") left bottom / auto min(50vh, 20rem) no-repeat;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.prize-section__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}

.prize-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.prize-section__text {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.55;
}

.prize-section__link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prize-section__link:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .site-header__logo img {
    height: 5rem;
  }

  .hero-banner__inner {
    padding: 1.75rem 1rem 2rem;
  }

  .content {
    padding: 1.25rem 0.75rem 2rem;
  }

  .form-panel {
    padding: 1.25rem 1rem;
    border-radius: 0.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-secondary {
    width: auto;
    min-width: 12rem;
  }

  .prize-section::before {
    background-position: center bottom;
    background-size: 115% auto;
    opacity: 0.28;
  }

  .prize-section__inner {
    padding: 1.75rem 1rem 2rem;
  }

  .footer {
    padding-bottom: 1.5rem;
  }
}

.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #002c42;
  font-weight: 600;
}

.footer a:hover {
  color: #e74f3e;
}

.form-panel--error-state .message--error {
  margin-top: 0;
}

.form-panel--error-state #retry-btn {
  background: linear-gradient(to right, #e74f3e, #962512);
  color: #fff;
  border: none;
  margin-top: 1.25rem;
}

.form-panel--error-state #retry-btn:hover {
  background: linear-gradient(to right, #e74f3e, #e74f3e);
}

.form-hidden {
  display: none;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}
