* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

/* QR Code Animation - Simplified */
.qr-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #102f62;
  z-index: 1000;
  animation: qrFadeOut 1.5s ease-in-out forwards;
}

.qr-code {
  width: 180px;
  height: 180px;
  background-color: white;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  padding: 10px;
  animation: qrZoom 1.5s ease-in-out forwards;
}

.qr-pixel {
  background-color: #3a77b4;
  transform: scale(0);
  animation: pixelAppear 0.8s ease-in-out forwards;
}

@keyframes qrFadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes qrZoom {
  0% { transform: scale(1); }
  70% { transform: scale(1.1); }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes pixelAppear {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Header */
header {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 20px;
}

.header-content {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.logo-container {
  margin: 10px auto 15px;
  text-align: center;
}

.company-logo {
  max-width: 200px;
  height: auto;
}

.header-contact {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 600;
}

h1 {
  margin: 5px 0 0;
  font-size: 34px;
  font-weight: 700;
}

.discount-tag {
  display: inline-block;
  background-color: #499ad2;
  padding: 5px 12px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

/* Content */
.content {
  padding: 20px;
  background-color: white;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 1.5s forwards;
  text-align: center;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.offer-box {
  background-color: #fffdf7;
  border-left: 3px solid #3a77b4;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 2px dashed #d32027;
  text-align: center;
}

.timer-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
}

.offer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #102f62;
}

.offer-subtext {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

/* Countdown Timer */
#countdown {
  font-size: 1.4em;
  font-weight: bold;
  color: #d32027;
  background-color: #ffd700;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-align: center;
  margin: 15px 0;
}

.countdown-bar {
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.countdown-progress {
  height: 100%;
  width: 65%;
  background-color: #d32027;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.urgency {
  color: #d32027;
  font-weight: 600;
  margin: 15px 0;
  font-size: 14px;
  text-align: center;
  padding: 8px;
  background-color: #ffeeee;
  border-radius: 4px;
  animation: highlight 3s infinite;
}

@keyframes highlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

input:focus,
select:focus {
  border-color: #3a77b4;
  outline: none;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  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: 2000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  font-size: 1.5em;
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #d32027;
}

.modal-content p {
  margin-bottom: 20px;
}

/* Submit Button */
button {
  background-color: #3a77b4;
  color: white;
  border: none;
  padding: 12px 0;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  margin-top: 15px;
}

button:hover {
  background-color: #2e5b8e;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .container {
    border-radius: 0;
    box-shadow: none;
  }
  button {
    padding: 15px 0;
  }
}
