/* ASN Event Organiser Quote Builder */
/* Brand: Broadcast Black #0F0F12, Terracotta #FF3B1F, Warm Sand #E9D8C3,
   Burnt Clay #C64A2E, Sunset Amber #F4A261, Signal Red #FF0800.
   Fonts: Montserrat (900, headlines), Plus Jakarta Sans (body). */

#quote-builder {
  background: #0F0F12;
  border: 1px solid rgba(233,216,195,0.10);
  color: #E9D8C3;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  margin-top: 3rem;
}

#quote-builder .qb-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #F4A261;
  border-left: 3px solid #FF0800;
  padding-left: 12px;
  margin-bottom: 12px;
}

#quote-builder .qb-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3.5vw, 48px);
  color: #fff;
  margin-bottom: 8px;
}

#quote-builder .qb-lede {
  color: rgba(233,216,195,0.75);
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
}

#quote-builder .qb-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F4A261;
  color: #0F0F12;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
#quote-builder .qb-launch-btn:hover { background: #FF3B1F; color: #fff; }

/* ===== Layout ===== */
#qb-app { display: none; }
#qb-app.qb-active { display: block; }

/* ===== Quick Setup (compact yes/no strip inside the map column, below the map) ===== */
.qb-guided-setup {
  background: #121216;
  padding: 14px 16px;
  border-top: 1px solid rgba(233,216,195,0.1);
}
.qb-guided-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 7px 0;
}
.qb-guided-row + .qb-guided-row { border-top: 1px solid rgba(233,216,195,0.06); }
.qb-guided-subrow { padding-left: 14px; }
.qb-guided-label { font-size: 13px; font-weight: 600; color: #E9D8C3; }

.qb-guided-yn { display: flex; gap: 6px; flex-shrink: 0; }
.qb-guided-yn-btn {
  background: rgba(233,216,195,0.06); color: #E9D8C3; border: 1px solid rgba(233,216,195,0.15);
  padding: 5px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.qb-guided-yn-btn:hover { border-color: #F4A261; }
.qb-guided-yn-btn.qb-active { background: #F4A261; color: #0F0F12; border-color: #F4A261; }

.qb-guided-count-row { display: flex; gap: 6px; }
.qb-guided-count-btn {
  min-width: 34px; text-align: center; padding: 5px 10px;
  background: rgba(233,216,195,0.06); color: #E9D8C3; border: 1px solid rgba(233,216,195,0.15);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.qb-guided-count-btn:hover { border-color: #F4A261; }
.qb-guided-count-btn.qb-active { background: #F4A261; color: #0F0F12; border-color: #F4A261; }

.qb-grid {
  display: grid;
  grid-template-columns: 260px 1fr 56px;
  gap: 1px;
  background: rgba(233,216,195,0.10);
  border: 1px solid rgba(233,216,195,0.10);
  transition: grid-template-columns 0.2s ease;
}
.qb-grid.qb-quote-panel-open {
  grid-template-columns: 260px 1fr 340px;
}
@media (max-width: 1100px) {
  .qb-grid, .qb-grid.qb-quote-panel-open { grid-template-columns: 1fr; }
}

/* ===== Palette ===== */
.qb-palette {
  background: #121216;
  padding: 16px;
  max-height: 640px;
  overflow-y: auto;
}
.qb-palette h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #FF3B1F;
  margin: 18px 0 8px;
}
.qb-palette h4:first-child { margin-top: 0; }

.qb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 6px;
  background: #0F0F12;
  border: 1px solid rgba(233,216,195,0.08);
  cursor: grab;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.qb-item:hover, .qb-item.qb-selected { border-color: #F4A261; background: rgba(244,162,97,0.06); }
.qb-item:active { cursor: grabbing; }
.qb-item-icon {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  background: #C64A2E; border-radius: 4px; color: #fff;
}
.qb-item-icon svg { width: 18px; height: 18px; }
.qb-item-info { flex: 1; min-width: 0; }
.qb-item-name { font-weight: 700; color: #fff; font-size: 13px; }
.qb-item-rate { color: #F4A261; font-size: 12px; font-weight: 600; }
.qb-item-stepper {
  display: flex; align-items: center; gap: 6px;
}
.qb-item-stepper button {
  width: 24px; height: 24px; background: rgba(233,216,195,0.08); color: #fff;
  border: none; font-weight: 900; cursor: pointer; font-size: 14px; border-radius: 3px;
}
.qb-item-stepper button:hover { background: #FF3B1F; }
.qb-item-stepper span { min-width: 16px; text-align: center; font-weight: 700; color: #fff; font-size: 13px; }

/* ===== Map stage ===== */
.qb-mapstage { background: #000; position: relative; }
.qb-map-16x9 { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1a1a1e; }
#qb-map { position: absolute; inset: 0; }
.qb-map-search {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5;
  display: flex; gap: 8px;
}
.qb-map-search input {
  flex: 1; padding: 10px 14px; border: none; font-size: 13px;
  background: rgba(15,15,18,0.92); color: #fff; border: 1px solid rgba(244,162,97,0.4);
}
.qb-map-hint {
  position: absolute; bottom: 12px; left: 12px; z-index: 5;
  background: rgba(15,15,18,0.85); color: #E9D8C3; font-size: 11px;
  padding: 6px 12px; text-transform: uppercase; letter-spacing: 0.05em;
  border-left: 2px solid #F4A261;
}
.qb-mobile-tap-bar {
  display: none;
  padding: 10px 12px; background: #121216; border-top: 1px solid rgba(233,216,195,0.1);
  font-size: 12px; color: #F4A261; text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 700px) {
  .qb-mobile-tap-bar.qb-mobile-active { display: block; }
}

/* ===== Quote panel ===== */
/* Starts minimized: only the vertical qb-quote-tab shows until clicked.
   .qb-quote-expanded is toggled by JS to reveal the full panel; the
   sibling #qb-grid also gets .qb-quote-panel-open to widen its 3rd column
   (grid-template-columns can't be driven by flex-basis on a child alone). */
.qb-quote {
  background: #121216;
  display: flex;
  flex-direction: column;
  max-height: 640px;
  overflow: hidden;
  width: 100%;
}
.qb-quote.qb-quote-expanded {
  overflow-y: auto;
  padding: 18px;
}
@media (max-width: 1100px) {
  .qb-quote { width: 100%; }
}

.qb-quote-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 56px;
  height: 100%;
  min-height: 220px;
  padding: 18px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #F4A261;
}
.qb-quote.qb-quote-expanded .qb-quote-tab { display: none; }
.qb-quote-tab-icon { width: 18px; height: 18px; flex-shrink: 0; }
.qb-quote-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.qb-quote-tab-badge {
  background: #FF3B1F; color: #fff; font-size: 11px; font-weight: 900;
  border-radius: 999px; min-width: 20px; height: 20px; display: flex;
  align-items: center; justify-content: center; padding: 0 5px;
}

.qb-quote-inner { display: none; }
.qb-quote.qb-quote-expanded .qb-quote-inner { display: block; }

.qb-quote-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qb-quote-header h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 16px; color: #fff; margin-bottom: 0;
}
.qb-quote-collapse-btn {
  background: rgba(233,216,195,0.08); border: none; color: #F4A261;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 3px; flex-shrink: 0;
}
.qb-quote-collapse-btn:hover { background: #FF3B1F; color: #fff; }
.qb-quote-collapse-btn svg, .qb-quote-collapse-btn i { width: 16px; height: 16px; }
.qb-controls-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.qb-controls-row label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(233,216,195,0.6); display: block; margin-bottom: 4px; }
.qb-controls-row select, .qb-controls-row input[type=number] {
  background: #0F0F12; color: #fff; border: 1px solid rgba(233,216,195,0.15);
  padding: 8px 10px; font-size: 13px; width: 100%;
}
.qb-control-col { flex: 1; min-width: 110px; }

.qb-currency-toggle { display: flex; gap: 4px; margin-bottom: 14px; }
.qb-currency-toggle button {
  flex: 1; padding: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: rgba(233,216,195,0.06); color: rgba(233,216,195,0.6); border: none; cursor: pointer;
}
.qb-currency-toggle button.qb-active { background: #F4A261; color: #0F0F12; }
.qb-currency-toggle button.qb-disabled, .qb-currency-toggle button:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.qb-currency-toggle button.qb-disabled:hover, .qb-currency-toggle button:disabled:hover {
  background: rgba(233,216,195,0.06); color: rgba(233,216,195,0.6);
}

.qb-line-items { flex: 1; }
.qb-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(233,216,195,0.06); font-size: 12px; }
.qb-line-name { color: #fff; font-weight: 600; }
.qb-line-meta { color: rgba(233,216,195,0.5); font-size: 11px; }
.qb-line-total { color: #F4A261; font-weight: 700; white-space: nowrap; }
.qb-line-foc {
  display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em; color: #0F0F12;
  background: #F4A261; padding: 1px 6px; border-radius: 2px; vertical-align: middle;
}
.qb-empty-state { color: rgba(233,216,195,0.4); font-size: 12px; padding: 20px 0; text-align: center; }

.qb-subtotal-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; color: #E9D8C3; border-top: 1px solid rgba(233,216,195,0.15); margin-top: 8px; }
.qb-total-row { display: flex; justify-content: space-between; padding: 12px 0; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 18px; color: #fff; border-top: 2px solid #FF3B1F; }

.qb-disclaimer { font-size: 10px; color: rgba(233,216,195,0.4); line-height: 1.5; margin: 12px 0; }
.qb-disclaimer a { color: #F4A261; }
.qb-client-provides {
  font-size: 11px; color: #F4A261; font-weight: 600; line-height: 1.5;
  border-left: 2px solid #F4A261; padding-left: 10px; margin: 10px 0 0;
}

.qb-cta-btn {
  width: 100%; background: #FF3B1F; color: #fff; border: none; padding: 14px;
  font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 13px; cursor: pointer; margin-top: 6px;
}
.qb-cta-btn:hover { background: #C64A2E; }
.qb-cta-btn:disabled { background: rgba(233,216,195,0.1); color: rgba(233,216,195,0.3); cursor: not-allowed; }

/* ===== Lead form modal ===== */
.qb-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,15,18,0.9); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.qb-modal-overlay.qb-open { display: flex; }
.qb-modal {
  background: #121216; border: 1px solid rgba(244,162,97,0.3); max-width: 440px; width: 100%;
  padding: 28px; max-height: 90vh; overflow-y: auto;
}
.qb-modal h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase;
  color: #fff; font-size: 22px; margin-bottom: 6px;
}
.qb-modal p { color: rgba(233,216,195,0.6); font-size: 13px; margin-bottom: 18px; }
.qb-modal label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #F4A261; display: block; margin: 12px 0 4px; }
.qb-modal input {
  width: 100%; background: #0F0F12; border: 1px solid rgba(233,216,195,0.15); color: #fff;
  padding: 10px 12px; font-size: 13px;
}
.qb-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.qb-modal-actions button { flex: 1; padding: 12px; font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 12px; border: none; cursor: pointer; }
.qb-modal-cancel { background: transparent; color: rgba(233,216,195,0.6); border: 1px solid rgba(233,216,195,0.2) !important; }
.qb-modal-submit { background: #F4A261; color: #0F0F12; }
.qb-confirm-box { text-align: center; padding: 20px 0; }
.qb-confirm-box i { color: #F4A261; }
.qb-confirm-box h3 { margin-top: 12px; }
.qb-pdf-btn {
  margin-top: 16px; width: 100%; background: transparent; border: 1px solid #F4A261 !important;
  color: #F4A261; padding: 12px; font-family: 'Montserrat', sans-serif; font-weight: 900;
  text-transform: uppercase; font-size: 12px; cursor: pointer;
}

/* Marker popover */
.qb-popover { font-family: 'Plus Jakarta Sans', sans-serif; color: #0F0F12; font-size: 13px; min-width: 180px; }
.qb-popover strong { display: block; margin-bottom: 4px; }
.qb-popover .qb-pop-rate { color: #C64A2E; font-weight: 700; margin-bottom: 8px; }
.qb-popover button {
  background: #FF3B1F; color: #fff; border: none; padding: 6px 12px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; cursor: pointer;
}

@media print {
  body * { visibility: hidden; }
  #qb-print-area, #qb-print-area * { visibility: visible; }
  #qb-print-area { position: absolute; left: 0; top: 0; width: 100%; }
}
