* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
  color: #333;
  margin-bottom: 10px;
  text-align: center;
  font-size: 32px;
}

.score {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

#score-display {
  font-weight: bold;
  color: #667eea;
  font-size: 28px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Email/phone wrappers so campaigns can show, require, or hide them */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: -10px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group label {
  font-weight: normal;
  cursor: pointer;
  margin: 0;
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.coupon-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 3px dashed #667eea;
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.coupon-box p {
  color: #666;
  margin-bottom: 10px;
  font-size: 16px;
}

.coupon-box h2 {
  color: #667eea;
  font-size: 36px;
  letter-spacing: 4px;
  font-weight: 900;
}

.instructions {
  text-align: center;
  color: #666;
  margin-top: 20px;
  font-size: 16px;
}

.small {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 10px;
}

/* Link styled as a full-width button (missed view -> leaderboard) */
.button-link {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
}