/* =============================================
   Essons AI Concierge - Quote Builder Styles
   ============================================= */

.eac-qb {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}

.eac-qb-header {
  text-align: center;
  margin-bottom: 40px;
}

.eac-qb-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a2e;
}

.eac-qb-subtitle {
  color: #6c757d;
  font-size: 15px;
  margin: 0;
}

/* Step Indicator */
.eac-qb-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.eac-qb-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #adb5bd;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.eac-qb-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dee2e6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.eac-qb-step.active {
  color: #1a1a2e;
  background: #e8ecf1;
}

.eac-qb-step.active span {
  background: #e94560;
}

.eac-qb-step.completed {
  color: #2ecc71;
}

.eac-qb-step.completed span {
  background: #2ecc71;
}

/* Panels */
.eac-qb-panel {
  display: none;
}

.eac-qb-panel.active {
  display: block;
  animation: eacQbFadeIn 0.3s ease;
}

@keyframes eacQbFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eac-qb-panel h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
}

/* Category Accordion */
.eac-qb-category {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.eac-qb-category:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.eac-qb-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  background: #f8f9fa;
  user-select: none;
  transition: background 0.2s;
}

.eac-qb-cat-header:hover {
  background: #f0f2f5;
}

.eac-qb-cat-icon {
  font-size: 18px;
}

.eac-qb-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.3s;
  color: #adb5bd;
}

.eac-qb-category.open .eac-qb-arrow {
  transform: rotate(180deg);
}

.eac-qb-cat-body {
  padding: 4px 18px 14px;
}

/* Service Option */
.eac-qb-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.eac-qb-option:hover {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.eac-qb-option input[type="checkbox"],
.eac-qb-option input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #e94560;
  flex-shrink: 0;
}

.eac-qb-option div {
  flex: 1;
}

.eac-qb-option strong {
  font-size: 14px;
  display: block;
}

.eac-qb-option p {
  font-size: 12.5px;
  color: #6c757d;
  margin: 2px 0 0;
}

.eac-qb-price {
  font-size: 13px;
  font-weight: 600;
  color: #e94560;
  float: right;
}

.eac-qb-qty {
  margin-top: 6px;
}

.eac-qb-qty-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 13px;
}

.eac-qb-submenu {
  padding: 12px;
  border-top: 1px solid #f0f2f5;
  margin-top: 8px;
}

.eac-qb-submenu label {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

/* Form Fields */
.eac-qb-field {
  margin-bottom: 18px;
}

.eac-qb-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.eac-qb-input,
.eac-qb-select,
.eac-qb-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
  color: #1a1a2e;
  box-sizing: border-box;
}

.eac-qb-input:focus,
.eac-qb-select:focus,
.eac-qb-textarea:focus {
  border-color: #1a1a2e;
  outline: none;
}

.eac-qb-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Navigation */
.eac-qb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.eac-qb-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.eac-qb-next,
.eac-qb-submit {
  background: #1a1a2e;
  color: #fff;
}

.eac-qb-next:hover,
.eac-qb-submit:hover {
  background: #e94560;
}

.eac-qb-back {
  background: #f0f2f5;
  color: #1a1a2e;
}

.eac-qb-back:hover {
  background: #dee2e6;
}

/* Summary */
.eac-qb-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
}

.eac-qb-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted #dee2e6;
  font-size: 14px;
}

.eac-qb-summary-line:last-child {
  border-bottom: none;
}

.eac-qb-summary-label {
  flex: 1;
}

.eac-qb-summary-price {
  font-weight: 600;
  white-space: nowrap;
  margin-left: 16px;
}

.eac-qb-summary-section {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #dee2e6;
}

.eac-qb-summary-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.eac-qb-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 12px;
  border-top: 2px solid #1a1a2e;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.eac-qb-custom-note {
  color: #e94560;
  font-size: 12px;
  font-style: italic;
}

.eac-qb-disclaimer {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #5d4037;
}

.eac-qb-disclaimer strong {
  color: #e65100;
}

/* Success */
.eac-qb-success {
  text-align: center;
  padding: 40px 20px;
}

.eac-qb-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.eac-qb-success h3 {
  font-size: 24px;
  text-align: center;
}

.eac-qb-success p {
  color: #6c757d;
  max-width: 400px;
  margin: 0 auto 12px;
}

.eac-qb-ref {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
  .eac-qb {
    padding: 20px 12px;
  }

  .eac-qb-header h2 {
    font-size: 22px;
  }

  .eac-qb-steps {
    gap: 4px;
  }

  .eac-qb-step {
    font-size: 11px;
    padding: 6px 10px;
  }

  .eac-qb-nav {
    flex-direction: column;
  }

  .eac-qb-btn {
    width: 100%;
  }
}

/* Dark mode */
[data-theme="dark"] .eac-qb {
  color: #e0e0e0;
}

[data-theme="dark"] .eac-qb-header h2,
[data-theme="dark"] .eac-qb-panel h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .eac-qb-category {
  border-color: #3a3a4d;
}

[data-theme="dark"] .eac-qb-cat-header {
  background: #2a2a3d;
}

[data-theme="dark"] .eac-qb-option:hover {
  background: #2a2a3d;
}

[data-theme="dark"] .eac-qb-input,
[data-theme="dark"] .eac-qb-select,
[data-theme="dark"] .eac-qb-textarea {
  background: #2a2a3d;
  border-color: #3a3a4d;
  color: #e0e0e0;
}

[data-theme="dark"] .eac-qb-summary {
  background: #2a2a3d;
  border-color: #3a3a4d;
}
