/* ---------------------------------------------------------
   HATCH CHARACTER FINDER — Enfold‑matched CSS
--------------------------------------------------------- */

:root {
  --hatch-primary: #5e8199;
  --hatch-secondary: #fcd7a2;
  --hatch-font: #3c4a5d;
  --hatch-bg: #f9f7f3;
  --hatch-alt-bg: #f8f8f8;
  --hatch-border: #d9d9d9;
}

#hatch-character-finder {
  max-width: 640px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--hatch-font);
}

/* Mode Switch */
.hatch-mode-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hatch-mode-btn {
  flex: 1 1 200px;
  border: 1px solid var(--hatch-border);
  background: var(--hatch-alt-bg);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  color: var(--hatch-font);
}

.hatch-mode-btn--active {
  background: var(--hatch-primary);
  color: #fff;
  border-color: var(--hatch-primary);
}

/* Card */
.hatch-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 1.25rem 1.25rem 1.5rem;
}

/* Progress */
.hatch-progress {
  margin-bottom: 1rem;
}

.hatch-progress-text {
  font-size: 0.85rem;
  color: var(--hatch-font);
}

.hatch-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e6e6e6;
  overflow: hidden;
}

.hatch-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--hatch-primary);
  transition: width 0.25s ease;
}

/* Question */
#hatch-question-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--hatch-font);
}

.hatch-answers {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hatch-answer-btn {
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid var(--hatch-border);
  padding: 0.75rem 0.9rem;
  background: var(--hatch-alt-bg);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  color: var(--hatch-font);
}

.hatch-answer-btn:hover {
  border-color: var(--hatch-primary);
}

.hatch-answer-btn--selected {
  background: var(--hatch-secondary);
  border-color: var(--hatch-primary);
}

/* Buttons */
.hatch-btn {
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--hatch-primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.05s ease;
}

.hatch-btn--ghost {
  background: #ffffff;
  color: var(--hatch-font);
  border: 1px solid var(--hatch-border);
}

.hatch-btn--full {
  width: 100%;
}

.hatch-btn--small {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Result */
.hatch-result-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.hatch-character-icon {
  width: 250px;
  height: 250px;
  margin-bottom: 0.75rem;
}

/* Forms */
.hatch-form {
  border-top: 1px solid #e6e6e6;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.hatch-form-row {
  margin-bottom: 0.75rem;
}

.hatch-form-row input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--hatch-border);
  font-size: 0.95rem;
  color: var(--hatch-font);
}

/* CTAs */
.hatch-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hatch-cta-link {
  flex: 1 1 180px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hatch-cta-link--primary {
  background: var(--hatch-primary);
  color: #fff;
}

.hatch-cta-link--secondary {
  background: #ffffff;
  color: var(--hatch-font);
  border: 1px solid var(--hatch-border);
}

.hatch-hidden {
  display: none;
}
