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

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;

  background: linear-gradient(180deg, #E31D2F 34.63%, #EBD3D3 66.59%);

}

.campaign-nav {
  background: #E31D2F;
  text-align: center;
}

.campaign-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.navbar-brand {
  color: #e22c55;
  font-weight: 800;
  letter-spacing: 0;
  width: 130px;
}

.pattern-bg {
  background: url('../images/bg-pattern.png') no-repeat center;
  background-size: cover;
  height: 120px;
  opacity: 0.2;
}


.campaign-footer {
  padding: 24px 0;
  background: #fff;
  color: #777;
  font-size: 14px;
}

.entry-grid,
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
}

.entry-copy h1,
.result-panel h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  color: #2d2630;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
}

.entry-copy p,
.result-panel>p {
  max-width: 620px;
  color: #5d5660;
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow {
  color: #e22c55;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
}

.email-panel label,
.form-label {
  color: #2d2630;
  font-weight: 700;
}

.form-control {
  border-color: #ded7ce;
  border-radius: 6px;
  min-height: 48px;
}

.form-control:focus {
  border-color: #fff;
  box-shadow: none;
  color: #8C7672;
}

.entry-email-input {
  background: rgba(255, 255, 255, 0.8) url("../images/envelope.png") no-repeat 15px 15px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0px 10px 30px rgba(150, 110, 100, 0.05), inset 0px 1px 3px rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding-left: 50px;
  text-align: left;
  color: #8C7672;
  font-weight: normal;
  position: relative;
}

.btn-primary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFC5C5 100%), linear-gradient(90deg, #BA3026 0%, #B62F25 12.5%, #B32D24 25%, #AF2C23 37.5%, #AC2B22 50%, #A82A21 62.5%, #A52820 75%, #A1271F 87.5%, #9E261E 100%);
  box-shadow: 0px 8px 20px rgba(186, 48, 38, 0.25);
  border-radius: 8px;
  color: #A91917;
  width: max-content;
  text-decoration: none;
  margin: 0 auto;
  padding: 5px 40px
}

.entry-button {
  margin: 0 auto;
  width: max-content;
  padding: 5px 50px;
  font-size: 18px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #c91e45;
  border-color: #c91e45;
}

.wheel-layout {
  grid-template-columns: minmax(320px, 540px) minmax(0, 1fr);
}

.wheel-area {
  position: relative;
  display: grid;
  place-items: center;
  background: url('../images/wheel-bg.png') no-repeat center;
  min-height: 740px;
}

.gift-wheel {
  position: relative;
  width: min(86vw, 620px);
  height: 620px;
  aspect-ratio: 1;
  border: 12px solid #fff;
  border-radius: 50%;
  background: url("../images/wheel-content.png") no-repeat center center;
  box-shadow: 0 22px 60px rgba(77, 52, 63, 0.22);
  transform: rotate(0deg);
}

.gift-wheel::after {
  position: absolute;
  inset: 50%;
  width: 112px;
  height: 112px;
  content: "";
  background: none;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%);
}

.gift-wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  transform: rotate(calc(var(--i) * 60deg + 30deg)) translateX(12%) translateY(-50%);
  transform-origin: left center;
  display: none;
}

.wheel-pointer {
  position: absolute;
  top: -40px;
  z-index: 3;
  width: 150px;
  height: 240px;
  background: url(../images/wheel-selector.png) no-repeat center center;
  background-size: cover;
  border: none;
}

.spin-button {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 293px;
  height: 238px;
  padding: 0;
  background: url(../images/wheel-button.png);
  background-size: cover;
  background-position: center;
  text-indent: -999em;
  border: none;
  margin-top: 33px;
  box-shadow: none;
}

.spin-button:disabled {
  color: #888;
  cursor: wait;
}

.participant-email {
  margin: 8px 0 0;
  color: #5d5660;
  word-break: break-word;
}

.result-card {
  display: flex;
  background: none;
  border: none;
  gap: 180px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  box-shadow: none;
}

#resultDescription {
  font-family: "Moon Dance", cursive;
  font-size: 2.3rem;
  line-height: 1.1em;
  margin: 10px 0px;
  width: 540px;
  font-weight: 600;
}

#resultImage {
  width: 400px;
}

.entry-email-form .btn {
  margin-bottom: 20px;
}

.result-panel.is-hidden {
  display: none;
}

.result-card.is-hidden {
  display: none;
}

.result-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f2eae2;
  border-radius: 8px;
}

span.text-red-500 {
  color: #a32820;
}

.result-card h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  background: #A91917;
  text-align: center;
  letter-spacing: 4px;
  padding: 4px 0;
  font-weight: lighter;
}

.resultCaption {
  font-family: "Moon Dance", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5.5em;
  text-align: center;
  color: #A91917;
}

.result-card p.resultTextIn {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.783642px;
  color: #000000;
  font-size: 1.2em;

}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.result-actions .btn {
  min-height: 44px;
  padding: 17px;
  font-weight: 800;
  font-size: 17px;
  font-weight: normal;
  text-transform: uppercase;
}

