/* Fractional CIO pre-call questionnaire (/cio-intake/). Uses tokens from style.css. */

.ci-body {
  background: var(--bg-parchment);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
}

.ci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 16px;
}

.ci-brand img { height: 56px; width: auto; display: block; }

.ci-phone {
  font-weight: 700;
  color: var(--onpar-navy);
  text-decoration: none;
  white-space: nowrap;
}

.ci-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.ci-hero { margin-bottom: 24px; }

.ci-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--onpar-orange);
  margin-bottom: 8px;
}

.ci-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  color: var(--onpar-navy);
  margin: 0 0 12px;
}

.ci-hero p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Progress (sticks to the top while scrolling) */
.ci-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-parchment);
  padding: 12px 0;
  margin-bottom: 8px;
}

.ci-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-parchment-darker);
  overflow: hidden;
}

.ci-progress-bar {
  height: 100%;
  width: 0;
  background: var(--onpar-orange);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ci-progress-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* Section cards */
.ci-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.ci-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }

.ci-step {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--onpar-navy);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ci-card-head h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--onpar-navy);
  margin: 2px 0 4px;
}

.ci-card-head p { margin: 0; color: var(--text-muted); font-size: 15px; }

.ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }

.ci-field label,
.ci-q > label,
.ci-q legend {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--text-main);
}

.ci-req { color: var(--onpar-orange); }

.ci-q {
  border: 0;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.ci-q legend { padding: 0; float: left; width: 100%; }
.ci-q legend + .ci-choices { clear: both; }

.ci-body .form-control {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.ci-body textarea.form-control { resize: vertical; min-height: 84px; }

.ci-body .form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--onpar-orange-glow);
  background: #fff;
}

.ci-choices { display: flex; flex-wrap: wrap; gap: 8px; }

.ci-choice { position: relative; cursor: pointer; }

.ci-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.ci-choice span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  background: var(--bg-card-subtle);
  transition: all 0.15s ease;
}

.ci-choice:hover span { border-color: var(--onpar-navy-light); }

.ci-choice input:checked + span {
  background: var(--onpar-navy);
  border-color: var(--onpar-navy);
  color: #fff;
}

.ci-choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--onpar-arc-blue-glow); }

.ci-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ci-submit { text-align: center; padding: 8px 0 0; }
.ci-submit .btn { min-width: 240px; }
.ci-error { color: var(--status-critical); font-weight: 600; min-height: 1em; margin: 0 0 12px; }
.ci-fine { font-size: 13px; color: var(--text-light); margin: 14px 0 0; }

.ci-done { text-align: center; padding: 40px 24px; }
.ci-done h2 { font-family: var(--font-serif); color: var(--onpar-navy); font-size: 28px; margin: 0 0 10px; }
.ci-done p { color: var(--text-muted); font-size: 16.5px; line-height: 1.6; margin: 0 0 24px; }

.ci-done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--status-success-bg);
  color: var(--status-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ci-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 24px 16px 40px;
}

.ci-footer a { color: inherit; }

@media (max-width: 600px) {
  .ci-grid { grid-template-columns: 1fr; }
  .ci-card { padding: 18px 16px; }
  .ci-brand img { height: 44px; }
  .ci-submit .btn { width: 100%; min-width: 0; }
}
