/* NFH RFQ Builder – rfq-builder.css */

#nfh-rfq-app {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

#nfh-rfq-app *, #nfh-rfq-app *::before, #nfh-rfq-app *::after {
  box-sizing: border-box;
}

/* ── Brand colors ── */
/* Navy: #1a3a5c  Orange: #C8622A  Orange-dark: #a34e20  Orange-light: #faeee6 */

.nfh-rfq-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid #1a3a5c; }
.nfh-rfq-header h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: #1a3a5c; }
.nfh-rfq-header p  { font-size: 15px; color: #666; margin: 0; }

/* Progress bar */
.nfh-progress-bar { display: flex; gap: 4px; margin-bottom: 2rem; }
.nfh-seg { flex: 1; height: 5px; border-radius: 3px; background: #e5e5e5; transition: background 0.3s; }
.nfh-seg.done   { background: #C8622A; }
.nfh-seg.active { background: #1a3a5c; }

/* Step labels */
.nfh-step-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.nfh-step-title { font-size: 20px; font-weight: 700; color: #1a3a5c; margin-bottom: 4px; }
.nfh-step-sub   { font-size: 14px; color: #666; margin-bottom: 1.5rem; }

/* Option buttons (service picker) */
.nfh-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}
.nfh-option-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: #222;
  transition: all 0.15s;
  line-height: 1.4;
}
.nfh-option-btn:hover { border-color: #aaa; background: #fafafa; }
.nfh-option-btn.selected { border: 2px solid #1a3a5c; background: #e8f0f8; color: #1a3a5c; }
.nfh-ob-icon  { font-size: 20px; margin-bottom: 8px; display: block; }
.nfh-ob-label { font-weight: 600; display: block; }
.nfh-ob-sub   { font-size: 11px; color: #999; margin-top: 2px; display: block; }
.nfh-option-btn.selected .nfh-ob-sub { color: #1e5799; }

/* Other / explain box */
.nfh-other-explain { margin-bottom: 1.5rem; }
.nfh-other-explain label { display: block; font-size: 12px; font-weight: 700; color: #C8622A; margin-bottom: 5px; }
.nfh-other-explain textarea {
  width: 100%; font-size: 13px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid #e8b99a;
  background: #faeee6; color: #111; resize: vertical; min-height: 72px; outline: none;
}
.nfh-other-explain textarea:focus { border-color: #C8622A; box-shadow: 0 0 0 3px rgba(200,98,42,0.12); }

/* Form fields */
.nfh-field-group { margin-bottom: 1.125rem; }
.nfh-field-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 5px; }
.nfh-field-group input,
.nfh-field-group select,
.nfh-field-group textarea {
  width: 100%;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
}
.nfh-field-group input:focus,
.nfh-field-group select:focus,
.nfh-field-group textarea:focus { border-color: #1a3a5c; box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.nfh-field-group textarea { resize: vertical; min-height: 80px; }

.nfh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .nfh-two-col { grid-template-columns: 1fr; } }

/* Checkbox / multi-select */
.nfh-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 6px;
  margin-bottom: 1rem;
}
.nfh-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #222;
  background: #fff;
  transition: all 0.15s;
  user-select: none;
}
.nfh-check-item:hover { border-color: #aaa; background: #fafafa; }
.nfh-check-item.checked { border-color: #1a3a5c; background: #e8f0f8; color: #1a3a5c; font-weight: 500; }
.nfh-check-item input[type="checkbox"] { display: none; }

/* Nav buttons */
.nfh-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
.nfh-btn-back {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
}
.nfh-btn-back:hover { background: #f5f5f5; }
.nfh-btn-next {
  background: #1a3a5c;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.nfh-btn-next:hover    { background: #0f2840; }
.nfh-btn-next:disabled { background: #ccc; cursor: not-allowed; }

/* Output / generated RFQ */
.nfh-success-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.nfh-success-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #faeee6; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #C8622A; flex-shrink: 0;
}
.nfh-success-title { font-size: 18px; font-weight: 700; color: #1a3a5c; margin: 0 0 2px; }
.nfh-success-date  { font-size: 13px; color: #888; margin: 0; }

.nfh-pills { margin-bottom: 1rem; }
.nfh-pill {
  display: inline-block; background: #faeee6; color: #a34e20;
  font-size: 11px; padding: 3px 10px; border-radius: 20px; margin: 2px; font-weight: 500;
}

.nfh-rfq-output {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.nfh-rfq-output h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: #1a3a5c; }
.nfh-rfq-output-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 2px solid #1a3a5c;
}
.nfh-rfq-meta { font-size: 12px; color: #888; margin: 0; }
.nfh-rfq-section { margin-bottom: 1.125rem; }
.nfh-rfq-section h4 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #888; margin: 0 0 5px;
  border-bottom: 1px solid #eee; padding-bottom: 3px;
}
.nfh-rfq-section p { font-size: 13px; color: #222; line-height: 1.7; margin: 0; }

/* Hero submit button */
.nfh-action-row-primary { margin-bottom: 10px; }
.nfh-btn-submit {
  display: block; width: 100%;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  border-radius: 8px; cursor: pointer; text-align: center;
  background: #C8622A; color: #fff; border: none;
  transition: background 0.15s; line-height: 1.3;
}
.nfh-btn-submit:hover    { background: #a34e20; }
.nfh-btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* Secondary action buttons */
.nfh-action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; margin-bottom: 0.5rem; }
.nfh-btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 12px; font-weight: 500;
  border-radius: 8px; cursor: pointer;
  border: 1px solid #ccc; background: #fff; color: #555;
  transition: background 0.15s;
}
.nfh-btn-action:hover { background: #f5f5f5; }

.nfh-submit-note { font-size: 12px; color: #888; margin-bottom: 1rem; line-height: 1.5; }
.nfh-submit-note.success { color: #2a7a4a; font-weight: 500; }

/* Toast */
.nfh-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1a3a5c; color: #fff; font-size: 13px;
  padding: 10px 20px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  z-index: 99999; white-space: nowrap;
}
.nfh-toast.show { opacity: 1; }
