/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

body {
  background: #fafafa;
  color: #0f172a;
}

/* APP */
.app {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
}

.header h1 span {
  color: #f59e0b;
}

.header p {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  gap: 14px;
}

.step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step small {
  position: absolute;
  top: 36px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.step.active {
  background: #f59e0b;
  color: #fff;
}

.line {
  width: 48px;
  height: 1px;
  background: #e5e7eb;
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* BOX PRINCIPAL */
.box {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.box h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* SERVIÇOS */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  background: #fafafa;
}

.service-card.active {
  border: 2px solid #f59e0b;
  background: #fffaf0;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.service-card p {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: #334155;
}

.meta strong {
  font-weight: 600;
}

/* BOTÕES */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

button {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#btn-voltar {
  background: #f1f5f9;
  color: #334155;
}

#btn-avancar {
  background: #f59e0b;
  color: #fff;
}

/* RESUMO */
.summary {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 22px;
}

.summary h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5f5;
  margin-bottom: 10px;
}

.summary-item strong {
  color: #ffffff;
  font-weight: 500;
}

.summary-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
}
/* ============================= */
/* RESPONSIVO */
/* ============================= */

/* TABLET */
@media (max-width: 900px) {

  .layout {
    grid-template-columns: 1fr;
  }

  .summary {
    order: -1;
    margin-bottom: 24px;
  }

  .stepper {
    gap: 10px;
  }

  .line {
    width: 32px;
  }
}

/* MOBILE */
@media (max-width: 600px) {

  .app {
    margin: 24px auto 60px;
    padding: 0 12px;
  }

  .header h1 {
    font-size: 24px;
  }

  .header p {
    font-size: 13px;
  }

  /* STEPPER */
  .stepper {
    gap: 6px;
  }

  .step {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step small {
    display: none; /* igual SaaS real no mobile */
  }

  .line {
    width: 22px;
  }

  /* CARD */
  .box {
    padding: 18px;
  }

  .box h2 {
    font-size: 16px;
  }

  /* SERVIÇOS */
  .service-card {
    padding: 14px;
  }

  .service-card h3 {
    font-size: 14px;
  }

  .service-card p {
    font-size: 12px;
  }

  .meta {
    font-size: 12px;
  }

  /* BOTÕES */
  .nav-buttons {
    flex-direction: column;
    gap: 12px;
  }

  #btn-voltar,
  #btn-avancar {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* RESUMO */
  .summary {
    padding: 18px;
  }

  .summary h3 {
    font-size: 14px;
  }

  .summary-item {
    font-size: 12px;
  }

  .summary-total {
    font-size: 15px;
  }
}
