body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #3de073, #0e4a7a, #ad4794, #0fce19, #e23232);
  background-size: 400% 400%;
  animation: gradientMove 5s ease infinite;
  color: #111;
  text-align: center;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Top Banner */
.top-banner {
  background: #004d1a;
  color: #fff;
  font-size: 20px;
  padding: 10px;
  font-weight: bold;
}
.top-banner span {
  color: #ffcc00;
  display: inline-block;
  animation: bounceZoom 1.2s infinite;
}
@keyframes bounceZoom {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(0.95); }
  60% { transform: scale(1.12); }
  80% { transform: scale(0.98); }
}

/* Main Section */
.main-container {
  padding: 20px;
}

h1 {
  color: #fff;
  font-size: 27px;
  margin-bottom: 15px;
}
h2 {
  color: red;
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0 10px;
}

.subtitle {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Product Section */
.product {
  margin: 20px auto;
  max-width: 600px;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.product img {
  max-width: 100%;
  border-radius: 8px;
}

.benefits {
  text-align: left;
  margin: 15px auto;
  display: inline-block;
  background: #f4f4f4;
  padding: 25px 25px;
  border-radius: 10px;
}
.benefits h3 {
  margin: 0 5px 10px;
  color: #006400;
}
.benefits ul {
  margin: 0;
  padding-left: 20px;
  color: #0c0e0c;
}
.benefits ul li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #0c0e0c;
}

/* Button */
.buy-btn {
  display: inline-block;
  background: red;
  color: #fff;
  padding: 25px 25px;
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.buy-btn:hover {
  background: darkred;
}
.buy-btn.blink {
  animation: blinkBtn 3s steps(2, start) infinite;
}
@keyframes blinkBtn {
  0%, 100% { background: red; }
  50% { background: #7a4848; color: red; border: 2px solid rgba(204, 101, 101, 0.377); }
}

/* FAQ Section */
.faq-container {
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
}
.faq-container h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}
details {
  background: #9bca91;
  margin: 10px 0;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
}
details[open] {
  background: #a0c99d;
}
summary {
  font-weight: bold;
  font-size: 16px;
  outline: none;
}

/* Footer */
.footer {
  background: #004d1a;
  color: #fff;
  padding: 3px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  z-index: 100;
  font-size: 18px;
}

/* === Adaptive Popup Form === */
.form-popup,
#thankYouPopup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

.form-container {
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popIn 0.4s ease;
  text-align: left;
}

.form-container h3 {
  text-align: center;
  color: #004d1a;
  margin-bottom: 10px;
}

.form-container label {
  font-weight: bold;
  margin-top: 5px;
  display: block;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.form-container button {
  background: #004d1a;
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.form-container button:hover {
  background: #006633;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: red;
}

/* Animation */
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Tablet view */
@media (max-width: 900px) {
  .form-container {
    width: 85%;
    max-width: 500px;
    padding: 25px 20px;
    font-size: 15px;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .form-popup {
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
  }

  .form-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    border-radius: 15px 15px 0 0;
    padding: 25px 20px;
    font-size: 16px;
    box-shadow: none;
    animation: slideUp 0.35s ease-out;
    overflow-y: auto;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* Thank you popup fullscreen too */
  #thankYouPopup .thank-you-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

/* Thank You Popup Content */
.thank-you-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: popIn 0.4s ease;
}
