/* ============================================================
   SmartPrompter Profile Form
   AnswerStage brand — light background treatment
   Colors: Purple #4D46DC  |  CTA buttons: Black #000000
   Font: Poppins (loaded via your site) fallback: Inter, Arial
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Page shell ─────────────────────────────────────────────── */
.shell {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  background: #F0EFF8;
  color: #1a1a2e;
  padding: 2rem 1rem 3rem;
  min-height: 100vh;
}

/* ── Header / logo ──────────────────────────────────────────── */
.header-bar {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
}

.logo-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #4D46DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.5px;
}

.logo-sp {
  color: #4D46DC;
  margin-left: -7px;
}

/* ── Login row ──────────────────────────────────────────────── */
.login-row {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 1.25rem;
}

.login-row a {
  color: #4D46DC;
  text-decoration: none;
  font-weight: 600;
}

.login-row a:hover { text-decoration: underline; }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(77, 70, 220, 0.15);
  padding: 2rem 1.75rem;
  max-width: 540px;
  margin: 0 auto;
  color: #1a1a2e;
}

/* ── Step indicator ─────────────────────────────────────────── */
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  background: #E0DFF8;
  transition: all .25s;
  display: inline-block;
}

.dot.active {
  width: 22px;
  background: #4D46DC;
}

.dot.done { background: #AFA9EC; }

.slbl {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

/* ── Section headings ───────────────────────────────────────── */
.stitle {
  font-size: 20px;
  font-weight: 700;
  color: #0D1029;
  margin-bottom: 4px;
}

.ssub {
  font-size: 13px;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Value hook block ───────────────────────────────────────── */
.hook {
  background: #EEEDFE;
  border-radius: 10px;
  border: 1px solid rgba(77, 70, 220, 0.25);
  padding: 12px 16px;
  margin-bottom: 1.5rem;
}

.hook-title {
  font-size: 11px;
  font-weight: 700;
  color: #4D46DC;
  margin-bottom: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hook ul { list-style: none; padding: 0; }

.hook ul li {
  font-size: 13px;
  color: #3C3489;
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.5;
}

.hook ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4D46DC;
}

/* ── Form fields ────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  letter-spacing: .02em;
}

.req { color: #e24b4a; margin-left: 2px; }
.opt { font-weight: 400; color: #bbb; margin-left: 4px; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #FAFAFA;
  border: 1px solid #E2E1F5;
  border-radius: 8px;
  color: #1a1a2e;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: #C0BFCE; }

.field input:focus,
.field textarea:focus {
  border-color: #4D46DC;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(77, 70, 220, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.6;
}

.hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Pills (topic / tone selectors) ─────────────────────────── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #E2E1F5;
  cursor: pointer;
  background: #FAFAFA;
  color: #777;
  transition: all .15s;
  user-select: none;
}

.pill:hover {
  border-color: #AFA9EC;
  color: #4D46DC;
  background: #EEEDFE;
}

.pill.on {
  background: #EEEDFE;
  border-color: #4D46DC;
  color: #3C3489;
}

/* ── Option cards (frequency / duration) ────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.dur-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.opt-card,
.dur-btn {
  padding: 13px 8px;
  border-radius: 10px;
  border: 1px solid #E2E1F5;
  cursor: pointer;
  text-align: center;
  background: #FAFAFA;
  transition: all .15s;
}

.opt-card:hover,
.dur-btn:hover {
  border-color: #AFA9EC;
  background: #EEEDFE;
}

.opt-card.on,
.dur-btn.on {
  border: 2px solid #4D46DC;
  background: #EEEDFE;
}

.ct {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.cs {
  font-size: 10px;
  color: #999;
}

.opt-card.on .ct,
.dur-btn.on .ct { color: #4D46DC; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #EEEDF8;
  margin: 1.25rem 0;
}

/* ── Nav row (Back / Continue buttons) ──────────────────────── */
/*
   IMPORTANT: These use <div> not <button> elements.
   Browser and CMS resets often override button { background },
   making them invisible. Divs with onclick avoid that entirely.
*/
.nav {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 20px;             /* pill shape — matches AnswerStage */
  border: 1.5px solid #CCCCCC;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #555555;
  font-family: inherit;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-back:hover {
  background-color: #F5F4FB;
  border-color: #999999;
  color: #333333;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 20px;
  border-radius: 20px;             /* pill shape — matches AnswerStage */
  background-color: #000000;       /* black — matches "Try for Free" on pricing page */
  border: none;
  outline: none;
  color: #eeeeee;                  /* off-white — matches AnswerStage button text */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
  text-decoration: none;
}

.btn-next:hover {
  opacity: .80;
  background-color: #000000;      /* keep explicit — prevent host CSS override */
  color: #eeeeee;
}

/* ── Review summary (Step 3) ────────────────────────────────── */
.sum-head {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #EEEDF8;
  font-size: 13px;
}

.sum-row:last-child { border-bottom: none; }
.sum-lbl { color: #999; }
.sum-val { font-weight: 600; color: #1a1a2e; text-align: right; max-width: 300px; }

/* ── Step panels ────────────────────────────────────────────── */
.panel { display: none; }
.panel.on { display: block; }

/* ── Footer note ────────────────────────────────────────────── */
.req-note {
  font-size: 11px;
  color: #ccc;
  margin-top: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 1.5rem 1.25rem; }
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .dur-grid { grid-template-columns: repeat(2, 1fr); }
  .stitle { font-size: 18px; }
}


/* modal spinner */
 .modal-overlay {
   display: none; /* Hidden by default */
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
   z-index: 1000;
   justify-content: center;
   align-items: center;
 }

.spinner-container {
  /* Positioning the spinner in the center */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Simple CSS Loader (example) */
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  /* ── Frequency selector (Step 3) ────────────────────────────── */
.freq-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.freq-word {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
}

.freq-sel-wrap {
  position: relative;
  display: inline-block;
}

.freq-sel-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 32px 9px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #1a1a2e;
  background: #EEEDFE;
  border: 1.5px solid #4D46DC;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: box-shadow .15s;
}

.freq-sel-wrap select:focus {
  box-shadow: 0 0 0 3px rgba(77, 70, 220, 0.15);
}

.freq-sel-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.freq-sel-arrow::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #4D46DC;
  border-bottom: 2px solid #4D46DC;
  transform: rotate(45deg) translateY(-3px);
}

.freq-preview {
  margin-top: 12px;
  padding: 11px 14px;
  background: #F5F4FB;
  border-left: 3px solid #4D46DC;
  border-radius: 0;
}

.freq-preview-main {
  font-size: 13px;
  font-weight: 600;
  color: #3C3489;
  margin-bottom: 3px;
}

.freq-preview-sub {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

.freq-nudge {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: #FFFBEA;
  border: 1px solid #EFD96A;
  border-radius: 7px;
  font-size: 11px;
  color: #7A6200;
  line-height: 1.5;
}

.freq-nudge-link {
  color: #4D46DC;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .freq-selector-row { gap: 8px; }
  .freq-sel-wrap select { font-size: 13px; padding: 8px 28px 8px 10px; }
}

