.pfq-flow-root {
  max-width: 700px;
  margin: 0 auto;
  font-family: inherit;
  transition: max-width 0.2s ease;
}

/* When a comparison grid is showing, widen the whole questionnaire so all
   items fit across without horizontal scrolling. */
.pfq-flow-root.pfq-wide {
  max-width: 1100px;
}

.pfq-loading, .pfq-error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.pfq-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pfq-field-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.pfq-field-block:last-of-type {
  border-bottom: none;
}

.pfq-repeat-heading {
  font-weight: 700;
  font-size: 17px;
  margin: 28px 0 10px;
  color: #2c4a8c;
}
.pfq-repeat-heading:first-of-type {
  margin-top: 8px;
}

.pfq-grid-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
}
table.pfq-grid {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
table.pfq-grid th, table.pfq-grid td {
  border: 1px solid #e2e2e2;
  padding: 8px 10px;
  vertical-align: top;
}
.pfq-grid-corner {
  background: #fafafa;
}
.pfq-grid-col-head {
  background: #eef2fb;
  color: #2c4a8c;
  font-size: 14px;
  text-align: center;
}
.pfq-grid-subhead {
  background: #f5f7fb;
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  text-align: center;
}
.pfq-grid-row-label {
  font-weight: 600;
  background: #fafafa;
  width: 150px;
}
table.pfq-grid input[type="text"],
table.pfq-grid input[type="number"],
table.pfq-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}
.pfq-grid-extra-heading {
  font-weight: 600;
  margin: 8px 0 14px;
  color: #444;
}

.pfq-progress {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 12px;
}

.pfq-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
}

.pfq-body p {
  margin: 0 0 14px;
  line-height: 1.55;
  color: #333;
}

.pfq-repeat-label {
  display: inline-block;
  background: #eef2fb;
  color: #2c4a8c;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.pfq-field-label {
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 16px;
}

.pfq-inputs-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pfq-inputs-single {
  display: block;
  max-width: 420px;
}

.pfq-col-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  margin-bottom: 6px;
}

.pfq-col input[type="text"],
.pfq-col input[type="email"],
.pfq-col input[type="number"],
.pfq-col textarea,
.pfq-inputs-single input[type="text"],
.pfq-inputs-single input[type="email"],
.pfq-inputs-single input[type="number"],
.pfq-inputs-single textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

.pfq-dollar-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}
.pfq-dollar-sign {
  padding: 10px 8px 10px 12px;
  background: #f3f3f3;
  color: #666;
}
.pfq-dollar-wrap input {
  border: none !important;
  flex: 1;
}

.pfq-radio-group label,
.pfq-checkbox-group label {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  cursor: pointer;
}

.pfq-error-msg {
  color: #c00000;
  font-size: 13px;
  margin-top: 12px;
}

.pfq-results-btn {
  text-decoration: none;
  display: inline-block;
}
.pfq-results-note {
  color: #888;
  font-size: 13px;
  margin-top: 16px;
}

.pfq-learn-more {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.pfq-learn-more-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 6px;
}
.pfq-learn-more-link {
  display: block;
  color: #2c4a8c;
  text-decoration: underline;
  font-size: 14px;
  margin-bottom: 4px;
}
.pfq-learn-more-link:hover {
  color: #223a70;
}

.pfq-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.pfq-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
}

.pfq-btn-primary {
  background: #2c4a8c;
  color: #fff;
}
.pfq-btn-primary:hover { background: #223a70; }

.pfq-btn-secondary {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.pfq-btn-secondary:hover { background: #f5f5f5; }

@media (max-width: 560px) {
  .pfq-inputs-dual {
    grid-template-columns: 1fr;
  }
  .pfq-card {
    padding: 20px;
  }
}
