/* BizPlan Pro — Custom Styles v2 */

:root {
  --navy: #0A2240;
  --teal: #1B8A7E;
  --muted: #6B7280;
}

/* ---- Body ---- */
body {
  background: #f8fafc;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #1B8A7E;
  box-shadow: 0 0 0 3px rgb(27 138 126 / 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

textarea.form-input {
  resize: vertical;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 2px 8px rgb(10 34 64 / 0.25);
  cursor: pointer;
  transition: background-color 0.18s, box-shadow 0.18s, transform 0.1s;
}

.btn-primary:hover {
  background-color: var(--teal);
  box-shadow: 0 4px 14px rgb(27 138 126 / 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  background-color: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.04);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.375rem;
  line-height: 1.5;
}

/* ---- Subsection title with teal accent bar ---- */
.subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 0.625rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.subsection-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Field group panel ---- */
.field-group {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.25rem;
}

/* ---- Dynamic item cards ---- */
.item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.04);
}

/* ============================================================
   PLAN TYPE / FOCUS CARDS
   ============================================================ */

.plan-type-card input:checked + .plan-card-inner {
  border-color: #1B8A7E;
  background-color: rgb(27 138 126 / 0.04);
  box-shadow: 0 0 0 1px rgb(27 138 126 / 0.3), 0 2px 8px rgb(27 138 126 / 0.1);
}

.plan-card-inner {
  padding: 1.125rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  cursor: pointer;
}

.plan-card-inner:hover {
  border-color: rgb(27 138 126 / 0.5);
}

.focus-card input:checked + .focus-card-inner {
  border-color: #1B8A7E;
  background-color: rgb(27 138 126 / 0.04);
  box-shadow: 0 0 0 1px rgb(27 138 126 / 0.3);
}

.focus-card-inner {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.focus-card-inner:hover {
  border-color: rgb(27 138 126 / 0.5);
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */

.step-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid;
  transition: all 0.25s;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.step-dot.upcoming {
  border-color: #e2e8f0;
  color: #94a3b8;
  background: #ffffff;
}

.step-dot.active {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(27 138 126 / 0.2);
}

.step-dot.completed {
  border-color: var(--teal);
  color: var(--teal);
  background: rgb(27 138 126 / 0.1);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  transition: background-color 0.3s;
}

.step-connector.done {
  background: var(--teal);
}

/* ============================================================
   CHECKBOXES & RADIO ACCENTS
   ============================================================ */

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  accent-color: var(--teal);
  width: 0.9rem;
  height: 0.9rem;
  cursor: pointer;
}

/* ============================================================
   MARKDOWN / PLAN CONTENT
   ============================================================ */

.plan-content {
  color: #475569;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.plan-content h3 {
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.plan-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.plan-content p {
  margin-bottom: 0.875rem;
}

.plan-content ul,
.plan-content ol {
  margin-bottom: 0.875rem;
  padding-left: 1.375rem;
}

.plan-content ul {
  list-style: disc;
}

.plan-content ol {
  list-style: decimal;
}

.plan-content li + li {
  margin-top: 0.25rem;
}

.plan-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.plan-content table th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-content table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  color: #475569;
}

.plan-content table tr:nth-child(even) td {
  background: #f8fafc;
}

.plan-content strong {
  font-weight: 700;
  color: #1e293b;
}

.plan-content blockquote {
  border-left: 4px solid #fbbf24;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 1rem 0;
  color: #92400e;
  font-size: 0.875rem;
  font-style: italic;
}

.plan-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1rem 0;
}

/* ============================================================
   PREVIEW PAGE — SECTION CARDS
   ============================================================ */

.section-card {
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 1.125rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.2s;
}

.section-card:hover {
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.08);
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, #f8fafc, #ffffff);
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.section-card-body {
  padding: 1.5rem;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

#tocNav a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-radius: 0.5rem;
  transition: all 0.15s;
  text-decoration: none;
}

#tocNav a:hover {
  color: var(--navy);
  background: #f8fafc;
}

#tocNav a.active {
  color: var(--navy);
  font-weight: 700;
  background: rgb(27 138 126 / 0.08);
  border-left: 2px solid var(--teal);
  padding-left: 0.625rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
