.mpq-app,
.mpq-app * {
  box-sizing: border-box;
}

.mpq-app {
  --mpq-primary: #ffd84d;
  --mpq-ink: #111827;
  --mpq-muted: #64748b;
  --mpq-line: #dfe5ec;
  --mpq-soft: #f6f8fb;
  max-width: 1180px;
  margin: 28px auto;
  color: var(--mpq-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.mpq-app button,
.mpq-app input,
.mpq-app textarea,
.mpq-app select {
  font: inherit;
}

.mpq-app [hidden] {
  display: none !important;
}

.mpq-header {
  padding: 30px;
  border-radius: 20px;
  background: var(--mpq-ink);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

.mpq-header h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.15;
}

.mpq-header p {
  margin: 0;
  color: #cbd5e1;
}

.mpq-header .mpq-eyebrow {
  margin-bottom: 9px;
  color: var(--mpq-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mpq-progress {
  margin: 22px 0;
  padding: 0 4px;
}

.mpq-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf0;
}

.mpq-progress-bar span {
  display: block;
  width: 14.28%;
  height: 100%;
  border-radius: inherit;
  background: var(--mpq-primary);
  transition: width 0.25s ease;
}

.mpq-progress p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: var(--mpq-muted);
  font-size: 13px;
}

.mpq-progress strong {
  color: var(--mpq-ink);
}

.mpq-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.mpq-main,
.mpq-sidebar {
  border: 1px solid var(--mpq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.mpq-main {
  min-height: 550px;
  padding: clamp(22px, 4vw, 38px);
}

.mpq-sidebar {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.mpq-main h3,
.mpq-sidebar h3 {
  margin: 0;
  color: var(--mpq-ink);
  font-size: 24px;
  line-height: 1.25;
}

.mpq-main h4 {
  margin: 25px 0 12px;
  color: var(--mpq-ink);
  font-size: 17px;
}

.mpq-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #795f00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mpq-help {
  max-width: 700px;
  margin: 10px 0 22px;
  color: var(--mpq-muted);
}

.mpq-step {
  display: none;
  animation: mpq-fade-in 0.2s ease;
}

.mpq-step.is-active {
  display: block;
}

@keyframes mpq-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mpq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mpq-options-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mpq-option-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.mpq-option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mpq-option-content {
  display: block;
  height: 100%;
  min-height: 106px;
  padding: 15px;
  border: 2px solid var(--mpq-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mpq-option-card:hover .mpq-option-content {
  border-color: #aab4c1;
  transform: translateY(-1px);
}

.mpq-option-card input:focus-visible + .mpq-option-content {
  outline: 3px solid rgba(255, 216, 77, 0.4);
  outline-offset: 2px;
}

.mpq-option-card input:checked + .mpq-option-content {
  border-color: #b48c00;
  background: #fffaf0;
  box-shadow: 0 0 0 2px rgba(255, 216, 77, 0.35);
}

.mpq-option-card input:checked + .mpq-option-content::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--mpq-primary);
  color: #111;
  content: "✓";
  font-size: 14px;
  font-weight: 900;
}

.mpq-option-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 20px;
}

.mpq-option-heading strong {
  color: var(--mpq-ink);
  font-size: 15px;
  line-height: 1.3;
}

.mpq-option-price {
  color: #8a6d00;
  font-size: 14px;
  font-weight: 800;
}

.mpq-option-content small {
  display: block;
  margin-top: 8px;
  color: var(--mpq-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mpq-format {
  margin-top: 20px;
}

.mpq-format label,
.mpq-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--mpq-ink);
  font-size: 14px;
  font-weight: 700;
}

.mpq-format select,
.mpq-fields input,
.mpq-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: var(--mpq-ink);
  box-shadow: none;
}

.mpq-format select:focus,
.mpq-fields input:focus,
.mpq-fields textarea:focus {
  border-color: #9b7900;
  outline: 3px solid rgba(255, 216, 77, 0.28);
}

.mpq-included {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dce8d8;
  border-radius: 12px;
  background: #f5fbf2;
}

.mpq-included-title {
  margin: 0 0 10px;
  color: #315b29;
  font-size: 13px;
  font-weight: 800;
}

.mpq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpq-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #dfefda;
  color: #315b29;
  font-size: 13px;
  font-weight: 700;
}

.mpq-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mpq-field-full {
  grid-column: 1 / -1;
}

.mpq-fields textarea {
  min-height: 105px;
  resize: vertical;
}

.mpq-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--mpq-line);
}

