/* ===== Quote form ===== */
.quote-form { display: flex; flex-direction: column; gap: 24px; }
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.quote-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.quote-step {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.quote-card label, .company-name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}
.quote-card input[type="text"], .quote-card input[type="email"],
.quote-card input[type="tel"], .quote-card input[type="number"],
.quote-card select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
  background: #fff;
}
.quote-card input:focus, .quote-card select:focus { border-color: var(--accent); }

/* ===== Country picker (flags) ===== */
.geo-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.geo-picker { position: relative; }
.geo-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  cursor: pointer;
  text-align: start;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.geo-btn:hover { border-color: var(--accent); }
.geo-btn:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,47,69,.12); }
.geo-picker.open .geo-btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,47,69,.12); }
.geo-btn-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-btn-txt.geo-placeholder { color: #8a7f92; }
.geo-chev { color: #8a7f92; display: inline-flex; transition: transform .2s ease; flex-shrink: 0; }
.geo-picker.open .geo-chev { transform: rotate(180deg); }
.geo-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(24,17,28,.12);
  flex-shrink: 0;
}
.geo-btn-flag { display: inline-flex; width: 22px; height: 15px; flex-shrink: 0; }
.geo-flag-missing { display: none; }
.geo-pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  inset-inline: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(24,17,28,.16);
  overflow: hidden;
}
.geo-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  background: #faf8fb;
}
.geo-list { max-height: 264px; overflow-y: auto; padding: 6px; }
.geo-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--dark);
  cursor: pointer;
}
.geo-opt:hover, .geo-opt:focus { background: rgba(74,47,69,.07); outline: none; }
.geo-opt.geo-sel { background: rgba(113,75,103,.12); font-weight: 700; }
.geo-opt.geo-sel::after {
  content: "✓";
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 13px;
}
.geo-empty { padding: 16px; text-align: center; color: #8a7f92; font-size: 13px; }
#company-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.quote-hint { font-size: 14px; color: var(--muted); margin: -8px 0 20px; }
.quote-mod-grp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  margin: 18px 0 10px;
}
.grp-actions {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,17,28,.05);
}
.grp-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.grp-btn + .grp-btn { border-inline-start: 1px solid var(--border); }
.grp-btn:hover { background: var(--bg); color: var(--dark); }
.grp-btn-all { color: var(--accent); }
.grp-btn-all:hover { background: var(--light-icon-bg); color: var(--accent); }
.grp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.quote-mod-grp:first-of-type { margin-top: 0; }
.quote-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.mod-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  user-select: none;
}
.mod-tile input { position: absolute; opacity: 0; pointer-events: none; }
.mod-tile span { font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.mod-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.mod-tile.selected {
  border-color: var(--accent);
  background: var(--light-icon-bg);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.quote-radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.radio-pill:has(input:checked) { border-color: var(--accent); background: var(--light-icon-bg); }
.radio-pill input { accent-color: var(--accent); }
#custom-upload { margin-top: 16px; }
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.upload-box:hover { border-color: var(--accent); background: var(--light-icon-bg); }
.upload-box input[type="file"] { max-width: 100%; }
.upload-text { font-size: 13px; color: var(--muted); font-weight: 400; }
.quote-submit { align-self: center; padding: 16px 48px; font-size: 16px; }

/* Quote v2: checkbox lines, company rows, select-all actions */
.check-line {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-size: 14px !important;
  cursor: pointer;
  width: fit-content;
}
.check-line input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
#wa-field { display: block; }
#wa-field.hidden, #wa-field[hidden] { display: none; }
#wa-field span { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--dark); max-width: 320px; }

#company-rows { display: flex; flex-direction: column; gap: 16px; }
.co-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
.co-row-num {
  grid-column: 1 / -1;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.co-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--dark); }
.co-row label:nth-of-type(-n+2) { grid-column: span 2; }
.co-row input, .co-row select { width: 100%; min-width: 0; }
#quote-country { max-width: 100%; }
#quote-country option { font-family: inherit; }

@media (max-width: 820px) {
  .co-row { grid-template-columns: repeat(3, 1fr); }
  .co-row label:nth-of-type(-n+2) { grid-column: span 3; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .co-row label:nth-of-type(-n+2) { grid-column: span 2; }
}
@media (max-width: 400px) {
  .co-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .subscribe-inner { flex-direction: column; text-align: center; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row .btn { width: 100%; }
  .quote-card { padding: 20px; }
  .quote-modules { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
}

/* ===== Quote wizard (multi-step) ===== */
.qf-progress { margin-bottom: 6px; }
.qf-track { height: 6px; border-radius: 3px; background: #ece4ef; overflow: hidden; margin: 0 14px 16px; }
.qf-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #9b5e8c); border-radius: 3px; transition: width .35s ease; }
.qf-steps { list-style: none; display: flex; justify-content: space-between; gap: 6px; padding: 0; margin: 0 0 14px; }
.qf-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 700; color: #9c91a6; min-width: 0; }
.qf-dot { width: 32px; height: 32px; border-radius: 50%; background: #efe9f2; color: #7a6d84; border: 2px solid #e4dcea; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; transition: background .25s, border-color .25s, box-shadow .25s; flex-shrink: 0; }
.qf-step.is-active { color: var(--dark); }
.qf-step.is-active .qf-dot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(74, 47, 69, .14); }
.qf-step.is-done { color: #22683a; }
.qf-step.is-done .qf-dot { background: #e9f3ec; border-color: #8fc59d; color: transparent; position: relative; }
.qf-step.is-done .qf-dot::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #22683a; font-size: 15px; }
.qf-step .qf-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qf-pane[hidden] { display: none !important; }
.qf-pane.is-active { animation: qfIn .25s ease; }
@keyframes qfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qf-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.qf-nav .btn { min-width: 128px; }
.qf-back { background: #efe9f2; color: var(--dark); }
.qf-back:hover { background: #e3d8e8; color: var(--dark); }
.qf-req-err { color: #b03030; font-size: 12.5px; font-weight: 600; margin: 12px 0 0; }
.qf-search { margin: 4px 0 14px; }
.qf-search input { width: 100%; max-width: 440px; font: inherit; font-size: .9rem; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.qf-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 47, 69, .12); }
.qf-noresults { color: #8a7f92; font-size: .85rem; padding: 6px 2px 0; }
.qf-search-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qf-search-row .qf-search { flex: 1 1 240px; margin-bottom: 0; }
.qsel-count { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.qsel-count b { color: var(--accent); }

/* Category tabs (modules / integrations) */
.qtab-bar {
  display: flex;
  gap: 4px;
  margin: 4px 0 2px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.qtab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.qtab:hover { color: var(--dark); background: rgba(74, 47, 69, .07); }
.qtab.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(24, 17, 28, .10);
}
.qtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.qtab-n {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.qtab-pane { padding-top: 4px; }
.qtab-pane[hidden] { display: none; }
.qtab-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  margin: 12px 0 10px;
}
.quote-card.is-searching .qtab-pane { display: block; }
@media (max-width: 560px) {
  .qtab { padding: 7px 11px; font-size: .8rem; }
  .qtab-pane-head { margin-top: 8px; }
}
.qf-wizard input.invalid, .qf-wizard select.invalid { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
@media (max-width: 640px) {
  .qf-step .qf-lbl { display: none; }
  .qf-nav .btn { flex: 1; min-width: 0; }
}

