/* ===== Base Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #eaf6fb;
  margin: 0;
  padding: 0;
}

/* ===== Card ===== */
.form-card {
  max-width: 740px;
  width: calc(100% - 32px);
  padding: 32px 40px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'Jost', sans-serif;
  margin: 20px auto !important;
}

/* ===== Congrats Header ===== */
.congrats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #FA8C16;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  line-height: 1.35;
}

/* ===== Home Icon ===== */
.home-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.home-icon-svg {
  width: 2.5em;
  height: 2.5em;
}

/* Fallback */
svg.home-icon,
img.home-icon {
  height: 32px;
  flex-shrink: 0;
}

/* ===== Hidden desc (kept in DOM for JS text-swap) ===== */
.hidden-desc {
  display: none;
}

/* ===== Call Button ===== */
.button-container {
  margin-bottom: 20px;
}

.final-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-size: clamp(1.35rem, 4vw, 2rem);
  background: #1c49ed;
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 16px 24px;
  text-decoration: none !important;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px rgba(28, 73, 237, 0.35);
  white-space: nowrap;
}

/* ===== Discount Line ===== */
.discount-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.discount-line .divider {
  flex: 1;
  height: 1px;
  background: #E0E0E0;
}

.discount-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #555;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
}

.bag-icon {
  font-size: 1.2rem;
}

/* ===== Timer ===== */
.timer-container {
  background: #FFF5E6;
  padding: 14px 20px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.urgency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  display: inline;
}

.timer {
  display: inline;
  color: #E53935;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ===== Misc (kept for backward compat) ===== */
.hidden {
  display: none;
}

.call-now {
  font-weight: 500;
  color: #1a237e;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.btn {
  min-width: 180px;
  padding: 10px 30px;
  font-size: 1.4em;
  border: none;
  border-radius: 40px;
  margin: 0 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 7px #19be5a1e;
  line-height:1.4;
}
.btn-yes {
  background: #28a745;
  color: #fff;
}

.btn-no {
  background: #f64c22;
  color: #fff;
}
.btn-yes:hover, .btn-no:hover {
  opacity: 0.93;
}
.eligibility-error {
  color: #d32622;
  font-size: 1.8rem;
  font-weight: bold;
}
.question {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom:32px;
  color: #333;
  line-height:1.5;
}

.step-desc {
  margin-bottom: 10px;
  font-size: 1.13rem;
  color: #1a237e;
  line-height: 1.6;
}

.zipcode-entry {
  display: block;
  width: 80%;
  margin: 0 auto 16px auto;
  padding: 14px 12px;
  border: 2px solid #bbb;
  border-radius: 8px;
  font-size: 1.2em;
  font-family: 'Jost', sans-serif;
  text-align: center;
}

/* ===== Pulse Animation ===== */
@keyframes pulse {
  0% {
    transform: scale(0.96);
  }

  50% {
      transform: scale(1);
  }

  100% {
    transform: scale(0.96);
  }
}

@-webkit-keyframes pulse {
  0% {
      -webkit-transform: scale(0.95);
  }

  50% {
      -webkit-transform: scale(1);
  }

  100% {
    -webkit-transform: scale(0.96);
  }
}

.pulse {
  animation-name: pulse;
  -webkit-animation-name: pulse;
  animation-duration: 1.5s;
  -webkit-animation-duration: 1.5s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}
/* ===== Tablet (â‰¤ 768px) ===== */
@media (max-width: 768px) {
  .form-card {
    padding: 28px 28px 22px;
  }

  .congrats-header {
    font-size: 1.45rem;
  }
}

/* ===== Mobile (â‰¤ 600px) ===== */
@media (max-width: 600px) {
  .form-card {
    padding: 20px 16px 18px;
  }
  .congrats-header {
    font-size: 1.1rem;
    gap: 10px;
  }
  .final-phone {
    font-size: clamp(1.1rem, 5.5vw, 1.4rem);
    padding: 14px 16px;
    gap: 8px;
    letter-spacing: 0.5px;
  }
  .discount-content {
    font-size: 0.9rem;
  }

  .urgency {
    font-size: 0.95rem;
  }
  .timer {
    font-size: 1rem;
  }
  .rating-line {
    font-size: 0.8rem;
  }

  .btn-group {
    flex-direction: column;
  }
}

/* ===== Extra small (â‰¤ 380px) ===== */
@media (max-width: 380px) {
  .congrats-header {
    flex-direction: column;
    font-size: 1.1rem;
    text-align: center;
    align-items: center;
    gap: 10px;
  }

  .final-phone {
    font-size: 1rem;
    padding: 12px 10px;
    letter-spacing: 0;
  }

  .discount-content {
    font-size: 0.82rem;
    white-space: normal;
    text-align: center;
  }
  .rating-line {
    font-size: 0.75rem;
  }
}
/* ===== Loader ===== */
.loader-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-box {
  text-align: center;
  font-family: 'Jost', sans-serif;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #28a745;
  transition: width 0.4s ease;
  margin: 0 !important;
}

.rating-line {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
}