.pq-front-root {
  --pq-bg: #f7f4ff;
  --pq-card: #ffffff;
  --pq-ink: #160b34;
  --pq-muted: #6f638d;
  --pq-line: #ded3ff;
  --pq-soft: #f2edff;
  --pq-purple: #2b1265;
  --pq-purple-strong: #361d8a;
  --pq-blue: #2f64e6;
  --pq-lavender: #efe9ff;
  --pq-green: #158b62;
  font-family: Inter, Arial, sans-serif;
}

.pq-front-root * {
  box-sizing: border-box;
}

.pq-app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px;
  color: var(--pq-ink);
  background:
    linear-gradient(90deg, rgba(238, 231, 255, .9), transparent 12%, transparent 88%, rgba(226, 236, 255, .95)),
    var(--pq-bg);
  position: relative;
}

.pq-hero-panel,
.pq-form-panel {
  border: 1px solid var(--pq-line);
  border-radius: 24px;
  background: var(--pq-card);
  box-shadow: 0 24px 70px rgba(48, 30, 100, .12);
}

.pq-hero-panel {
  padding: 34px;
  display: grid;
  gap: 28px;
  text-align: center;
}

.pq-brand-mark,
.pq-section-intro,
.pq-form-header,
.pq-nav-footer,
.pq-review-actions,
.pq-quote-top,
.pq-quote-business {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pq-brand-mark {
  justify-content: center;
}

.pq-brand-mark p,
.pq-brand-mark strong {
  margin: 0;
}

.pq-brand-mark p {
  color: var(--pq-muted);
  font-size: 13px;
}

.pq-brand-icon,
.pq-section-intro > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #e7ddff, #7c5cff 45%, #2f64e6 100%);
  box-shadow: 0 18px 36px rgba(47, 100, 230, .18);
  animation: pqIconFloat 3.5s ease-in-out infinite;
}

.pq-eyebrow {
  color: var(--pq-purple-strong);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.pq-hero-copy h1 {
  max-width: 680px;
  margin: 12px auto;
  color: var(--pq-ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.pq-hero-copy p,
.pq-form-header p,
.pq-section-intro p,
.pq-review-actions p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--pq-muted);
  line-height: 1.65;
}

.pq-summary-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--pq-line);
  border-radius: 18px;
  background: #fbfaff;
}

.pq-summary-card strong {
  display: block;
  color: var(--pq-purple);
  font-size: 34px;
}

.pq-form-panel {
  margin-top: 24px;
  padding: 28px;
}

.pq-form-header,
.pq-nav-footer,
.pq-review-actions,
.pq-quote-top,
.pq-quote-business {
  justify-content: space-between;
}

.pq-form-header {
  align-items: flex-start;
}

.pq-form-header h2 {
  margin: 6px 0 4px;
  color: var(--pq-ink);
  font-size: 30px;
}

.pq-progress-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pq-line);
  border-radius: 14px;
  background: var(--pq-soft);
  color: var(--pq-purple);
  font-weight: 800;
  line-height: 1.15;
  flex: 0 0 auto;
}

.pq-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.pq-step-dot,
.pq-primary-btn,
.pq-ghost-btn {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--pq-line);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}

.pq-step-dot {
  color: var(--pq-muted);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.pq-step-dot.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pq-purple), var(--pq-blue));
  box-shadow: 0 14px 28px rgba(47, 100, 230, .18);
}

.pq-step-dot:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(54, 29, 138, .12);
}

.pq-step-emoji {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--pq-lavender);
}

.pq-step-dot.active .pq-step-emoji {
  background: rgba(255, 255, 255, .18);
}

.pq-progress-track {
  height: 8px;
  margin: -10px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8ff;
}

.pq-progress-track span {
  width: 25%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pq-purple), var(--pq-blue));
  transition: width .42s cubic-bezier(.2, .8, .2, 1);
}

.pq-form-step {
  display: none;
  animation: pqSlideIn .32s ease both;
}

.pq-form-step.active {
  display: block;
}

.pq-input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pq-front-root label {
  display: grid;
  gap: 8px;
  color: var(--pq-muted);
  font-size: 13px;
  font-weight: 800;
}

.pq-front-root input[type="text"],
.pq-front-root input[type="tel"],
.pq-front-root input[type="email"] {
  width: 100%;
  height: 52px;
  color: var(--pq-ink);
  background: #fff;
  border: 1px solid var(--pq-line);
  border-radius: 14px;
  padding: 0 14px;
}

