.quote-builder {
  --qb-bg: #fafafa;
  --qb-card: #ffffff;
  --qb-ink: #323232;
  --qb-muted: rgba(50, 50, 50, 0.7);
  --qb-border: rgba(50, 50, 50, 0.12);
  --qb-primary: #ef4341;
  --qb-primary-hover: #e03330;
  --qb-green: #2bc030;
  --qb-primary-soft: rgba(239, 67, 65, 0.1);
  --qb-radius: 16px;
  --qb-shadow-box: 0 0 20px 0 rgba(0, 0, 0, 0.05);
}

.quote-builder.section-page {
  padding: 50px 0 75px;
}

.quote-builder .qb-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.quote-builder .qb-left {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-builder .qb-right {
  width: 420px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1080px) {
  .quote-builder .qb-main {
    flex-direction: column;
  }

  .quote-builder .qb-right {
    width: 100%;
  }
}

.quote-builder .qb-shadow-box {
  background: var(--qb-card);
  border-radius: var(--qb-radius);
  box-shadow: var(--qb-shadow-box);
  padding: 24px;
}

.quote-builder .qb-section-header {
  margin-bottom: 18px;
}

.quote-builder .qb-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quote-builder .qb-section-caption {
  font-size: 15px;
  color: var(--qb-muted);
  max-width: 42em;
  line-height: 1.5;
}

.quote-builder .qb-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quote-builder .qb-chip {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--qb-ink);
  cursor: pointer;
  transition: all 0.4s ease;
  white-space: nowrap;
  font-family: inherit;
}

.quote-builder .qb-chip:hover {
  border-color: var(--qb-primary);
  color: var(--qb-primary);
}

.quote-builder .qb-chip.active {
  background: var(--qb-primary-soft);
  border-color: var(--qb-primary);
  color: var(--qb-primary);
  font-weight: 600;
}

.quote-builder .qb-chip.active::before {
  content: "✓ ";
}

.quote-builder .qb-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.quote-builder .qb-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-builder .qb-group-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.quote-builder .qb-group-title h3 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qb-primary);
  letter-spacing: 0.02em;
  margin-top: 2px;
  margin-bottom: 0px;
}

.quote-builder .qb-group-title .qb-count {
  border: 1px solid var(--qb-border);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--qb-muted);
}

.quote-builder .qb-svc {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 14px 16px;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.quote-builder .qb-svc.active {
  border-color: var(--qb-primary);
  box-shadow: var(--qb-shadow-box);
}

.quote-builder .qb-svc-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.quote-builder .qb-tog {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  transition: 0.4s ease;
  margin-top: 2px;
}

.quote-builder .qb-tog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.4s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quote-builder .qb-svc.active .qb-tog {
  background: var(--qb-primary);
}

.quote-builder .qb-svc.active .qb-tog::after {
  transform: translateX(20px);
}

.quote-builder .qb-svc-main {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.quote-builder .qb-svc.active .qb-svc-main {
  gap: 16px;
}

.quote-builder .qb-svc-name-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-builder .qb-svc-name {
  font-size: 16px;
  font-weight: 600;
}

.quote-builder .qb-price-tag {
  background: var(--qb-primary-soft);
  color: var(--qb-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

.quote-builder .qb-price-tag--free {
  background: rgba(43, 192, 48, 0.12);
  color: var(--qb-green);
}

.quote-builder .qb-blurb {
  color: var(--qb-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.quote-builder .qb-svc-body {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.quote-builder .qb-svc.active .qb-svc-body {
  display: flex;
}

.quote-builder .qb-fields {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.quote-builder .qb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-builder .qb-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--qb-ink);
}

.quote-builder .qb-input {
  background: var(--qb-bg);
  border: 1px solid var(--qb-bg);
  border-radius: 12px;
  padding: 0 12px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.4s ease;
}

.quote-builder .qb-input:focus-within {
  border-color: rgba(50, 50, 50, 0.2);
}

.quote-builder .qb-input input,
.quote-builder .qb-input select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--qb-ink);
  width: 100%;
  outline: none;
}

.quote-builder .qb-input input::-webkit-outer-spin-button,
.quote-builder .qb-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote-builder .qb-input input[type="number"] {
  -moz-appearance: textfield;
}

.quote-builder .qb-input select {
  cursor: pointer;
  appearance: none;
}

.quote-builder .qb-input.sel {
  position: relative;
  cursor: pointer;
}

.quote-builder .qb-input.sel select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 32px 0 12px;
  z-index: 1;
}

.quote-builder .qb-input .qb-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--qb-muted);
  white-space: nowrap;
}

.quote-builder .qb-input.w95 {
  width: 100px;
}

.quote-builder .qb-input.w130 {
  width: 140px;
}

.quote-builder .qb-input.w110 {
  width: 120px;
}

.quote-builder .qb-input.w131 {
  width: 140px;
}

.quote-builder .qb-input.w66 {
  width: 80px;
}

.quote-builder .qb-input.sel .qb-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--qb-muted);
  pointer-events: none;
  z-index: 0;
}