.mpq-app .mpq-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 0;
  border-radius: 9px;
  background: var(--mpq-primary);
  color: #111 !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-text-fill-color: #111;
}

.mpq-app .mpq-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.mpq-app .mpq-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mpq-app .mpq-btn-secondary {
  border: 1px solid #cbd5e1;
  background: #eef2f6;
}

.mpq-app .mpq-btn-whatsapp {
  background: #25d366;
}

.mpq-sidebar h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.mpq-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f3;
  color: #475569;
  font-size: 13px;
}

.mpq-summary-row strong {
  flex-shrink: 0;
  color: var(--mpq-ink);
  text-align: right;
}

.mpq-total,
.mpq-one-time {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 11px;
  background: var(--mpq-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.mpq-one-time {
  margin-top: 8px;
  background: #eef2f6;
  color: var(--mpq-ink);
  font-size: 14px;
}

.mpq-empty {
  margin: 0;
  color: var(--mpq-muted);
  font-size: 13px;
}

.mpq-final-summary {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--mpq-line);
  border-radius: 14px;
}

.mpq-client-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
  padding: 17px;
  background: var(--mpq-soft);
  color: #475569;
  font-size: 13px;
}

.mpq-client-card strong {
  grid-column: 1 / -1;
  color: var(--mpq-ink);
  font-size: 16px;
}

.mpq-final-lines {
  padding: 8px 17px;
}

.mpq-summary-total,
.mpq-summary-grand-total {
  margin-top: 5px;
  color: var(--mpq-ink);
  font-size: 16px;
}

.mpq-summary-grand-total {
  color: #725900;
}

.mpq-final-included {
  padding: 13px 17px;
  border-top: 1px solid var(--mpq-line);
  background: #fffdf5;
}

.mpq-final-included p {
  margin: 3px 0;
  color: #475569;
  font-size: 12px;
}

.mpq-legal {
  margin: 14px 0;
  color: var(--mpq-muted);
  font-size: 12px;
}

.mpq-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mpq-feedback {
  min-height: 21px;
  margin: 9px 0 0;
  color: #315b29;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .mpq-shell {
    grid-template-columns: 1fr;
  }

  .mpq-sidebar {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .mpq-app {
    margin: 15px auto;
  }

  .mpq-header,
  .mpq-main,
  .mpq-sidebar {
    border-radius: 14px;
  }

  .mpq-header {
    padding: 22px;
  }

  .mpq-options,
  .mpq-options-plans,
  .mpq-fields,
  .mpq-share-actions {
    grid-template-columns: 1fr;
  }

  .mpq-option-content {
    min-height: auto;
  }

  .mpq-client-card {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .mpq-app.mpq-printing,
  .mpq-app.mpq-printing * {
    visibility: visible !important;
  }

  .mpq-app.mpq-printing {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    margin: 0;
    color: #000;
  }

  .mpq-app.mpq-printing .mpq-header {
    padding: 18px 0;
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  .mpq-app.mpq-printing .mpq-header h2,
  .mpq-app.mpq-printing .mpq-header p,
  .mpq-app.mpq-printing .mpq-header .mpq-eyebrow {
    color: #000;
  }

  .mpq-app.mpq-printing .mpq-progress,
  .mpq-app.mpq-printing .mpq-sidebar,
  .mpq-app.mpq-printing .mpq-navigation,
  .mpq-app.mpq-printing .mpq-share-actions,
  .mpq-app.mpq-printing .mpq-kicker,
  .mpq-app.mpq-printing .mpq-step:not([data-step="7"]) {
    display: none !important;
  }

  .mpq-app.mpq-printing .mpq-shell {
    display: block;
  }

  .mpq-app.mpq-printing .mpq-main {
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .mpq-app.mpq-printing .mpq-step[data-step="7"] {
    display: block !important;
  }
}