.pq-span-2 {
  grid-column: 1 / -1;
}

.pq-section-intro {
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.pq-section-intro h3,
.pq-review-actions h3 {
  margin: 0 0 4px;
  color: var(--pq-ink);
  font-size: 22px;
}

.pq-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pq-item-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--pq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(48, 30, 100, .08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  cursor: pointer;
}

.pq-item-card:hover,
.pq-item-card.selected {
  transform: translateY(-2px);
  border-color: #a895ff;
  box-shadow: 0 22px 48px rgba(47, 100, 230, .12);
}

.pq-item-card:hover {
  background: linear-gradient(180deg, #fff, #fbfaff);
}

.pq-item-card:active {
  transform: translateY(0) scale(.99);
}

.pq-item-card.locked {
  border-color: #c7b7ff;
  background: #fbfaff;
  cursor: default;
}

.pq-item-card input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: var(--pq-blue);
}

.pq-item-copy h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--pq-ink);
}

.pq-item-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(135deg, #f5efff, #e8e1ff);
  box-shadow: 0 16px 34px rgba(54, 29, 138, .14);
  animation: pqIconBounce 4s ease-in-out infinite;
}

.pq-svg-icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pq-item-icon svg,
.pq-item-icon span,
.pq-item-icon img,
.pq-step-dot svg,
.pq-primary-btn svg,
.pq-ghost-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.pq-item-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pq-item-copy p {
  margin: 8px 0 16px;
  color: var(--pq-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pq-item-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pq-price-pill {
  color: var(--pq-green);
  font-size: 18px;
  font-weight: 800;
}

.pq-selection-note {
  padding: 8px 10px;
  border: 1px solid var(--pq-line);
  border-radius: 10px;
  color: var(--pq-muted);
  font-size: 12px;
  font-weight: 800;
  background: #fbfaff;
}

.pq-primary-btn {
  color: white;
  border: 0;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--pq-purple), var(--pq-blue));
  box-shadow: 0 14px 26px rgba(47, 100, 230, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pq-ghost-btn {
  color: var(--pq-ink);
  padding: 0 18px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pq-primary-btn:hover,
.pq-ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 100, 230, .16);
}

.pq-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pq-review-tools {
  min-width: 260px;
  text-align: right;
}

.pq-send-status {
  margin: 10px 0 0;
  color: var(--pq-muted);
  font-size: 12px;
  font-weight: 700;
}

.pq-quotation {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #ece7fb;
  border-radius: 18px;
  color: #18151f;
  background: white;
  font-size: 14px;
}

.pq-quote-brand {
  margin: 0 0 8px;
  color: var(--pq-purple-strong);
  font-weight: 800;
}

.pq-quotation h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.pq-quotation p {
  margin: 0;
  color: #625a6e;
  line-height: 1.4;
}

.pq-quote-meta {
  min-width: 136px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f0fb;
  display: grid;
  gap: 4px;
}

.pq-quote-meta span,
.pq-quote-business span {
  color: #7c728c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pq-quote-business {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #e7e1ef;
  border-radius: 12px;
  align-items: flex-start;
}

.pq-table-wrap {
  overflow-x: auto;
}

.pq-quotation table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.pq-quotation th {
  padding: 10px;
  color: white;
  background: var(--pq-purple-strong);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
}

.pq-quotation td {
  padding: 9px 10px;
  border-bottom: 1px solid #eee8f6;
  color: #2b2534;
}

.pq-quotation td:not(:first-child),
.pq-quotation th:not(:first-child) {
  text-align: center;
}

.pq-quote-total {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-size: 18px;
}

.pq-quote-total strong {
  color: var(--pq-blue);
  font-size: 26px;
}

.pq-quote-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee8f6;
  text-align: center;
  font-size: 12px;
}

.pq-quote-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 8px;
  color: #625a6e;
}

.pq-generated {
  margin-top: 12px !important;
  color: var(--pq-blue) !important;
  font-size: 12px;
  font-weight: 700;
}

.pq-thankyou {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(34, 22, 73, .2);
  backdrop-filter: blur(10px);
}

.pq-thankyou.active {
  display: grid;
}

