/* Global Resets & Fonts */
* {
  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;
}

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;
}

/* Services Section */
.services-section {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 15px;
  justify-content: space-between;
}

.service-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
  padding: 10px 5px;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.service-option:hover {
  transform: translateY(-3px);
}

.service-option img {
  max-width: 65px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.service-option.selected img {
  transform: scale(1.1);
}

.service-option::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.service-option.selected::after {
  background-color: #3a77b4;
}

.service-option span {
  display: block;
  font-weight: 500;
  color: #333;
}

.service-option.selected span {
  color: #3a77b4;
  font-weight: 600;
}

/* Timeline Tabs */
.timeline-tabs {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  height: 90px;
}

.tab-highlight {
  position: absolute;
  width: 33.33%;
  height: 100%;
  background-color: #3a77b4;
  transition: transform 0.3s ease;
  z-index: 1;
}

.timeline-tab {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeline-tab.selected {
  color: white;
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.tab-text {
  font-size: 14px;
  font-weight: 500;
}

.tab-subtext {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* 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;
}

/* Disclaimer */
.disclaimer {
  font-size: 12px;
  color: #777;
  margin-top: 15px;
  text-align: center;
}

/* 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: #102f62;
}

.modal-content p {
  margin-bottom: 20px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .container {
    border-radius: 0;
    box-shadow: none;
  }
  button {
    padding: 15px 0;
  }

  .timeline-tabs {
    height: 90px;
  }

  .tab-icon {
    font-size: 20px;
  }

  .tab-text {
    font-size: 12px;
  }

  .tab-subtext {
    font-size: 10px;
  }

  .service-option img {
    max-width: 55px;
  }
}
