/*
 * PortiQ – How to Buy PortiQ
 * All tokens reference style.css :root — no local overrides needed.
 *
 */


/* ── Global p-margin reset ──────────────────────────────────────────── */
/* WordPress injects margin-bottom:1em on every <p>; kills tight layouts */
.pq-step-label p,
.pq-step-num p,
.pq-detail-panel p,
.pq-reg-highlight p,
.pq-process-steps p,
.pq-proc-step p,
.pq-proc-num p,
.pq-info-box p,
.pq-handoff-row p,
.pq-handoff-what p,
.pq-notice p,
.pq-shortcut-link p,
p.pq-card-desc {
  margin: 0 !important;
  padding: 0 !important;
}


/* ══════════════════════════════════════════════════════════════════════
   STEP LABEL
   ══════════════════════════════════════════════════════════════════════ */
.pq-step-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-grey);
  margin-bottom: 10px !important;
}

.pq-step-num {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  border-radius: 50% !important;
  background: var(--secondary) !important;
  color: var(--white) !important;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1;
}
.pq-step-num p { color: var(--white) !important; font-size: 10px !important; font-weight: 700 !important; }


/* ══════════════════════════════════════════════════════════════════════
   PATH QUESTION
   ══════════════════════════════════════════════════════════════════════ */
.pq-path-question {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
}


/* ══════════════════════════════════════════════════════════════════════
   PATH CARDS GRID
   ══════════════════════════════════════════════════════════════════════ */
.pq-path-cards {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.pq-path-card {
  position: relative;
  padding: 18px 20px !important;
  background: var(--white);
  border: 1.5px solid var(--border) !important;
  border-radius: var(--border-radius-card) !important;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  width: auto !important;
}
.pq-path-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,112,233,.1);
}
.pq-path-card.selected-online {
  border-color: var(--primary) !important;
  background: var(--primary-50) !important;
}
.pq-path-card.selected-invoice {
  border-color: var(--grey-500) !important;
  background: var(--grey-50) !important;
}
.pq-path-card.selected-online  .pq-card-icon { background: var(--primary) !important; }
.pq-path-card.selected-invoice .pq-card-icon { background: var(--grey-500) !important; }
.pq-path-card.selected-online  .pq-card-icon img,
.pq-path-card.selected-invoice .pq-card-icon img { filter: brightness(0) invert(1); }

/* Check circle */
.pq-card-check {
  position: absolute !important;
  top: 14px !important; right: 14px !important;
  width: 20px !important; height: 20px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--border) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 11px !important;
  color: transparent !important;
  transition: all .15s;
  background: transparent;
  line-height: 1;
}
.pq-path-card.selected-online  .pq-card-check { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--white) !important; }
.pq-path-card.selected-invoice .pq-card-check { background: var(--grey-500)   !important; border-color: var(--grey-500)   !important; color: var(--white) !important; }

/* Icon box */
.pq-card-icon {
  width: 36px !important; height: 36px !important;
  min-width: 36px;
  border-radius: var(--border-radius) !important;
  background: var(--primary-50) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
  margin: 0 !important;
}
.pq-card-icon img,
.pq-card-icon figure,
.pq-card-icon .wp-block-image { width: 20px !important; height: 20px !important; margin: 0 !important; }

/* Icon + title row spacing */
.pq-path-card > .wp-block-group:first-of-type {
  margin-bottom: 10px !important;
  gap: 10px !important;
}

/* Title / desc / tags */
.pq-card-title { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important; line-height: 1.25 !important; }
.pq-card-desc  { font-size: 12px !important; color: var(--text-grey) !important; line-height: 1.55 !important; margin-bottom: 12px !important; }

.pq-card-tags  { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; }
.pq-tag {
  display: inline-block;
  font-size: 11px !important;
  font-weight: 500;
  padding: 3px 9px !important;
  border-radius: 100px !important;
  background: var(--primary-100) !important;
  color: var(--secondary) !important;
  line-height: 1.4;
}
.pq-tag.pq-tag-primary                { background: var(--primary) !important; color: var(--white) !important; }
.selected-invoice .pq-tag             { background: var(--grey-200) !important; color: var(--secondary) !important; }
.selected-invoice .pq-tag.pq-tag-primary { background: var(--grey-500) !important; color: var(--white) !important; }


