/* Prompt-first Guided Quote beta. Kept separate so the current Guided Intake
   and the comparison workflow can be evaluated independently. */

.gv2-story textarea {
  min-height: 190px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.gv2-coach {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 4px 0 14px;
  padding: 11px 13px;
  border: 1px solid #ddd8f5;
  border-radius: 9px;
  background:
    radial-gradient(circle at 92% 12%, rgba(95, 72, 194, .12), transparent 28%),
    #faf9ff;
}

.gv2-coach span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gv2-coach p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.gv2-map-button {
  min-width: 150px;
}

.gv2-thinking {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

.gv2-thinking i {
  width: 15px;
  height: 15px;
  border: 2px solid #cfc8f4;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: gv2-spin .75s linear infinite;
}

@keyframes gv2-spin {
  to { transform: rotate(360deg); }
}

.gv2-mapbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 12px;
  padding: 12px 13px;
  border: 1px solid #cce9d7;
  border-radius: 9px;
  background: #f6fef9;
}

.gv2-mapbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.gv2-map-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.gv2-mapbar b,
.gv2-mapbar p {
  display: block;
}

.gv2-mapbar b {
  font-size: 12.5px;
}

.gv2-mapbar p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10.75px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gv2-map-editor {
  margin-bottom: 14px;
  padding: 0 13px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfc;
}

.gv2-map-editor[hidden] {
  display: none !important;
}

.gv2-sprint {
  max-width: 780px;
  margin: 18px auto 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 25, 38, .06);
}

.gv2-sprint-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 11px;
  background:
    radial-gradient(circle at 86% 0, rgba(255, 255, 255, .17), transparent 35%),
    linear-gradient(120deg, #5140ae, #6a55cf);
  color: #fff;
}

.gv2-sprint-head > div:first-child span,
.gv2-sprint-head > div:first-child b {
  display: block;
}

.gv2-sprint-head > div:first-child span {
  opacity: .76;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gv2-sprint-head > div:first-child b {
  margin-top: 2px;
  font-size: 13px;
}

.gv2-fact-score {
  display: flex;
  gap: 7px;
  align-items: center;
}

.gv2-fact-score b {
  font-size: 23px;
  line-height: 1;
}

.gv2-fact-score span {
  max-width: 52px;
  opacity: .78;
  font-size: 9px;
  line-height: 1.15;
  text-transform: uppercase;
}

.gv2-progress {
  height: 5px;
  overflow: hidden;
  background: #e8e5f7;
}

.gv2-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, #3cc778, #8bdd9e);
  transition: width .28s ease;
}

.gv2-question-card {
  padding: 22px 24px 18px;
  animation: gv2-in .22s ease both;
}

.gv2-question-card.won {
  animation: gv2-won .2s ease both;
}

@keyframes gv2-in {
  from { opacity: 0; transform: translateY(5px); }
}

@keyframes gv2-won {
  50% { transform: scale(.992); background: #f6fef9; }
}

.gv2-question-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}

.gv2-question-meta span,
.gv2-question-meta b {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.2;
}

.gv2-question-meta span {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.gv2-question-meta b {
  background: #f1f3f5;
  color: var(--ink-3);
  font-weight: 600;
}

.gv2-question-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.gv2-question-card > p {
  max-width: 630px;
  margin: 6px 0 17px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.gv2-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gv2-choice-grid button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: 500 11.5px/1.35 Inter, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}

.gv2-choice-grid button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.gv2-choice-grid button span {
  width: 14px;
  height: 14px;
  border: 1px solid #c8cbd2;
  border-radius: 50%;
  background: #fff;
}

.gv2-choice-grid button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.gv2-choice-grid button.selected span {
  border: 4px solid var(--brand);
}

.gv2-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.gv2-answer-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
}

.gv2-answer-row input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.gv2-later {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: 500 10.5px Inter, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.gv2-question-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
}

.gv2-question-nav span {
  color: var(--ink-3);
  font-size: 9.5px;
}

.gv2-sprint-complete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 0 100%, rgba(54, 190, 113, .1), transparent 30%),
    #fff;
  animation: gv2-in .25s ease both;
}

.gv2-finish-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dcf7e7;
  color: #138248;
  font-size: 20px;
  font-weight: 700;
}

.gv2-sprint-complete span {
  color: var(--ok);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gv2-sprint-complete h2 {
  margin: 2px 0 3px;
  font-size: 17px;
}

.gv2-sprint-complete p {
  margin: 0;
  color: var(--ink-3);
  font-size: 10.75px;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .gv2-story textarea { min-height: 230px; }
  .gv2-mapbar { align-items: flex-start; flex-direction: column; }
  .gv2-mapbar .btn { width: 100%; }
  .gv2-mapbar p { white-space: normal; }
  .gv2-choice-grid { grid-template-columns: 1fr; }
  .gv2-question-card { padding: 18px 15px 15px; }
  .gv2-question-card h2 { font-size: 17px; }
  .gv2-answer-row { grid-template-columns: 1fr; }
  .gv2-question-nav { align-items: flex-start; flex-direction: column-reverse; }
  .gv2-sprint-complete { grid-template-columns: auto minmax(0, 1fr); }
  .gv2-sprint-complete .btn { grid-column: 1 / -1; width: 100%; }
}
