/* ============================================================
   INTERACTIVE SOFTWARE & ERP ESTIMATOR (2 PATHS DYNAMIC WIZARD)
   Hamza Web Solution
============================================================ */

.erp-estimator-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--text, #e9eaf0);
}

/* Header & Path Switcher */
.erp-wizard-header {
  background: var(--panel, #111827);
  border: 1px solid var(--line-strong, #2e3a52);
  border-radius: 8px 8px 0 0;
  padding: 24px 28px;
  position: relative;
}
.erp-wizard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.erp-wizard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold, #c9a24b);
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
}
.erp-path-tabs {
  display: inline-flex;
  background: var(--ink, #0b0f19);
  border: 1px solid var(--line-strong, #2e3a52);
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
}
.erp-path-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-dim, #9aa3b8);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.erp-path-tab.active {
  background: var(--gold, #c9a24b);
  color: var(--ink-on-gold, #1a1406);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.35);
}

/* Progress bar & steps */
.erp-prog-bar-track {
  height: 6px;
  background: var(--ink, #0b0f19);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.erp-prog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold, #c9a24b), #e7ce8f);
  width: 10%;
  transition: width .3s ease;
  border-radius: 10px;
}
.erp-prog-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim, #9aa3b8);
}
.erp-prog-steps-row b {
  color: var(--gold, #c9a24b);
}

/* Wizard Body */
.erp-wizard-body {
  background: var(--panel-2, #161f30);
  border: 1px solid var(--line-strong, #2e3a52);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
  .erp-wizard-header, .erp-wizard-body { padding: 18px 16px; }
}

/* Step Panels */
.erp-step-panel {
  display: none;
}
.erp-step-panel.active {
  display: block;
  animation: erpFadeIn .25s ease-out;
}
@keyframes erpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.erp-step-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text, #e9eaf0);
  display: flex;
  align-items: center;
  gap: 10px;
}
.erp-step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold, #c9a24b);
  background: rgba(201, 162, 75, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}
.erp-step-subtitle {
  font-size: 14px;
  color: var(--text-dim, #9aa3b8);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Option Cards (Radios / Requirement items) */
.erp-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 500px) {
  .erp-opt-grid { grid-template-columns: 1fr; }
}
.erp-opt-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel, #111827);
  border: 1px solid var(--line-strong, #2e3a52);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.erp-opt-card:hover {
  border-color: var(--gold, #c9a24b);
  background: rgba(201, 162, 75, 0.04);
}
.erp-opt-card input[type="radio"],
.erp-opt-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong, #2e3a52);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: var(--ink, #0b0f19);
  transition: .2s;
}
.erp-opt-card input[type="checkbox"] {
  border-radius: 4px;
}
.erp-opt-card input[type="radio"]:checked,
.erp-opt-card input[type="checkbox"]:checked {
  border-color: var(--gold, #c9a24b);
  background: var(--gold, #c9a24b);
}
.erp-opt-card input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; width: 6px; height: 6px;
  background: var(--ink-on-gold, #1a1406);
  border-radius: 50%;
}
.erp-opt-card input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px; left: 3px;
  color: var(--ink-on-gold, #1a1406);
  font-size: 13px;
  font-weight: 800;
}
.erp-opt-card.selected {
  border-color: var(--gold, #c9a24b);
  background: rgba(201, 162, 75, 0.08);
}
.erp-opt-content {
  flex: 1;
}
.erp-opt-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #e9eaf0);
  margin-bottom: 2px;
}
.erp-opt-desc {
  display: block;
  font-size: 12px;
  color: var(--text-dim, #9aa3b8);
  line-height: 1.4;
}

/* Feature & Module Category Clusters */
.erp-module-cluster {
  background: var(--panel, #111827);
  border: 1px solid var(--line-strong, #2e3a52);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.erp-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line, #26304433);
  padding-bottom: 10px;
}
.erp-cluster-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold, #c9a24b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.erp-cluster-actions {
  display: flex;
  gap: 6px;
}
.erp-btn-micro {
  background: transparent;
  border: 1px solid var(--line-strong, #2e3a52);
  color: var(--text-dim, #9aa3b8);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: .15s;
}
.erp-btn-micro:hover {
  color: var(--text, #fff);
  border-color: var(--gold, #c9a24b);
}
.erp-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px;
}
.erp-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim, #9aa3b8);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: .15s;
}
.erp-check-label:hover {
  color: var(--text, #fff);
  background: rgba(255, 255, 255, 0.03);
}
.erp-check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold, #c9a24b);
  cursor: pointer;
}

/* Fields & Form Groups */
.erp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 680px) {
  .erp-form-grid { grid-template-columns: 1fr; }
}
.erp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.erp-field.full {
  grid-column: 1 / -1;
}
.erp-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e9eaf0);
}
.erp-field label span.req {
  color: #ef4444;
}
.erp-field input[type="text"],
.erp-field input[type="email"],
.erp-field input[type="tel"],
.erp-field input[type="date"],
.erp-field select,
.erp-field textarea {
  width: 100%;
  background: var(--ink, #0b0f19);
  border: 1px solid var(--line-strong, #2e3a52);
  border-radius: 5px;
  padding: 10px 14px;
  color: var(--text, #e9eaf0);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.erp-field input:focus,
.erp-field select:focus,
.erp-field textarea:focus {
  border-color: var(--gold, #c9a24b);
  box-shadow: 0 0 0 2px rgba(201, 162, 75, 0.2);
}

/* Live Summary Box */
.erp-summary-card {
  background: var(--ink, #0b0f19);
  border: 1px solid var(--gold, #c9a24b);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.erp-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong, #2e3a52);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.erp-summary-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold, #c9a24b);
}
.erp-summary-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
}
.erp-summary-key {
  width: 140px;
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim, #9aa3b8);
  font-weight: 600;
}
.erp-summary-val {
  color: var(--text, #fff);
  word-break: break-word;
}

/* Navigation Buttons Bar */
.erp-wizard-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #26304433);
  flex-wrap: wrap;
}
.erp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 1px solid transparent;
}
.erp-btn-gold {
  background: var(--gold, #c9a24b);
  color: var(--ink-on-gold, #1a1406);
  border-color: var(--gold, #c9a24b);
}
.erp-btn-gold:hover {
  background: var(--gold-soft, #e7ce8f);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35);
}
.erp-btn-ghost {
  background: var(--panel, #111827);
  color: var(--text-dim, #9aa3b8);
  border-color: var(--line-strong, #2e3a52);
}
.erp-btn-ghost:hover {
  color: var(--text, #fff);
  border-color: var(--gold, #c9a24b);
}
.erp-btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.erp-btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

/* Success Confirmation Screen */
.erp-success-box {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.erp-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(37, 211, 102, 0.15);
  border: 2px solid #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #25D366;
}
.erp-success-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text, #fff);
}
.erp-success-p {
  font-size: 15px;
  color: var(--text-dim, #9aa3b8);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