/* ══════════════════════════════════════════════════════════════════════
   DETAIL PANELS
   ══════════════════════════════════════════════════════════════════════ */
.pq-detail-panel {
  display: none;
  padding: 22px 24px !important;
  border-radius: var(--border-radius-card) !important;
  margin-bottom: 20px;
  animation: pqFadeSlide .22s ease;
}
.pq-detail-panel.visible { display: block; }

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

.pq-panel-online  { background: var(--primary-50);}
.pq-panel-invoice { background: var(--grey-50);}

.pq-detail-panel .pq-step-label { margin-bottom: 16px !important; }


/* ══════════════════════════════════════════════════════════════════════
   REGISTRATION HIGHLIGHT
   ══════════════════════════════════════════════════════════════════════ */
.pq-reg-highlight {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 18px !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
}
.pq-reg-icon {
  flex-shrink: 0;
  width: 32px !important; height: 32px !important;
  min-width: 32px;
  border-radius: var(--border-radius) !important;
  background: var(--primary-50) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.pq-reg-icon img,
.pq-reg-icon figure,
.pq-reg-icon .wp-block-image { width: 20px !important; height: 20px !important; margin: 0 !important; filter: none !important; }

.pq-reg-title { font-size: 13px !important; font-weight: 700 !important; color: var(--text) !important; margin-bottom: 3px !important; }
.pq-reg-desc  { font-size: 12px !important; color: var(--text-grey) !important; line-height: 1.5 !important; margin-top: 4px !important; }


/* ══════════════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════════════ */
.pq-process-steps {
  position: relative;
  display: flex !important;
  gap: 0 !important;
  margin-bottom: 20px !important;
}
.pq-process-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 28px; right: 28px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.pq-proc-step {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2px;
}

.pq-proc-num {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important; height: 30px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: var(--white) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text-grey) !important;
  margin: 0 auto 6px !important;
  line-height: 1;
}
.pq-proc-num p { font-size: 11px !important; font-weight: 700 !important; color: inherit !important; }
.pq-proc-num.step-dark   { background: var(--secondary) !important; border-color: var(--secondary) !important; color: var(--white) !important; }
.pq-proc-num.step-dark p { color: var(--white) !important; }
.pq-proc-num.step-blue   { background: var(--primary)   !important; border-color: var(--primary)   !important; color: var(--white) !important; }
.pq-proc-num.step-blue p { color: var(--white) !important; }

.pq-proc-text { font-size: 10px !important; color: var(--text-grey) !important; line-height: 1.4; }


/* ══════════════════════════════════════════════════════════════════════
   INFO ROW
   ══════════════════════════════════════════════════════════════════════ */
.pq-info-row {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  flex-direction: row;
  align-items: stretch;
}
.pq-info-box {
  flex: 1;
  padding: 11px 14px !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
}
.pq-info-label {
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-grey) !important;
  margin-bottom: 3px !important;
}
.pq-info-value { font-size: 13px !important; font-weight: 700 !important; color: var(--text) !important; }
.pq-info-sub   { font-size: 11px !important; font-weight: 500; margin-top: 2px !important; }

.pq-info-sub-orange { color: var(--orange)   !important; }
.pq-info-sub-green  { color: var(--green) !important; }


/* ══════════════════════════════════════════════════════════════════════
   HANDOFF BOX
   ══════════════════════════════════════════════════════════════════════ */
.pq-handoff-box {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  margin-bottom: 14px !important;
}
.pq-handoff-row {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border) !important;
}
.pq-handoff-row:last-child { border-bottom: none !important; }

.pq-row-done { background: var(--primary-50) !important; border-bottom: none !important; }
.pq-row-done .pq-handoff-who,
.pq-row-done .pq-handoff-what,
.pq-row-done .pq-handoff-what strong,
.pq-row-done .pq-sub { color: var(--black) !important; }

