/* Personal Fashion Styler — colorful, inclusive, not age/gender stereotyped */

:root {
  --fs-bg: linear-gradient(145deg, #fef3c7 0%, #fce7f3 35%, #e0f2fe 70%, #d1fae5 100%);
  --fs-card: rgba(255, 255, 255, 0.92);
  --fs-ink: #1e293b;
  --fs-muted: #64748b;
  --fs-accent: #7c3aed;
  --fs-accent-2: #f97316;
  --fs-border: rgba(124, 58, 237, 0.25);
  --fs-radius: 18px;
  --fs-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  font-family: "DM Sans", system-ui, sans-serif;
}

.fs-page {
  min-height: 100vh;
  margin: 0;
  color: var(--fs-ink);
  background: var(--fs-bg);
  background-attachment: fixed;
}

.fs-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.fs-hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.fs-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fs-hero p {
  margin: 0;
  color: var(--fs-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.fs-card {
  background: var(--fs-card);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-shadow);
  border: 1px solid var(--fs-border);
  padding: 1.5rem 1.25rem;
}

.fs-steps {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.fs-step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--fs-accent);
}

.fs-step-pill.is-active {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: #fff;
}

.fs-step-pill.is-done {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.fs-field {
  margin-bottom: 1rem;
}

.fs-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.fs-field small {
  display: block;
  color: var(--fs-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.fs-input,
.fs-select,
.fs-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  font: inherit;
  background: #fff;
}

.fs-textarea {
  min-height: 5rem;
  resize: vertical;
}

.fs-scope-grid {
  display: grid;
  gap: 0.6rem;
}

.fs-scope-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fs-scope-opt:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
}

.fs-scope-opt input {
  margin-top: 0.2rem;
}

.fs-row-2 {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .fs-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.fs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  align-items: center;
}

.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.fs-btn-primary {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.fs-btn-secondary {
  background: #fff;
  color: var(--fs-ink);
  border: 2px solid rgba(100, 116, 139, 0.35);
}

.fs-btn-ghost {
  background: transparent;
  color: var(--fs-muted);
  border: none;
  text-decoration: underline;
  padding: 0.35rem 0.5rem;
}

.fs-alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.fs-note {
  font-size: 0.85rem;
  color: var(--fs-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
}

.fs-results h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.fs-results ul {
  margin: 0.25rem 0 1rem 1.1rem;
  padding: 0;
}

.fs-results li {
  margin: 0.35rem 0;
}

.fs-shop-list a {
  color: #5b21b6;
  font-weight: 600;
}

.fs-preview-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 560px) {
  .fs-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fs-preview-grid figure {
  margin: 0;
  text-align: center;
}

.fs-preview-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 3px solid rgba(124, 58, 237, 0.2);
}

.fs-disclaimer {
  font-size: 0.8rem;
  color: var(--fs-muted);
  border-top: 1px dashed rgba(100, 116, 139, 0.4);
  margin-top: 1.25rem;
  padding-top: 1rem;
}
