@font-face {
  font-family: 'FruitySmoothie';
  src: url('assets/fruity-smoothie.ttf') format('truetype');
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: block;
  font-family: 'Arial Rounded MT Bold', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#app {
  width: 300px;
  height: 250px;
  position: relative;
  margin: 0 auto;
  background: url('assets/bg1.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  z-index: 2;
}

.view.is-active {
  display: flex;
}


.dt-logo-link {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 100;
  display: block;
  cursor: pointer;
}

.dt-logo {
  width: 22px;
  height: 14px;
  object-fit: contain;
  display: block;
}



#form-view {
  background: url('assets/bg1.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 48px;
  justify-content: flex-start;
}

#reward-info-view {
  background: url('assets/bg2.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 52px;
  justify-content: flex-start;
  position: relative;
}

#questions-view-1 {
  background: url('assets/bg1.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 50px;
  justify-content: flex-start;
}

#questions-view-2 {
  background: url('assets/bg3.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 50px;
  justify-content: flex-start;
}

#favourites-view {
  background: url('assets/bg3.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 50px;
  justify-content: flex-start;
}

#questions-view-3 {
  background: url('assets/bg1.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 50px;
  justify-content: flex-start;
}

#step-away-view {
  background: url('assets/bg1.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 18px;
  justify-content: flex-start;
  position: relative;
}

#not-interested-view {
  background: url('assets/bg3.jpg') no-repeat center center;
  background-size: cover;
  padding-top: 45px;
  justify-content: flex-start;
}

#success-view {
  background: url('assets/bg1.jpg') no-repeat center bottom;
  background-size: cover;
  position: relative;
  width: 100%;
  height: 100%;
}


.title-header-img {
  width: 65%;
  max-width: 170px;
  height: auto;
  margin-bottom: 4px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.form-container {
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.input-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.input-row .input-wrapper {
  flex: 1;
}

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 3px;
}

.input-wrapper input, .input-wrapper select {
  width: 100%;
  height: 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  padding: 0 6px 0 22px;
  font-size: 9.5px;
  font-weight: 600;
  color: #333333;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrapper input:focus, .input-wrapper select:focus {
  border-color: #00632b;
  box-shadow: 0 0 0 2px rgba(0, 99, 43, 0.2);
}

.input-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  color: #00632b;
  pointer-events: none;
}

.phone-wrapper input {
  padding-left: 44px;
}

.phone-prefix {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  font-weight: 700;
  color: #333333;
  pointer-events: none;
}

.input-wrapper select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300632b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px;
}

