/* ============================================================
   Nextwave Events – Quote Builder  |  nweq-style.css v1.0.1
   ============================================================ */

/* ── Theme isolation reset ──────────────────────────────
   WordPress themes often apply background, color, letter-
   spacing and border-radius to all <button> elements.
   This block resets those inside our container so our own
   styles always win, even against theme !important rules.
   ──────────────────────────────────────────────────────── */
#nweq-app button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: inherit !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  outline: none !important;
}

/* Re-apply our own button styles AFTER the reset above */
#nweq-app .nweq-btn,
#nweq-app .nweq-type-btn,
#nweq-app .nweq-qty-btn,
#nweq-app .nweq-pkg-card {
  box-sizing: border-box !important;
}

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

#nweq-app {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 12px 40px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Progress indicator ─────────────────────────────── */

.nweq-progress {
  display: flex;
  justify-content: center;
  margin: 24px 0 30px;
  position: relative;
}
.nweq-progress::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.nweq-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.nweq-step-dot .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: background .3s, color .3s;
}
.nweq-step-dot.active .dot  { background: #0f172a; color: #fff; }
.nweq-step-dot.done   .dot  { background: #16a34a; color: #fff; font-size: 14px; }
.nweq-step-dot .dot-label {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
}
.nweq-step-dot.active .dot-label { color: #0f172a; font-weight: 600; }

/* ── Card ───────────────────────────────────────────── */

.nweq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nweq-card h2 {
  margin: 0 0 4px;
  font-size: 21px;
  color: #0f172a;
  font-weight: 700;
}
.nweq-card .nweq-subtitle {
  color: #64748b;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Event type grid ────────────────────────────────── */

.nweq-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 500px) {
  .nweq-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* All critical properties use !important to override any theme button styles */
#nweq-app .nweq-type-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 20px 10px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center !important;
  line-height: 1.3 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 90px !important;
  transition: border-color .2s, background .2s !important;
  box-shadow: none !important;
}
#nweq-app .nweq-type-btn .t-icon {
  font-size: 28px !important;
  line-height: 1 !important;
  display: block !important;
}
#nweq-app .nweq-type-btn:hover {
  border-color: #0f172a !important;
  background: #f8fafc !important;
}
#nweq-app .nweq-type-btn.selected {
  border-color: #0f172a !important;
  background: #f0f9ff !important;
  color: #0f172a !important;
}

/* ── Package grid ───────────────────────────────────── */

