/* Profit Pulse–aligned interview UI (p-puls.com Elementor kit) */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --ink: #000000;
  --muted: #838383;
  --accent: #fcf113;
  --accent-soft: #fcf11317;
  --mint: #a8d5ba;
  --mint-soft: #a8d5ba2e;
  --line: rgba(0, 0, 0, 0.1);
  --danger: #c0392b;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 0% 0%, var(--mint-soft), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, var(--accent-soft), transparent 50%),
    var(--bg);
}

.shell {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
}

.brand {
  margin-bottom: 1.25rem;
}

.brand-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--font);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 36rem;
}

.brand-purpose {
  margin: 0.8rem 0 0;
  padding: 0.8rem 0.95rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 36rem;
}

.panel {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
}

.hidden { display: none !important; }

.lang-picker {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.lang-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lang-btn {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.lang-btn:hover:not(:disabled) {
  background: var(--mint-soft);
  border-color: var(--mint);
  filter: none;
  transform: none;
}

.lang-btn.active {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: #c8c8c8;
}

@media (max-width: 560px) {
  .lang-buttons {
    flex-direction: column;
  }

  .lang-btn {
    flex: none;
    width: 100%;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span, .check {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c8c8c8;
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

textarea { resize: vertical; min-height: 7rem; }

.check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

button {
  border: 0;
  background: var(--accent);
  color: #000;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover:not(:disabled) {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.secondary:hover:not(:disabled) {
  background: var(--mint-soft);
  border-color: var(--mint);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.intro-actions {
  margin-top: 0.35rem;
}

.hint.channels {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem 0 0.85rem;
}

a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border-radius: 999px;
}

a.button-link:hover {
  background: var(--mint-soft);
  border-color: var(--mint);
}

.progress {
  height: 5px;
  background: var(--mint-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--accent));
  transition: width 0.35s ease;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}

.question {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  /* Keep synthesis / multi-line prompts readable (not one fused paragraph). */
  white-space: pre-wrap;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0.85rem 0 0;
}

.hint.error { color: var(--danger); }

#contactError {
  margin-top: 0.55rem;
  font-weight: 600;
}

input.field-invalid,
textarea.field-invalid {
  border-color: var(--danger);
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.hint.wait {
  color: #1f5c3a;
  background: var(--mint-soft);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.95rem;
  font-size: 0.95rem;
}

#doneTitle {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.summary {
  white-space: pre-wrap;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  margin-top: 1rem;
}

audio {
  width: 100%;
  margin-bottom: 1rem;
}

/* Embed / iframe on WordPress */
body.embed .shell {
  width: min(760px, calc(100% - 1rem));
  padding: 1rem 0 1.5rem;
}

body.embed .brand-name {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
}

body.embed .panel {
  padding: 1.1rem 1.15rem 1.25rem;
}

body.embed.chat-active .brand {
  display: none;
}

body.embed.chat-active .shell {
  padding-top: 0.5rem;
}

.chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.65rem;
}

.chat-tts {
  margin: 0;
  font-size: 0.88rem;
}

.synthesis-panel {
  margin: 0 0 0.85rem;
}

.synthesis-toggle {
  width: 100%;
}

.confirm-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  position: sticky;
  top: 0.35rem;
  z-index: 2;
  padding: 0.35rem 0;
  background: linear-gradient(180deg, var(--surface) 78%, transparent);
}

body.embed .answer-dock {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0 -0.15rem;
  padding: 0.65rem 0.15rem 0.15rem;
  background: linear-gradient(0deg, var(--surface) 82%, transparent);
}

body.embed .answer-dock textarea {
  min-height: 5.5rem;
}

body.embed audio {
  max-height: 2.75rem;
}