.pq-thankyou-card {
  width: min(430px, 100%);
  position: relative;
  padding: 34px;
  border: 1px solid var(--pq-line);
  border-radius: 22px;
  text-align: center;
  color: var(--pq-ink);
  background: white;
  box-shadow: 0 30px 90px rgba(48, 30, 100, .2);
  animation: pqPopIn .38s cubic-bezier(.2, .9, .2, 1.2) both;
  overflow: hidden;
}

.pq-thankyou-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pq-purple), var(--pq-blue));
}

.pq-thankyou-icon svg {
  width: 34px;
  height: 34px;
}

.pq-thankyou-card h3 {
  margin: 0 0 8px;
  color: var(--pq-ink);
  font-size: 30px;
}

.pq-thankyou-card p {
  margin: 0;
  color: var(--pq-muted);
  line-height: 1.55;
}

.pq-payment-link {
  min-height: 50px;
  margin: 18px auto 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pq-purple), var(--pq-blue));
  box-shadow: 0 14px 26px rgba(47, 100, 230, .24);
}

.pq-payment-link.is-loading {
  opacity: .72;
  cursor: progress;
  pointer-events: none;
  box-shadow: none;
}

.pq-payment-status {
  margin-top: 12px !important;
  font-size: 13px;
}

.pq-validation-message {
  margin: 14px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.pq-thankyou-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pq-line);
  border-radius: 10px;
  color: var(--pq-ink);
  background: #fff;
  cursor: pointer;
}

.pq-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pq-confetti i {
  position: absolute;
  top: -14px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: #2f64e6;
  animation: pqConfetti 1.6s ease-in-out infinite;
}

.pq-confetti i:nth-child(1) { left: 14%; background: #361d8a; animation-delay: .05s; }
.pq-confetti i:nth-child(2) { left: 28%; background: #64d2ff; animation-delay: .25s; }
.pq-confetti i:nth-child(3) { left: 44%; background: #2f64e6; animation-delay: .12s; }
.pq-confetti i:nth-child(4) { left: 61%; background: #c9b7ff; animation-delay: .34s; }
.pq-confetti i:nth-child(5) { left: 76%; background: #158b62; animation-delay: .18s; }
.pq-confetti i:nth-child(6) { left: 88%; background: #361d8a; animation-delay: .42s; }

.pq-whatsapp-support {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  min-height: 54px;
  padding: 0 16px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 18px 40px rgba(37, 211, 102, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pq-whatsapp-support:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 48px rgba(37, 211, 102, .34);
}

.pq-whatsapp-support span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #25d366;
  background: #fff;
  font-size: 20px;
}

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

@keyframes pqIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

@keyframes pqIconColor {
  0%, 100% { filter: hue-rotate(0deg) saturate(1); transform: translateY(0); }
  50% { filter: hue-rotate(18deg) saturate(1.25); transform: translateY(-2px); }
}

@keyframes pqIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-5px) rotate(-2deg); }
  65% { transform: translateY(-2px) rotate(2deg); }
}

@keyframes pqPopIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pqConfetti {
  0% { opacity: 0; transform: translateY(-10px) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(210px) rotate(260deg); }
}

@media (max-width: 940px) {
  .pq-app-shell {
    padding: 16px;
  }

  .pq-form-panel,
  .pq-hero-panel {
    padding: 22px;
  }

  .pq-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pq-review-tools,
  .pq-action-row {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .pq-app-shell {
    padding: 10px 10px 78px;
  }

  .pq-hero-panel,
  .pq-form-panel {
    border-radius: 18px;
    padding: 18px;
  }

  .pq-hero-copy h1 {
    font-size: 32px;
  }

  .pq-form-header,
  .pq-quote-top,
  .pq-quote-business,
  .pq-nav-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pq-progress-badge {
    width: auto;
    height: auto;
    min-height: 44px;
    align-self: flex-start;
    padding: 8px 14px;
  }

  .pq-stepper,
  .pq-input-grid,
  .pq-item-grid {
    grid-template-columns: 1fr;
  }

  .pq-span-2 {
    grid-column: auto;
  }

  .pq-step-dot {
    min-height: 48px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  .pq-item-card {
    grid-template-columns: 34px 1fr;
    padding: 14px;
  }

  .pq-item-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .pq-item-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .pq-action-row,
  .pq-nav-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pq-quotation {
    padding: 14px;
    font-size: 12px;
  }

  .pq-quote-meta {
    min-width: 0;
  }

  .pq-quotation table {
    min-width: 560px;
  }

  .pq-whatsapp-support {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
  }

  .pq-whatsapp-support strong {
    display: none;
  }
}
