:root {
  --primary: #0f766e; /* Teal-700 */
  --primary-hover: #0d9488; /* Teal-600 */
  --primary-light: #ccfbf1; /* Teal-50 */
  --secondary: #ea580c; /* Orange-600 */
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-light: #475569;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.4);
  --border-radius: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Background Setup */
.app-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: -5%; left: -5%; right: -5%; bottom: -5%;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/awo3tp/site/media/69fb13393ca4d8.22233309.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: 0;
  transition: filter 0.5s ease;
}

.bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 118, 110, 0.55) 100%);
  z-index: 1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Typography */
h1, h2, h3 { font-family: 'Playfair Display', serif; }

.badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0d9488);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(15, 118, 110, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.5);
  background: linear-gradient(135deg, var(--primary-hover), #0f766e);
}

.btn-primary:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-large {
  font-size: 1.15rem;
  padding: 1.125rem 3.5rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Quiz UI */
.progress-container {
  margin-bottom: 2.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.question-title {
  font-size: 2.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.3;
  color: var(--text-main);
  text-align: center;
}

.choices-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.choice-btn {
  background-color: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.choice-btn:hover {
  border-color: var(--primary);
  background-color: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.choice-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.25rem;
}

/* Result Screen */
.result-card {
  padding: 4rem 3rem;
}

.result-title {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary), #0369a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.result-image-container {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  background-color: #e2e8f0;
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 3rem;
  text-align: left;
}

.result-description h2, 
.result-description h3, 
.result-description p strong {
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
}

.result-description p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.result-description ul {
  list-style-type: none;
  margin-bottom: 2rem;
  padding-left: 0;
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.result-description li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.result-description li:last-child {
  margin-bottom: 0;
}

.result-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f766e' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.result-cta {
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.cta-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.cta-subtext {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.cta-subtext:last-of-type {
  margin-bottom: 2rem;
}

.cta-subtext a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cta-subtext a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}


/* Powered By */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .app-container { padding: 1.5rem 1rem; }
  .card { padding: 2.5rem 1.5rem; }
  .hero-title { font-size: 2.5rem; }
  .question-title { font-size: 1.75rem; }
  .result-title { font-size: 2.25rem; }
  .result-card { padding: 3rem 1.5rem; }
}

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

.screen.active {
  display: block;
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