.quote-builder .qb-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding-top: 22px;
}

.quote-builder .qb-mini .qb-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--qb-border);
  display: grid;
  place-items: center;
  transition: 0.4s ease;
  background: #fff;
}

.quote-builder .qb-mini.on .qb-box {
  background: var(--qb-primary);
  border-color: var(--qb-primary);
}

.quote-builder .qb-mini .qb-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: 0.15s;
}

.quote-builder .qb-mini.on .qb-box svg {
  opacity: 1;
}

.quote-builder .qb-mini span {
  font-size: 14px;
  font-weight: 500;
}

.quote-builder .qb-alert {
  background: var(--qb-primary-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--qb-muted);
  line-height: 1.5;
}

.quote-builder .qb-alert b {
  color: var(--qb-ink);
  font-weight: 700;
}

.quote-builder .qb-tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-builder .qb-tier {
  background: #eee;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--qb-ink);
}

.quote-builder .qb-tier.hot {
  background: var(--qb-primary-soft);
  border-color: var(--qb-primary);
  color: var(--qb-primary);
}

.quote-builder .qb-tier.hot::before {
  content: "✓ ";
}

.quote-builder .qb-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 18px;
  align-self: flex-start;
  width: 100%;
}

@media (max-width: 1080px) {
  .quote-builder .qb-right {
    align-self: auto;
  }

  .quote-builder .qb-quote {
    position: static;
  }
}

.quote-builder .qb-quote h3 {
  font-size: 24px;
  font-weight: 700;
}

.quote-builder .qb-rule {
  height: 1px;
  background: rgba(50, 50, 50, 0.12);
  width: 100%;
}

.quote-builder .qb-q-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--qb-primary);
}

.quote-builder .qb-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-builder .qb-qline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  animation: qb-fade 0.2s ease;
}

@keyframes qb-fade {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
  }
}

.quote-builder .qb-qline .qb-qd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.quote-builder .qb-qline .qb-qname {
  font-size: 15px;
  font-weight: 500;
}

.quote-builder .qb-qline .qb-qmeta {
  font-size: 13px;
  color: var(--qb-muted);
}

.quote-builder .qb-qline .qb-qamt {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.quote-builder .qb-qline .qb-qamt.free {
  color: var(--qb-green);
}

.quote-builder .qb-qline .qb-qmeta .qb-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qb-primary);
  background: var(--qb-primary-soft);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.quote-builder .qb-q-empty {
  padding: 36px 0;
  text-align: center;
  color: var(--qb-muted);
}

.quote-builder .qb-q-empty b {
  display: block;
  color: var(--qb-ink);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quote-builder .qb-q-empty span {
  font-size: 14px;
}

.quote-builder .qb-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-builder .qb-trow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-builder .qb-trow .qb-tl {
  font-size: 14px;
  font-weight: 500;
  color: var(--qb-muted);
}

.quote-builder .qb-trow .qb-tv {
  font-size: 16px;
  font-weight: 600;
}

.quote-builder .qb-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.quote-builder .qb-grand .qb-gl {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.quote-builder .qb-grand .qb-gv {
  font-size: 42px;
  font-weight: 700;
  color: var(--qb-primary);
  line-height: 1;
}

.quote-builder .qb-grand .qb-gv .qb-per {
  font-size: 18px;
  font-weight: 600;
}

.quote-builder .qb-btn {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.quote-builder .qb-btn-primary {
  color: #fff;
  background-color: var(--qb-primary);
  border: 1px solid var(--qb-primary);
  border-radius: 14px;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.quote-builder .qb-btn-primary:hover {
  background-color: var(--qb-primary-hover);
  border-color: var(--qb-primary-hover);
  color: #fff;
}

.quote-builder .qb-btn-large {
  padding: 1.15em 2em;
  font-size: 18px;
  width: 100%;
}

.quote-builder .qb-q-note {
  font-size: 14px;
  color: var(--qb-muted);
  text-align: center;
  margin-top: -4px;
}