.nweq-pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .nweq-pkg-grid { grid-template-columns: repeat(2, 1fr); }
}
.nweq-pkg-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.nweq-pkg-card:hover    { border-color: #0f172a; }
.nweq-pkg-card.selected { border-color: #0f172a; background: #f8fafc; }
.nweq-pkg-card .pkg-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.nweq-pkg-card h3         { margin: 0 0 3px; font-size: 15px; color: #0f172a; }
.nweq-pkg-card .pkg-desc  { color: #64748b; font-size: 13px; margin: 0 0 10px; line-height: 1.4; }
.nweq-pkg-card .pkg-price { font-size: 24px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.nweq-pkg-card .pkg-price small { font-size: 13px; font-weight: 400; color: #94a3b8; }
.nweq-pkg-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: #475569; line-height: 1.75; }
.nweq-pkg-card.nweq-custom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
}
.nweq-pkg-card.nweq-custom-card .c-icon { font-size: 28px; }

/* ── Accordion categories ───────────────────────────── */

.nweq-cat-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 9px;
  overflow: hidden;
}
.nweq-cat-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.nweq-cat-hdr:hover { background: #f1f5f9; }
.nweq-cat-hdr .c-icon  { font-size: 18px; flex-shrink: 0; }
.nweq-cat-hdr .c-name  { font-weight: 600; font-size: 14px; flex: 1; color: #1e293b; }
.nweq-cat-hdr .c-count {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: none;
}
.nweq-cat-hdr .c-count.show { display: inline-block; }
.nweq-cat-hdr .c-chevron {
  color: #94a3b8;
  font-size: 11px;
  transition: transform .2s;
  flex-shrink: 0;
}
.nweq-cat-hdr.open .c-chevron { transform: rotate(180deg); }

.nweq-cat-body { display: none; padding: 4px 16px 14px; background: #fff; }
.nweq-cat-body.open { display: block; }

/* ── Item rows ──────────────────────────────────────── */

.nweq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.nweq-item:last-child { border-bottom: none; }

.nweq-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.nweq-item label {
  flex: 1;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}
.nweq-item .i-price {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}
.nweq-item select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nweq-item select:focus { outline: none; border-color: #0f172a; }

.nweq-qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#nweq-app .nweq-qty-btn {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  color: #334155 !important;
  transition: background .15s, color .15s, border-color .15s !important;
  padding: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  min-width: 0 !important;
}
#nweq-app .nweq-qty-btn:hover {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
}
.nweq-qty-val { font-size: 13px; font-weight: 700; min-width: 22px; text-align: center; color: #0f172a; }

.nweq-poa-tag {
  font-size: 11px;
  color: #d97706;
  font-weight: 700;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Running total bar ──────────────────────────────── */

.nweq-total-bar {
  position: sticky;
  bottom: 0;
  background: #0f172a;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.nweq-total-bar.visible  { display: flex; }
.nweq-total-bar .tb-left { display: flex; flex-direction: column; gap: 1px; }
.nweq-total-bar .tb-label { font-size: 11px; color: #94a3b8; font-weight: 400; }
.nweq-total-bar .tb-amount { font-size: 20px; font-weight: 700; }
.nweq-total-bar .tb-right { text-align: right; }

/* ── Contact form ───────────────────────────────────── */

.nweq-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 480px) {
  .nweq-form-grid.two { grid-template-columns: 1fr 1fr; }
}
.nweq-form-group { display: flex; flex-direction: column; gap: 5px; }
.nweq-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.nweq-form-group input,
.nweq-form-group textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  color: #1e293b;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.nweq-form-group input:focus,
.nweq-form-group textarea:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
.nweq-form-group textarea { resize: vertical; min-height: 90px; }

/* ── Quote summary table ────────────────────────────── */

.nweq-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.nweq-summary-table td { padding: 9px 4px; border-bottom: 1px solid #f1f5f9; }
.nweq-summary-table tr:last-child td { border-bottom: none; }
.nweq-summary-table .s-name  { color: #334155; }
.nweq-summary-table .s-price { text-align: right; font-weight: 700; white-space: nowrap; width: 100px; }

.nweq-totals-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
}
.nweq-totals-box .t-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: #475569;
}
.nweq-totals-box .t-row.bold { color: #1e293b; font-weight: 700; }
.nweq-total-final {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  border-top: 2px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 8px;
}
.nweq-deposit-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  text-align: right;
}

/* ── Customer detail summary chip ───────────────────── */

.nweq-contact-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.6;
}
.nweq-contact-chip strong { color: #0f172a; }

/* ── Buttons ────────────────────────────────────────── */

.nweq-btn-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
}
#nweq-app .nweq-btn {
  padding: 11px 22px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  transition: background .2s, border-color .2s, opacity .2s !important;
  font-family: inherit !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
}
#nweq-app .nweq-btn-primary {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
}
#nweq-app .nweq-btn-primary:hover:not(:disabled) {
  background: #1e293b !important;
  border-color: #1e293b !important;
}
#nweq-app .nweq-btn-primary:disabled { opacity: .55 !important; cursor: not-allowed !important; }
#nweq-app .nweq-btn-secondary {
  background: transparent !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}
#nweq-app .nweq-btn-secondary:hover {
  border-color: #94a3b8 !important;
  color: #334155 !important;
}

/* ── SMS note ───────────────────────────────────────── */

#nweq-app .nweq-sms-note {
  margin: 2px 0 16px !important;
  font-size: 13px !important;
  color: #475569 !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
}

/* ── Error notice ───────────────────────────────────── */

.nweq-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

/* ── POA notice ─────────────────────────────────────── */

.nweq-poa-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
}

/* ── Success screen ─────────────────────────────────── */

.nweq-success {
  text-align: center;
  padding: 48px 20px;
}
.nweq-success .s-tick  { font-size: 60px; margin-bottom: 16px; }
.nweq-success h2       { color: #0f172a; margin: 0 0 10px; font-size: 24px; }
.nweq-success p        { color: #64748b; max-width: 420px; margin: 0 auto 10px; font-size: 15px; line-height: 1.6; }
.nweq-success .s-phone { margin-top: 20px; font-size: 14px; color: #94a3b8; }
.nweq-success .s-phone strong { color: #0f172a; }

/* ── Empty-state notice ─────────────────────────────── */

.nweq-empty {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 8px;
}

/* ── Mobile: ≤ 479px ────────────────────────────────── */

@media (max-width: 479px) {

  /* Container */
  #nweq-app { padding: 0 8px 24px; }

  /* Progress bar – hide all labels, show only active step label */
  .nweq-progress { margin: 14px 0 20px; }
  .nweq-progress::before { left: 8%; right: 8%; top: 13px; }
  .nweq-step-dot .dot { width: 26px; height: 26px; font-size: 11px; }
  .nweq-step-dot .dot-label { display: none; }
  .nweq-step-dot.active .dot-label {
    display: block;
    font-size: 11px;
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
  }
  .nweq-step-dot { position: relative; }
  /* Extra margin below progress to make room for the active label */
  .nweq-progress { margin-bottom: 38px; }

  /* Card */
  .nweq-card { padding: 16px 12px 14px; border-radius: 10px; }
  .nweq-card h2 { font-size: 17px; line-height: 1.3; }
  .nweq-card .nweq-subtitle { font-size: 13px; margin-bottom: 16px; }

  /* Event type buttons */
  #nweq-app .nweq-type-btn { padding: 14px 8px !important; gap: 6px !important; font-size: 12px !important; border-radius: 10px !important; min-height: 80px !important; }
  #nweq-app .nweq-type-btn .t-icon { font-size: 22px !important; }

  /* Package cards */
  .nweq-pkg-card { padding: 16px 14px; }
  .nweq-pkg-card h3 { font-size: 14px; }
  .nweq-pkg-card .pkg-price { font-size: 20px; margin-bottom: 8px; }
  .nweq-pkg-card ul { font-size: 12px; line-height: 1.65; }

  /* Category accordion headers – min 44px touch target */
  .nweq-cat-hdr { padding: 12px 14px; min-height: 44px; }
  .nweq-cat-body { padding: 4px 10px 12px; }

  /* Item rows: wrap so controls don't squeeze the label */
  .nweq-item {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 8px;
    padding: 10px 0;
  }
  .nweq-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .nweq-item label { font-size: 13px; min-width: 0; }

  /* Dancefloor selects: push below label on its own indented line */
  .nweq-item select {
    flex-shrink: 1;
    flex-basis: calc(100% - 26px);
    width: calc(100% - 26px);
    margin-left: 26px;
    order: 10;
    font-size: 14px;
    padding: 7px 10px;
  }

  /* Price label: push right */
  .nweq-item .i-price { margin-left: auto; }

  /* Qty buttons: bigger touch targets */
  #nweq-app .nweq-qty-btn { width: 34px !important; height: 34px !important; font-size: 17px !important; }
  .nweq-qty-val { font-size: 14px; }

  /* Running total bar */
  .nweq-total-bar { padding: 10px 14px; border-radius: 8px; margin-top: 12px; }
  .nweq-total-bar .tb-amount { font-size: 16px; }
  .nweq-total-bar .tb-label  { font-size: 10px; }

  /* Contact form: 16px prevents iOS auto-zoom on focus */
  .nweq-form-group input,
  .nweq-form-group textarea { font-size: 16px; padding: 10px 11px; }

  /* Buttons: stack vertically, primary on top */
  .nweq-btn-row {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 18px;
  }
  #nweq-app .nweq-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Review summary */
  .nweq-total-final { font-size: 17px; }
  .nweq-summary-table { font-size: 13px; }
  .nweq-summary-table .s-price { width: 80px; font-size: 13px; }
  .nweq-totals-box { padding: 12px 14px; }
  .nweq-contact-chip { font-size: 12px; padding: 11px 12px; }
}

/* ── Tablet: 480px – 639px ──────────────────────────── */

@media (min-width: 480px) and (max-width: 639px) {
  /* Keep form two-column but give inputs 16px to avoid iOS zoom */
  .nweq-form-group input,
  .nweq-form-group textarea { font-size: 16px; }

  /* Stack buttons on slightly wider phones too if text is long */
  .nweq-btn-row { flex-wrap: wrap; }
  .nweq-btn-primary { flex: 1 1 200px; }
}
