:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #016140;
  color: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #016140;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 20px max(185px, calc(165px + env(safe-area-inset-bottom)));
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 235, 174, .18), transparent 29%),
    linear-gradient(180deg, #08734d 0%, #016140 44%, #005238 100%);
}

.page > section,
.brand-window {
  position: relative;
  z-index: 2;
}

.brand-window {
  width: 245px;
  height: 70px;
  max-width: 86vw;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
}

.brand-source {
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.hidden { display: none !important; }

.campaign-tag {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 0 auto 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(0, 55, 36, .32);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.campaign-tag span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #b8ffdc;
  box-shadow: 0 0 10px #b8ffdc;
}

h1,
.eyebrow {
  margin: 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

h1 { font-size: clamp(38px, 11vw, 56px); line-height: .92; letter-spacing: -.045em; text-shadow: 0 0 14px rgba(183,255,219,.68); }
.eyebrow { margin-bottom: 9px; font-size: 16px; letter-spacing: .055em; text-shadow: 0 0 10px rgba(183,255,219,.6); }

.prize-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 480px;
  margin: 20px auto;
  padding: 17px 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 20px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 30px rgba(0,45,29,.12);
}

.prize-card strong { font-size: 26px; font-weight: 900; }
.prize-card span { font-size: 15px; opacity: .92; }

.panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  color: #2b2b2b;
  box-shadow: 0 16px 44px rgba(0, 48, 31, .28);
}

.form-intro { display: flex; flex-direction: column; gap: 7px; margin: 0 0 22px; text-align: center; color: #686868; line-height: 1.38; }
.form-intro strong { color: #063f2c; font-size: 23px; }
.form-intro span { font-size: 15px; }

label:not(.privacy-row) {
  display: block;
  margin: 15px 0 7px;
  color: #004a30;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 58px;
  padding: 0 15px;
  border: 1px solid #dedede;
  border-radius: 15px;
  background: #f5f8f6;
  font: inherit;
  font-size: 17px;
  outline: none;
}

input:focus { border-color: #016140; box-shadow: 0 0 0 3px rgba(1,97,64,.14); }

.privacy-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: #444;
  font-size: 14px;
  line-height: 1.35;
}

.privacy-row input { width: 21px; height: 21px; margin: 0; accent-color: #016140; }
.privacy-copy { color: #777; font-size: 12px; line-height: 1.4; }

button {
  width: 100%;
  height: 58px;
  margin-top: 10px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #08734d, #004a30);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
}

button:disabled { opacity: .6; }
.form-error { margin: 12px 0 0; color: #a40016; font-size: 14px; font-weight: 700; }
.expiry { margin: 14px auto 0; text-align: center; font-size: 13px; opacity: .86; }

.status-panel { margin-top: 10vh; text-align: center; }
.status-panel h1 { color: #016140; font-size: 36px; }
.status-panel .eyebrow { color: #016140; }
.status-panel p { color: #555; }

.spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border: 5px solid #eee;
  border-top-color: #016140;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #16845b;
  color: #fff;
  font-size: 40px;
}

.product-art {
  position: absolute;
  z-index: 1;
  right: -8px;
  bottom: -12px;
  width: 155px;
  height: 165px;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 12px 14px rgba(0, 35, 22, .28));
  pointer-events: none;
}

.cards-art {
  position: absolute;
  z-index: 1;
  right: 92px;
  bottom: 1px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 35, 22, .22));
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .page { padding-top: 26px; }
  .product-art { width: 210px; height: 220px; }
  .cards-art { right: 130px; width: 190px; height: 190px; }
}
