:root {
  --blue: #1A5493;
  --green: #9fd14b;
  --red: #e4706b;
  --orange: #f1a647;
  --yellow: #f8c85a;
  --teal: #6bd2a8;
  --text-dark: #20384f;
  --text-muted: #6b7b85;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text-dark);
  background-image: url('imagem.png');
  background-size: 99%;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  height: 64px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
}

.header .logo img {
  max-height: 42px;
}

.brand {
  display: none;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  gap: 0;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  width: 100%;
}

.sector-banner {
  background: var(--blue);
  color: #fff;
  padding: 8px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(26, 84, 147, 0.16);
  align-self: center;
  display: inline-block;
  margin-bottom: -18px;
  position: relative;
  z-index: 10;
}

.page-title {
  text-align: center;
  margin-bottom: 12px;
}

.page-title h2 {
  margin: 0;
  font-size: 34px;
  color: var(--blue);
  font-weight: 700;
}

.page-title.hidden {
  display: none;
}

.card {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border-radius: 28px;
  padding: 46px 56px;
  box-shadow: 0 30px 80px rgba(9, 46, 73, 0.12);
  flex-shrink: 0;
  margin-top: 0;
}

.login-card {
  background: #ffffff;
  color: var(--text-dark);
}

.form-card {
  background: #ffffff;
  color: var(--text-dark);
}

h2 {
  margin: 0 0 8px 0;
  font-size: 34px;
  color: var(--blue);
  text-align: center;
  font-weight: 700;
}

h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  font-weight: 600;
}

.muted {
  color: var(--text-muted);
  margin: 0 0 16px 0;
  text-align: center;
  font-size: 14px;
}

.question {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(250, 250, 250, 0.9);
  color: var(--text-dark);
  font-size: 14px;
}

input[type="radio"] {
  display: none;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

#prevBtn {
  background: var(--text-muted);
  color: #fff;
  border: none;
}

#nextBtn {
  background: var(--blue);
  color: #fff;
  border: none;
}

#sendBtn {
  background: var(--green);
  color: #fff;
  border: none;
}

#editBtn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

#anotherBtn {
  background: var(--green);
  color: #fff;
  border: none;
}

#logoutBtn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}
 
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  justify-content: center;
}

.radios {
  display: flex;
  gap: 7px;
}

.note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.error {
  color: #ff6b6b;
  margin-top: 12px;
}

.hidden {
  display: none;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  z-index: 5;
}

.code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Stepper & map */
.stepper {
  padding: 8px 0;
}

.progress {
  height: 8px;
  background: #e6eef2;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 22px;
}

.progress-bar {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.28s;
  box-shadow: none;
}

.map-instruction {
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
}

.mapinha {
  background: transparent;
  padding: 20px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  width: 100%;
}

.map-header {
  display: none;
}

.map-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 0;
}

.map-row {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 14px;
}

.map-row.top-row {
  background: transparent;
  margin-bottom: 0;
}

.map-cell {
  flex: 0 1 auto;
  text-align: center;
  padding: 12px 18px;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  border-radius: 8px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-row.top-row .map-cell {
  background: transparent;
  border-radius: 8px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  min-width: 56px;
}

.map-row.top-row .map-cell:nth-child(1) {
  background: var(--red);
  color: #fff;
}

.map-row.top-row .map-cell:nth-child(2) {
  background: var(--orange);
  color: #fff;
}

.map-row.top-row .map-cell:nth-child(3) {
  background: var(--yellow);
  color: #fff;
}

.map-row.top-row .map-cell:nth-child(4) {
  background: var(--green);
  color: #fff;
}

.map-row.top-row .map-cell:nth-child(5) {
  background: var(--teal);
  color: #fff;
}

.desc-row {
  display: flex;
  gap: 14px;
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  justify-content: center;
}

.desc-row .map-cell {
  flex: 0 1 auto;
  padding: 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  background: transparent;
  min-width: auto;
  max-width: 100px;
  line-height: 1.4;
}

.step-radios {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 16px 0;
  flex-wrap: wrap;
}

.step-radios label {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f4f6f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8aa0ab;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 18px;
  margin: 0;
  padding: 0;
  transition: all 0.2s;
}

.step-radios label:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-radios input {
  display: none;
}

.step-radios label.selected {
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px rgba(159, 209, 75, 0.18);
}

/* Match selected circle color to reference scale */
.step-radios label.selected:nth-child(1) { background: var(--red); box-shadow: 0 10px 28px rgba(228, 112, 107, 0.25); }
.step-radios label.selected:nth-child(2) { background: var(--orange); box-shadow: 0 10px 28px rgba(241, 166, 71, 0.25); }
.step-radios label.selected:nth-child(3) { background: var(--yellow); box-shadow: 0 10px 28px rgba(248, 200, 90, 0.25); }
.step-radios label.selected:nth-child(4) { background: var(--green); box-shadow: 0 10px 28px rgba(159, 209, 75, 0.25); }
.step-radios label.selected:nth-child(5) { background: var(--teal); box-shadow: 0 10px 28px rgba(107, 210, 168, 0.25); }

.step-radios label span {
  display: inline-block;
  line-height: 1;
}

.step-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Final review: place Edit on the left and Enviar on the right */
#finalReview .row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#finalReview #editBtn { order: 1; }
#finalReview #sendBtn { order: 2; }

.step {
  margin-top: 12px;
}

#finalReview {
  margin-top: 12px;
}

#finalReview h3 {
  color: var(--text-dark);
}

#finalReview pre {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px;
  border-radius: 8px;
  color: var(--text-dark);
  overflow: auto;
}

.thankyou-card {
  text-align: center;
}

.thankyou-card h2 {
  color: var(--blue);
  text-align: center;
}

.thankyou-card .muted {
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 880px) {
  .card {
    padding: 28px 24px;
    max-width: 720px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .card {
    margin: 0 12px;
    padding: 20px;
  }

  .step-radios label {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }

  h2 {
    font-size: 24px;
  }
}

fieldset {
  border: none;
  padding: 0;
  margin: 12px 0;
}

legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

#sectorField label {
  display: flex;
  align-items: center;
  margin: 6px 0;
  font-weight: 400;
}

#sectorField label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#sectorField input[type="radio"] {
  display: inline-block;
  margin-right: 8px;
  width: auto;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(159, 209, 75, 0.12);
}

.login-card .btn {
  width: 100%;
  margin-top: 12px;
}

.welcome {
  font-weight: 600;
  color: var(--text-dark);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
