/* ========== SUB PAGE HERO ========== */
.page-hero {
  background: var(--blue-pale-3);
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero .container { display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0;
}
.page-hero h1 .hl { background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%); padding: 0 2px; }
.page-hero h1 .hl-blue { color: var(--blue); }
.page-hero p { font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.7; }

.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { opacity: 0.5; }

/* ========== SIDEBAR + CONTENT LAYOUT ========== */
.sub-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 64px 0 96px;
}
.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  height: fit-content;
  background: var(--surface);
  position: sticky; top: 96px;
}
.sidebar-title {
  padding: 16px 18px 12px;
  font-size: 17px; font-weight: 800; color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.sidebar a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.sidebar a:hover { background: var(--blue-pale); color: var(--blue); }
.sidebar a.active { background: var(--blue-pale); color: var(--blue); }
.sidebar a.active::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.sub-content { min-width: 0; }
@media (max-width: 880px) {
  .sub-layout { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 64px; }
  .sidebar { display: flex; flex-direction: row; flex-wrap: wrap; padding: 6px; position: static; }
  .sidebar-title { display: none; }
  .sidebar a { flex: 1; min-width: 0; justify-content: center; padding: 10px 12px; font-size: 13px; }
  .sidebar a.active::after { display: none; }
}

/* ========== CONSULT INFO CARD (top of consult pages) ========== */
.consult-card {
  background: var(--blue-pale-2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
}
.consult-card img { width: 96px; height: 96px; flex-shrink: 0; }
.consult-card-body { flex: 1; }
.consult-card h3 { font-size: 20px; margin-bottom: 8px; }
.consult-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 640px) {
  .consult-card { flex-direction: column; text-align: center; padding: 24px; }
}

/* ========== FORM ========== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row label {
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; gap: 4px; align-items: center;
}
.form-row label .req { color: var(--red); }
.form-row .hint { font-size: 12.5px; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 114, 255, 0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.radio-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-item {
  position: relative;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.radio-item input { position: absolute; opacity: 0; }
.radio-item:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.radio-item strong { display: block; font-size: 15px; color: var(--ink); }
.radio-item small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .radio-group { grid-template-columns: 1fr; } }

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  margin: 8px 0;
}
.timeline::before {
  content: ''; position: absolute;
  top: 22px; left: 8%; right: 8%; height: 2px;
  background: var(--line);
}
.timeline-step { text-align: center; position: relative; z-index: 1; }
.timeline-step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  margin: 0 auto 14px;
  color: var(--muted);
}
.timeline-step.done .num { background: var(--blue); color: #fff; border-color: var(--blue); }
.timeline-step h4 { font-size: 13.5px; margin-bottom: 4px; color: var(--ink); }
.timeline-step p { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
  .timeline::before { display: none; }
}

/* Cost table */
.cost-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  border-collapse: collapse;
}
.cost-table th, .cost-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.cost-table th { font-weight: 700; background: var(--blue-pale-3); font-size: 13px; color: var(--ink-soft); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table .price-col { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue); }
.cost-table tr:hover td { background: var(--blue-pale-3); }

/* Section title in sub */
.sub-section { margin-bottom: 56px; }
.sub-section h2 {
  font-size: 26px; font-weight: 900;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sub-section h2 .hl { background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%); padding: 0 4px; }
.sub-section > p {
  font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.75;
}

/* Numbered list (mark-up style) */
.num-list { display: flex; flex-direction: column; gap: 24px; }
.num-list-item { display: flex; gap: 18px; align-items: flex-start; }
.num-list-item .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.num-list-item .num.alt { background: var(--blue-pale); color: var(--blue); }
.num-list-item .body { flex: 1; }
.num-list-item .body strong { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.num-list-item .body p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* Team / Consult card grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.member-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 28px; font-weight: 900;
}
.member h3 { font-size: 17px; margin-bottom: 4px; }
.member .role { font-size: 13px; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.member ul { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* Search UI */
.search-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.search-input-row {
  display: flex; gap: 10px;
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 20px;
  border: 2px solid var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.search-input-row:focus-within { border-color: var(--blue); }
.search-input-row input {
  flex: 1; border: 0; background: transparent;
  font-size: 16px; font-weight: 500;
  outline: none;
}
.search-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--blue-pale); color: var(--blue); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400; color: var(--blue);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .body { padding: 0 24px 20px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* Sub final CTA */
.sub-final-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  color: #fff;
  margin-top: 48px;
}
.sub-final-cta h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.sub-final-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; font-size: 15px; }
.sub-final-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
