:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f5f6fb;
  color: #222;
}

body {
  margin: 0;
  padding: 1rem;
  display: flex;
  min-height: 100vh; /* Fallback for older browsers */
  min-height: 100dvh; /* Dynamic viewport height */
  align-items: center;
  justify-content: center;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 50px -30px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  width: 100%;
}

h1,
h2 {
  margin-top: 0;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero-image {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image.hidden {
  display: none;
}

.subtitle {
  margin-bottom: 1.25rem;
  color: #55596d;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field input,
.field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7d7dc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: #222;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #3365ff;
  box-shadow: 0 0 0 3px rgba(51, 101, 255, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: #a0a3b8;
  opacity: 1;
}

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 2rem;
  color: #d7d7dc;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color 0.15s ease;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: #f5a623;
}

.rating-display {
  text-align: center;
  margin-bottom: 0.75rem;
}

.stars-display label {
  cursor: default;
  pointer-events: none;
}

.stars-display input:disabled ~ label {
  cursor: default;
}

.rating-prompt {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2a2d42;
  margin: 0 0 1rem 0;
  text-align: center;
}

.rating-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

#rating-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

.rating-confirm {
  margin-top: 0;
}

.rating-error {
  text-align: center;
  width: 100%;
}

.muted {
  color: #6f7287;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


.highlight-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.highlight-message strong {
  font-weight: 600;
}

.maps-note {
  margin-top: 1rem;
  color: #6f7287;
  text-align: center;
  font-size: 0.95rem;
}

.maps-note a {
  color: #3365ff;
  text-decoration: none;
  font-weight: 600;
}

.maps-note a:hover {
  text-decoration: underline;
}

.prompt-container {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #e5e7f2;
  border-radius: 14px;
  background: #f9faff;
  text-align: left;
}

.prompt-container h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.prompt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prompt-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px dashed #d7d7dc;
  padding-bottom: 1rem;
}

.prompt-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prompt-text {
  margin: 0;
  color: #303247;
  line-height: 1.45;
}

.copy-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid #c7cff8;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3365ff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background: #3365ff;
  color: #fff;
  border-color: #3365ff;
}

.copy-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #3365ff;
  min-height: 1.2em;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3365ff, #5c8aff);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -20px rgba(51, 101, 255, 1);
}

.form-error {
  color: #d93025;
  min-height: 0;
  margin-top: 0.5rem;
}

.form-error:empty {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home-btn {
  position: static;
  background: transparent;
  border: 2px solid #d7d7dc;
  color: #999;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-bar {
  margin-top: 1rem;
  text-align: center;
}

.buttons-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef0f5;
  color: #1f2937;
  border: 1px solid #d7d7dc;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.secondary:hover {
  background: #e7eaf3;
}

.home-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #999;
  color: #333;
}

.home-btn:active {
  transform: scale(0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 1rem;
    min-height: auto;
  }

  .card {
    padding: 1.25rem 1.5rem;
  }
  
  .subtitle {
    margin-bottom: 1rem;
  }
  
  .hero-image {
    width: calc(100% + 3rem);
    margin: -1.25rem -1.5rem 1rem -1.5rem;
  }
  
  .hero-image img {
    height: 200px;
  }
  
  footer {
    margin-top: 1rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.25rem;
    padding: 1rem 1.25rem;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

footer {
  margin-top: 1.5rem;
  padding: 1.25rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #e2e8f0;
  font-size: 0.85rem;
  border-radius: 0 0 16px 16px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.footer-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.footer-domain {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.footer-tagline {
  display: block;
  color: #cbd5e0;
  font-size: 0.8rem;
}

.thank-you-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.75rem;
  animation: celebrate 0.6s ease-out;
}

#thank-you h2 {
  margin-bottom: 0.5rem;
}

#thank-you p {
  margin-bottom: 0.75rem;
}

@keyframes celebrate {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.discount-section {
  margin-top: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
  border-radius: 14px;
  border: 2px solid #d0deff;
}

.discount-code-display {
  text-align: center;
  margin-bottom: 0;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(51, 101, 255, 0.08);
}

.discount-header {
  margin-bottom: 1rem;
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.discount-label {
  display: block;
  font-size: 0.9rem;
  color: #6f7287;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discount-code {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #3365ff;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  margin-top: 0.25rem;
}

.discount-expiry-text {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #6f7287;
}

.discount-expiry-text strong {
  color: #303247;
  font-weight: 600;
}

.copy-code-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: #3365ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: #2451d9;
  transform: translateY(-1px);
}

.copy-code-btn:active {
  transform: translateY(0);
}

.copy-code-btn.copied {
  background: #0d904f;
}

.share-love-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed #d0deff;
  text-align: center;
}

.share-love-section h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #303247;
  font-size: 1.1rem;
}

.share-love-section p {
  color: #6f7287;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
}

.whatsapp-btn:hover {
  background: #1faa52;
  transform: translateY(-2px);
}

.sms-btn {
  background: #007AFF;
  color: white;
}

.sms-btn:hover {
  background: #0051d5;
  transform: translateY(-2px);
}

.copy-link-btn {
  background: #6c757d;
  color: white;
}

.copy-link-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.copy-link-btn.copied {
  background: #0d904f;
}

.btn-icon {
  font-size: 1.1rem;
}

.email-prompt {
  text-align: center;
  color: #55596d;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.success-message {
  color: #0d904f;
  text-align: center;
  font-weight: 600;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #d1f4e0;
  border-radius: 8px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#landing-page {
  text-align: center;
  padding: 1rem 0;
}

.landing-banner {
  width: 98%;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f6fb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.landing-preheader {
  color: #3365ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

#landing-page h1 {
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 1.75rem;
}

.landing-subtitle {
  color: #55596d;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.landing-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-benefits li {
  color: #303247;
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.landing-benefits li::before {
  content: "•";
  color: #3365ff;
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
}

.landing-cta {
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .landing-banner {
    width: 98%;
    margin: 0 auto 1.25rem auto;
  }
  
  #landing-page h1 {
    font-size: 1.5rem;
  }
  
  .landing-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .landing-benefits {
    margin-bottom: 1.5rem;
    gap: 0.625rem;
  }
  
  .landing-benefits li {
    font-size: 0.95rem;
  }
}
