@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@300;400;600&display=swap');

/* ─── WIDGET CONTAINER ─────────────────────────────── */
.saw-widget {
  max-width: 420px;
  width: 100%;
  background: #F5F2EC;
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-sizing: border-box;
  border: 1px solid #E6E2DA;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

/* ─── STEP DOTS ─────────────────────────────────────── */
.saw-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.saw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E6E2DA;
  transition: background 0.3s;
}
.saw-dot--active { background: #D4AF37; }

/* ─── STEP VISIBILITY ───────────────────────────────── */
.saw-step { display: none; }
.saw-step--active {
  display: block;
  animation: sawFadeIn 0.3s ease;
}
@keyframes sawFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TYPOGRAPHY ────────────────────────────────────── */
.saw-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D4AF37;
  text-align: center;
  margin: 0 0 8px;
}
.saw-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 500;
  color: #1F3D36;
  text-align: center;
  line-height: 1.35;
  margin: 0 0 8px;
}
.saw-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: #6B6B6B;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* ─── INPUT ─────────────────────────────────────────── */
.saw-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid #E6E2DA;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1F3D36;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.saw-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* ─── ERRORS ────────────────────────────────────────── */
.saw-error {
  font-size: 12px;
  color: #c0392b;
  min-height: 16px;
  margin: 0 0 8px;
  text-align: center;
}

/* ─── GDPR ──────────────────────────────────────────── */
.saw-gdpr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B6B6B;
  margin-bottom: 12px;
}
.saw-gdpr a { color: #D4AF37; }

/* ─── BUTTONS ───────────────────────────────────────── */
.saw-btn {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.saw-btn--gold {
  background: #D4AF37;
  color: #fff;
}
.saw-btn--gold:hover {
  background: #B8922E;
  transform: scale(1.02);
}
.saw-btn--gold:active { transform: scale(0.98); }

.saw-btn--dark {
  background: #1F3D36;
  color: #fff;
  margin-top: 4px;
}
.saw-btn--dark:hover {
  background: #16332C;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.3);
  color: #fff;
}

/* ─── LOADING ───────────────────────────────────────── */
.saw-loader {
  text-align: center;
  padding: 24px 0;
}
.saw-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #F5F2EC;
  border-top-color: #D4AF37;
  border-right-color: #D4AF37;
  border-radius: 50%;
  animation: sawSpin 0.9s linear infinite;
}
@keyframes sawSpin { to { transform: rotate(360deg); } }

.saw-loading-text {
  font-style: italic;
  font-size: 13px;
  color: #6B6B6B;
  animation: sawPulse 1.2s ease-in-out infinite;
}
@keyframes sawPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ─── ZODIAC BADGE ──────────────────────────────────── */
.saw-zodiac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31,61,54,0.07);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: #1F3D36;
  margin-bottom: 14px;
}

/* ─── RESULT CARD ───────────────────────────────────── */
.saw-result-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E6E2DA;
}
.saw-result-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6B6B6B;
  margin: 0 0 6px;
}
.saw-result-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1F3D36;
  margin: 0 0 10px;
  line-height: 1.2;
}
.saw-result-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.saw-meta-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #F5F2EC;
  color: #1F3D36;
  border: 1px solid #E6E2DA;
}
.saw-meta-pill--gold {
  background: rgba(212,175,55,0.12);
  color: #8B6914;
  border-color: rgba(212,175,55,0.3);
}
.saw-result-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: #6B6B6B;
  margin: 0 0 12px;
}
.saw-result-personal {
  font-style: italic;
  font-size: 13px;
  color: #D4AF37;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: rgba(212,175,55,0.07);
  border-left: 2px solid #D4AF37;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

/* ─── RESTART ───────────────────────────────────────── */
.saw-restart {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #6B6B6B;
  margin: 14px auto 0;
  padding: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.saw-restart:hover { color: #1F3D36; }

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

/* ─── MOBILE ────────────────────────────────────────── */
@media (max-width: 480px) {
  .saw-widget {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .saw-title  { font-size: 19px; }
  .saw-btn    { font-size: 14px; height: 48px; line-height: 48px; }
  .saw-result-name { font-size: 19px; }
  .saw-btn--dark:hover { box-shadow: none; }
}