.pq-handoff-who {
  flex-shrink: 0;
  width: 80px !important;
  padding-top: 1px;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pq-who-you  { color: var(--primary) !important; }
.pq-who-team { color: var(--grey-500)   !important; }

.pq-handoff-what        { font-size: 13px; color: var(--text); line-height: 1.5; border-left: 1px solid var(--border);   padding-left: 12px;}
.pq-handoff-what strong { color: var(--text) !important; font-weight: 600; display: block; margin-bottom: 1px !important; font-size: 13px !important; }
.pq-handoff-what .pq-sub,
.pq-sub { font-size: 11px !important;line-height: 1.5; }


/* ══════════════════════════════════════════════════════════════════════
   NOTICE BOXES
   ══════════════════════════════════════════════════════════════════════ */
.pq-notice {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px !important;
  border-radius: var(--border-radius) !important;
  font-size: 12px !important;
  line-height: 1.6;
  margin-bottom: 10px !important;
}
.pq-notice-icon,
.pq-notice > figure.wp-block-image {
  flex-shrink: 0 !important;
  width: 16px !important; height: 16px !important;
  min-width: 16px;
  margin: 2px 0 0 !important;
  font-size: 13px !important;
  line-height: 1;
}
.pq-notice > figure.wp-block-image img { width: 24px !important; height: fit-content !important; }
.pq-notice strong { font-weight: 600; }

.pq-notice-orange {
  background: var(--orange-50)  !important;
  color: var(--orange) !important;
}
.pq-notice-orange a { color: var(--orange) !important; font-weight: 600; font-size: 13px; height: fit-content; padding: 0 !important; text-decoration: underline;}

.pq-notice-gray {
  background: var(--white) !important;
  border: 1px solid var(--grey-200) !important;
  color: var(--text) !important;
}
.pq-notice-gray a { color: var(--primary) !important; font-weight: 600; font-size: 13px; height: fit-content; padding: 0 !important;}


/* ══════════════════════════════════════════════════════════════════════
   CTA BUTTONS
   ══════════════════════════════════════════════════════════════════════ */
.pq-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  padding: 13px 24px !important;
  border-radius: var(--border-radius) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s;
  margin: 4px 0 0 !important;
  letter-spacing: .01em;
}
.pq-btn-primary       { background: var(--primary) !important; color: var(--white) !important; }
.pq-btn-primary:hover { background: var(--primary-700) !important; color: var(--white) !important;}
.pq-btn-green         { background: var(--grey-500) !important; color: var(--white) !important; }
.pq-btn-green:hover   { background: #4F607A !important; color: var(--white) !important; }


/* ══════════════════════════════════════════════════════════════════════
   PRICE SHORTCUT LINK
   ══════════════════════════════════════════════════════════════════════ */
.pq-shortcut-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px !important;
  margin-bottom: 24px !important;
  background: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.pq-shortcut-link:hover    { border-color: var(--primary) !important; box-shadow: 0 2px 10px rgba(42,112,233,.07); }
.pq-shortcut-link-left     { display: flex !important; align-items: center; gap: 12px !important; }
.pq-shortcut-icon {
  flex-shrink: 0;
  width: 36px !important; height: 36px !important;
  border-radius: var(--border-radius) !important;
  background: var(--primary-50) !important;
  display: flex !important; align-items: center; justify-content: center;
}
.pq-shortcut-icon img { width: 18px !important; height: 18px !important; }
.pq-shortcut-title { font-size: 13px !important; font-weight: 600; color: var(--text) !important; }
.pq-shortcut-desc  { font-size: 11px !important; color: var(--text-grey) !important; font-weight: 500;}
.pq-shortcut-cta   { font-size: 12px !important; font-weight: 600; color: var(--primary) !important; white-space: nowrap; }

.pq-path-cards.wp-block-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-wrap: unset !important;
}

/* Ensure cards don't shrink/grow unexpectedly inside the grid */
.pq-path-cards > .wp-block-group {
  flex: unset !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pq-path-cards   { grid-template-columns: 1fr !important; }
  .pq-info-row     { flex-direction: column !important; }
  .pq-detail-panel { padding: 16px !important; }
}