.proceed-btn {
  width: calc(70% - 50px);
  height: 25px;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  background: #ffcb05;
  color: #003617;
  font-family: 'FruitySmoothie', 'Arial Rounded MT Bold', sans-serif;
  font-size: 10px;
  font-weight: normal;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin: -2px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.proceed-btn:hover {
  background: #ffe054;
  transform: scale(1.01);
}

.proceed-btn:active {
  transform: scale(0.98);
}

.error-msg {
  color: #ff3333;
  font-size: 8.5px;
  font-weight: bold;
  text-align: center;
  min-height: 10px;
  margin-bottom: 2px;
}


.reward-header {
  width: 50%;
  max-width: 160px;
  top: 20px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0px;
}

.airtime-box-container {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 2px;
}

.airtime-box-img {
  width: 90px;
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

.confetti-particle {
  position: absolute;
  width: 4px;
  height: 8px;
  background: linear-gradient(135deg, #ffe600, #ffb300);
  border-radius: 2px;
  opacity: 0;
  z-index: 2;
  transform-origin: center;
}

@keyframes burst-and-fall {
  0% {
    transform: translate(0, -15px) scale(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(calc(var(--tx) * 0.4), calc(var(--ty) * 0.3)) scale(1) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), calc(var(--ty) + 70px)) scale(var(--s)) rotate(var(--r));
    opacity: 0;
  }
}

.confetti-particle.p1 { --tx: -35px; --ty: -45px; --s: 1.1; --r: 120deg; animation: burst-and-fall 2.4s ease-out infinite; animation-delay: 0s; }
.confetti-particle.p2 { --tx: 35px; --ty: -40px; --s: 0.8; --r: -80deg; animation: burst-and-fall 2.2s ease-out infinite; animation-delay: 0.2s; }
.confetti-particle.p3 { --tx: -50px; --ty: -55px; --s: 1.3; --r: 240deg; animation: burst-and-fall 2.5s ease-out infinite; animation-delay: 0.4s; }
.confetti-particle.p4 { --tx: 50px; --ty: -50px; --s: 1.0; --r: -150deg; animation: burst-and-fall 2.1s ease-out infinite; animation-delay: 0.1s; }
.confetti-particle.p5 { --tx: -15px; --ty: -60px; --s: 1.2; --r: 45deg; animation: burst-and-fall 2.4s ease-out infinite; animation-delay: 0.6s; }
.confetti-particle.p6 { --tx: 15px; --ty: -55px; --s: 0.9; --r: -45deg; animation: burst-and-fall 2.3s ease-out infinite; animation-delay: 0.3s; }
.confetti-particle.p7 { --tx: -40px; --ty: -50px; --s: 1.0; --r: 180deg; animation: burst-and-fall 2.6s ease-out infinite; animation-delay: 0.5s; }
.confetti-particle.p8 { --tx: 40px; --ty: -45px; --s: 1.2; --r: -220deg; animation: burst-and-fall 2.4s ease-out infinite; animation-delay: 0.7s; }
.confetti-particle.p9 { --tx: -8px; --ty: -40px; --s: 0.7; --r: 90deg; animation: burst-and-fall 2.0s ease-out infinite; animation-delay: 0.15s; }
.confetti-particle.p10 { --tx: 8px; --ty: -35px; --s: 1.1; --r: -90deg; animation: burst-and-fall 2.2s ease-out infinite; animation-delay: 0.45s; }
.confetti-particle.p11 { --tx: -55px; --ty: -40px; --s: 0.9; --r: 300deg; animation: burst-and-fall 2.7s ease-out infinite; animation-delay: 0.8s; }
.confetti-particle.p12 { --tx: 55px; --ty: -40px; --s: 1.1; --r: -300deg; animation: burst-and-fall 2.6s ease-out infinite; animation-delay: 0.9s; }

.reward-text-prompt {
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 12px;
  color: #003617;
  margin: 6px 0 4px 0;
  line-height: 1.1;
  text-align: center;
}

.reward-continue-btn {
  width: 50px;
  height: 50px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #00632b;
  color: #ffffff;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 10.5px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-left: auto;
  margin-right: 9px;
  margin-top: -55px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px 0 4px;
}

.reward-continue-btn:hover {
  background: #007c36;
  transform: scale(1.05);
}

.reward-continue-btn:active {
  transform: scale(0.95);
}


.questions-title {
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 20px;
  color: #ffff00;
  margin: 0 0 8px 0;
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.5px;
}

.questions-card {
  width: 270px;
  background: #003617;
  border-radius: 14px;
  border: 1.5px solid #005a28;
  padding: 14px 12px 12px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-text {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px 0;
  text-align: center;
  width: 100%;
}

.long-question-text {
  font-size: 11px !important;
  line-height: 1.25 !important;
  margin: 0 0 10px 0 !important;
  width: 100%;
}

.questions-btn-group {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
}

.question-btn {
  flex: 1;
  height: 28px;
  border-radius: 50px;
  border: none;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-btn:active {
  transform: scale(0.95);
}

.question-btn.yes-btn {
  background: #ffe600;
  color: #003617;
}

.question-btn.yes-btn:hover {
  background: #fff033;
}

.question-btn.no-btn {
  background: #ffffff;
  color: #003617;
}

.question-btn.no-btn:hover {
  background: #f0f0f0;
}


.questions-title-dark, .not-interested-title {
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 14px;
  color: #003617;
  margin: 0 0 8px 0;
  line-height: 1.05;
  text-align: center;
}

.options-container {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.option-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #999999;
  border-radius: 5px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option-card:hover {
  background-color: #f7f7f7;
  border-color: #00632b;
}

.option-card input[type="radio"] {
  display: none;
}

.custom-radio {
  width: 10px;
  height: 10px;
  border: 1.5px solid #333333;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.option-card input[type="radio"]:checked + .custom-radio {
  border-color: #00632b;
}

.option-card input[type="radio"]:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background-color: #00632b;
  border-radius: 50%;
}

.option-text {
  font-family: 'Arial Rounded MT Bold', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  color: #003617;
  line-height: 1.1;
  text-align: left;
}


.favourites-subtitle-montserrat {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #003617;
  margin: -6px 0 6px 0;
  text-align: center;
}

.textarea-container {
  width: 92%;
  margin-bottom: 8px;
  z-index: 5;
}

#favourites-input {
  width: 100%;
  height: 80px;
  background: #ffffff;
  border: 1px solid #999999;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 11px;
  color: #333333;
  resize: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

#favourites-input:focus {
  border-color: #00632b;
}

.favourites-submit-btn {
  width: 58%;
  height: 38px;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  background: #00632b;
  color: #ffffff;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 13px;
  padding: 4px 16px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  text-align: center;
}

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

.favourites-submit-btn:hover:not(:disabled) {
  background: #007c36;
  transform: scale(1.02);
}

.favourites-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}


.step-away-title-svg {
  width: 100%;
  height: 80px;
  z-index: 5;
  margin-top: 34px;
}

.step-away-title-svg text {
  font-family: 'FruitySmoothie', 'Arial Rounded MT Bold', sans-serif;
  letter-spacing: 0.5px;
  font-size: 30px;
}

.step-away-product-img {
  width: 46%;
  max-width: 135px;
  height: auto;
  object-fit: contain;
  margin: -10px auto 0 auto;
  z-index: 5;
}

.continue-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(65% - 60px);
  min-width: 135px;
  height: 28px;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  background: #ffcb05;
  color: #003617;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.continue-btn:hover {
  background: #ffe054;
  transform: translateX(-50%) scale(1.02);
}

.continue-btn:active {
  transform: translateX(-50%) scale(0.98);
}


.thank-you-header {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  max-width: 125px;
  height: auto;
  object-fit: contain;
}

.success-subtitle {
  position: absolute;
  top: 92px;
  left: 0;
  width: 100%;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-product-img {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  max-width: 125px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.learn-more-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 140px;
  height: 26px;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  background: #e4232c;
  color: #ffffff;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.learn-more-btn:hover {
  background: #f7333d;
  transform: translateX(-50%) scale(1.02);
}

.learn-more-btn:active {
  transform: translateX(-50%) scale(0.98);
}


.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal.is-active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  width: 80%;
  max-width: 240px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loading-text {
  color: #333333;
  font-weight: 700;
  font-size: 11px;
  margin-top: 10px;
  margin-bottom: 0;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 99, 43, 0.2);
  border-top-color: #00632b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.modal-close-btn {
  margin-top: 12px;
  padding: 6px 18px;
  background: #00632b;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}


.modal-title {
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 13px;
  color: #003617;
  margin: 0 0 8px 0;
}

.modal-input {
  width: 100%;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #999999;
  padding: 0 8px;
  font-size: 10px;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #00632b;
}

.modal-btn-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.modal-submit-btn, .modal-cancel-btn {
  flex: 1;
  height: 25px;
  border-radius: 50px;
  border: none;
  font-family: 'FruitySmoothie', sans-serif;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.modal-submit-btn {
  background: #00632b;
  color: #ffffff;
}

.modal-cancel-btn {
  background: #e0e0e0;
  color: #333333;
}

.modal-submit-btn:hover, .modal-cancel-btn:hover {
  transform: scale(1.02);
}