.result-actions .btn.btn-secondary {
  background: linear-gradient(90deg, #BA3026 0%, #B62F25 12.5%, #B32D24 25%, #AF2C23 37.5%, #AC2B22 50%, #A82A21 62.5%, #A52820 75%, #A1271F 87.5%, #9E261E 100%), linear-gradient(90deg, #EFA096 0%, #ED9D93 16.67%, #EB9A90 33.33%, #EA978D 50%, #E8958B 66.67%, #E69288 83.33%, #E48F85 100%);
  box-shadow: 0px 12px 35px rgba(228, 143, 133, 0.3), inset 0px 1px 2px rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

.result-actions .btn.btn-outline-secondary {
  /* Button */
  background: rgba(255, 255, 255, 1e-05);
  border: 1px solid #AE4545;
  box-shadow: 0px 4px 15px rgba(150, 110, 100, 0.02);
  border-radius: 20px;
  color: #AE4545;
}

.resultContent {
  background: linear-gradient(180deg, rgb(250 242 237) 58.37%, #f9f1ec 72.89%);
  border-radius: 50px;
  text-align: center;
  position: relative;
  box-shadow: -20px -10px 20px 0px #a1271f6b;
  padding: 20px;
}

.resultWheelBg {
  background: url("../images/wheel-bg.png") no-repeat center;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #2d2630;
  border-color: #e22c55;
  background: #fff3f6;
}

.captcha-warning {
  margin: 10px 0 0;
  color: #9f233f;
  font-size: 13px;
}

.success-state {
  padding: 28px 8px;
  text-align: center;
}

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  color: #fff;
  background: #06a77d;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 900;
}

.success-state h3 {
  margin: 0 0 8px;
  color: #2d2630;
  font-size: 28px;
  font-weight: 800;
}

.success-state p {
  margin: 0;
  color: #5d5660;
}

.web-hide {
  display: block;
}

.mobile-hide {
  display: none;
}

@media (max-width: 991px) {

  .web-hide {
    display: none !important;
  }

  .mobile-hide {
    display: block;
  }

  .entry-grid,
  .wheel-layout {
    grid-template-columns: 1fr;
  }

  .wheel-area {
    min-height: auto;
    padding: 32px 0;
  }

  .result-card {
    flex-direction: column;
    padding: 0;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .gift-wheel {
    width: min(113vw, 620px);
    height: 480px;
  }

  .resultContent {
    width: 100%;
    overflow: hidden;
  }

  #resultImage,
  #resultDescription {
    width: 100%;
    height: auto;
  }

}

@media (max-width: 575px) {

  .entry-page,
  .wheel-page {
    padding: 0;
  }

  .entry-email-form .btn {
    font-size: 14px;
  }

  .email-panel {
    padding: 20px;
  }

  .gift-wheel span {
    font-size: 12px;
  }

  .result-card {
    flex-direction: column;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
  }

  .gift-wheel {
    width: min(90vw, 620px);
    height: 338px;
    background-size: contain;
    border: none !important;
  }

  .spin-button {
    width: 180px;
    height: 140px;
  }

  .wheel-pointer {
    top: -50px;
    z-index: 3;
    width: 90px;
    height: 200px;
  }

  .resultContent {
    width: 100%;
    overflow: hidden;
  }

  #resultImage,
  #resultDescription {
    width: 100%;
    height: auto;
  }

  .campaign-nav {
    margin: 0;
    padding: 0;
  }

  .navbar-brand {
    width: 100px;
    padding: 0;
    margin: 0;
  }

  .result-actions .btn {
    font-size: 12px;
    padding: 9px;
    width: 160px;
  }

  .result .mobile-height {
    height: 160px;
    overflow: hidden;
  }

  .mobileFlexReverse {
    display: flex;
    flex-direction: column;
    gap: 10px
  }

  .result-card h2 {
    font-size: 10px;
  }

  .modal-body {
    padding: 0 10px;
  }
}


@media (max-width: 440px) {

  .gift-wheel {
    width: min(90vw, 620px);
    height: 373px;
    background-size: contain;
    border: none !important;
    box-shadow: none;
  }

  .wheel-area {
    position: relative;
    background-size: cover;
    min-height: 170px;
  }

  .wheel-area::before {
    background: url("../images/wheel-bg.png") no-repeat center;
    content: " ";
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .spin-button {
    width: 180px;
    height: 140px;
  }

  .wheel-pointer {
    top: -50px;
    z-index: 3;
    width: 90px;
    height: 200px;
  }

  .result-card,
  .result-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .result-actions .btn.btn-outline-secondary {
    background: rgb(241 234 234);
  }

  .resultCaption {
    font-size: 2.5em;
  }

  .result-card p.resultTextIn {
    color: #fff;
    font-size: 14px;
  }

  .mobile-flex {
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

}



@media (max-width: 430px) {

  .gift-wheel {
    height: 385px;
  }


}



@media (max-width: 415px) {

  .gift-wheel {
    height: 373px;
  }


}


@media (max-width: 399px) {

  .gift-wheel {
    height: 348px;
  }


}


@media (max-width: 380px) {

  .gift-wheel {
    height: 338px;
  }


}