/* ===== ACORDO — O Nosso Acordo ===== */

/* HERO */
.acordo-hero {
  background: linear-gradient(135deg, var(--lilas-soft) 0%, var(--pessego-soft) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.acordo-hero-inner { max-width: 600px; margin: 0 auto; }

.acordo-badge {
  display: inline-block;
  background: var(--lilas);
  color: var(--texto);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.acordo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--texto);
  margin-bottom: 1rem;
}
.acordo-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  color: var(--texto-suave);
  line-height: 1.6;
}

/* WRAP */
.acordo-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* STEPS BAR */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.s-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  background: #e8e0f4;
  color: var(--texto-suave);
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
}
.s-dot.active {
  background: var(--lilas-deep);
  color: #fff;
}
.s-dot.done {
  background: var(--lilas);
  color: var(--texto);
}
.s-line {
  flex: 1;
  height: 3px;
  background: #e8e0f4;
  max-width: 80px;
  transition: background 0.25s;
}
.s-line.done { background: var(--lilas); }

/* PANELS */
.panel { display: none; }
.panel.on { display: block; }

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--texto);
  margin-bottom: 0.5rem;
}
.panel-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* MEMBER INPUTS */
.mems { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.mem-row { display: flex; align-items: center; gap: 0.5rem; }
.mem-row input {
  flex: 1;
  border: 1.5px solid var(--lilas);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--texto);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.mem-row input:focus { border-color: var(--lilas-deep); }
.mem-rm {
  background: none;
  border: none;
  color: var(--texto-suave);
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mem-rm:hover { color: var(--texto); }

.btn-add-mem {
  background: none;
  border: 1.5px dashed var(--lilas);
  color: var(--lilas-deep);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.5rem;
}
.btn-add-mem:hover { background: var(--lilas-soft); border-color: var(--lilas-deep); }

/* PICK GRID */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.pick-card {
  border: 1.5px solid var(--lilas);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  background: #fff;
}
.pick-card:hover { border-color: var(--lilas-deep); background: var(--lilas-soft); transform: translateY(-2px); }
.pick-card.sel-p { background: var(--lilas-soft); border-color: var(--lilas-deep); }
.pick-card.sel-g { background: #e8f5e9; border-color: #4caf50; }

.pc-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--texto);
  margin: 0 0 0.25rem;
}
.pc-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin: 0;
  font-style: italic;
}

/* ERROR MSG */
.err-msg {
  display: none;
  color: #c0392b;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  margin: 0.2rem 0 1rem;
}

/* NAV ROW */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}
.btn-next {
  background: var(--lilas-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-next:hover { background: var(--texto); transform: translateY(-1px); }
.btn-back {
  background: transparent;
  color: var(--texto-suave);
  border: 1.5px solid var(--lilas);
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: var(--lilas-deep); color: var(--texto); }

/* RESULT CARD */
.result-card {
  background: #fff;
  border: 1.5px solid var(--lilas);
  border-radius: 20px;
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(155, 127, 204, 0.1);
}
.r-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilas-deep);
  margin-bottom: 1.5rem;
}
.r-section { margin-bottom: 1.2rem; }
.r-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-suave);
  margin-bottom: 0.5rem;
}
.r-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.r-pill-name {
  background: var(--lilas-soft);
  color: var(--lilas-deep);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.r-pill-tag {
  background: var(--pessego-soft);
  color: var(--texto);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.r-mission {
  background: var(--lilas-soft);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
.r-mission-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--texto);
  margin: 0.3rem 0 0.3rem;
}
.r-mission-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: var(--texto-suave);
  font-style: italic;
  margin: 0;
}
.r-footer {
  display: flex;
  justify-content: space-between;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: var(--texto-suave);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lilas);
}

/* PRINT ROW */
.print-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.btn-print {
  background: var(--lilas-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-print:hover { background: var(--texto); transform: translateY(-1px); }

/* NOTA */
.acordo-note {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: var(--texto-suave);
  padding: 1rem 1.5rem 3rem;
}
.acordo-note a { color: var(--lilas-deep); font-weight: 600; text-decoration: none; }
.acordo-note a:hover { text-decoration: underline; }

/* PRINT */
@media print {
  @page { margin: 1.5cm; size: A4 portrait; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  nav, .acordo-hero, .steps-bar, .panel-title, .panel-sub,
  .print-row, .acordo-note, footer { display: none !important; }

  body { background: #fff !important; }

  .acordo-wrap { padding: 0; max-width: 100%; }

  #p5 { display: block !important; }

  .result-card {
    border: 1.5px solid #C9B8E8 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 2rem !important;
    page-break-inside: avoid;
  }

  .r-logo { color: #6B4FA6 !important; }
  .r-label { color: #7A6585 !important; }

  .r-pill-name {
    background: #EDE6F8 !important;
    color: #6B4FA6 !important;
    border-radius: 999px !important;
    padding: 0.3rem 0.85rem !important;
    display: inline-block !important;
  }
  .r-pill-tag {
    background: #FDF0E8 !important;
    color: #3D2F4A !important;
    border-radius: 999px !important;
    padding: 0.3rem 0.85rem !important;
    display: inline-block !important;
  }
  .r-mission {
    background: #EDE6F8 !important;
    border-radius: 12px !important;
    padding: 1.2rem 1.4rem !important;
  }
  .r-mission-title { color: #3D2F4A !important; }
  .r-mission-hint  { color: #7A6585 !important; }
  .r-footer {
    border-top: 1px solid #C9B8E8 !important;
    color: #7A6585 !important;
    padding-top: 0.8rem !important;
    display: flex !important;
    justify-content: space-between !important;
  }
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .result-card { padding: 1.5rem 1.2rem; }
  .nav-row { flex-direction: column-reverse; }
  .btn-next, .btn-back { width: 100%; text-align: center; }
  .print-row { flex-direction: column-reverse; }
  .btn-print, .print-row .btn-back { width: 100%; text-align: center; }
}
