@import "style.css";

:root {
  --ink: #17233A;
  --ink-2: #4A5771;
  --ink-soft: #7C8AA0;
  --line: #D9DCD0;
  --paper: #EEF0E7;
  --panel: #FFFFFF;
  --gold: #17233A;
  /* --gold:#B5892E; */
  /* --gold-soft:#F1E3C3; */
  --gold-soft: #E8EFF9;
  --brick: #A2402F;
  --brick-soft: #F3DFD8;
  --forest: #3C6E52;
  --forest-soft: #DCEAE1;
  --radius: 14px;
  --shadow: 0 30px 60px -35px rgba(23, 35, 58, 0.35), 0 2px 6px rgba(23, 35, 58, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* background:
      radial-gradient(1200px 600px at 15% -10%, #F7F8F2 0%, transparent 60%),
      radial-gradient(1000px 700px at 110% 10%, #E6E9DC 0%, transparent 55%),
      var(--paper); */
  min-height: 100vh;
  /* font-family:'IBM Plex Sans', sans-serif; */
  font-family: Arial, sans-serif;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* padding:56px 20px 80px; */
}

.wrap {
  width: 100%;
  max-width: 620px;
}


.masthead {
  text-align: center;
  margin-bottom: 26px;
}

.eyebrow {
  /* font-family:'IBM Plex Mono', monospace; */
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-soft);
}

h1.title {
  /* font-family:'Fraunces', serif; */
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 38px);
  margin: 10px 0 8px;
  letter-spacing: -.01em;
}

.sub {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.sub b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Card ---------- */
.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E7E9DF;
  max-width: 900px;
  overflow: hidden;

  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  position: relative;
}

.stepper {
  display: grid;
  /* grid-template-columns: auto 1fr auto 1fr auto 1fr auto; */
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  row-gap: 10px;
  padding: 22px 28px 18px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.stepper::before,
.stepper::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-radius: 50%;
}

.stepper::before {
  left: -7px;
}

.stepper::after {
  right: -7px;
}

.step-dot {
  grid-row: 1;
  justify-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: var(--panel);
  transition: .25s ease;
}

.step-num {
  /* font-family:'IBM Plex Mono', monospace; */
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin: auto;
  transform: translateY(0.5px);
}

.step-dot svg {
  width: 11px;
  height: 11px;
  display: block;
}

.step-line {
  grid-row: 1;
  height: 2px;
  width: auto;
  background: var(--ink-soft);
  opacity: .35;
  transition: opacity .25s ease, background .25s ease;
}

.step-line.filled {
  background: var(--ink);
  opacity: 1;
}

.step-label {
  grid-row: 2;
  justify-self: center;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.step-dot.done {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.step-label.active {
  color: var(--ink);
}

.step-label.done {
  color: var(--ink-2);
}

/* ---------- Body ---------- */
.body {
  padding: 30px 30px 26px;
  min-height: 340px;
}

.step-title {
  /* font-family:'Fraunces', serif; */
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
}

.step-help {
  color: var(--ink-2);
  font-size: 13.5px;
  margin: 0 0 22px;
  line-height: 1.55;
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: .15s ease;
  background: #FCFCFA;
}

.type-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}

.type-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(181, 137, 46, .14);
}

.type-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  transition: .15s ease;
}

.type-icon svg {
  width: 24px;
  height: 24px;
}

.type-card.active .type-icon {
  background: #fff;
  color: var(--gold);
}

.type-name {
  font-weight: 600;
  font-size: 14.5px;
}

.type-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: -6px;
}

label.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 7px;
  letter-spacing: .01em;
}

label.field-label .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 18px;
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px 13px;
  /* font-family:'IBM Plex Sans', sans-serif; */
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #FCFCFA;
  transition: .15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 35, 58, .08);
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.charcount {
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  /* font-family:'IBM Plex Mono', monospace;  */
  font-family: Arial, sans-serif;
}

.charcount.limit {
  color: var(--brick);
}

.anon-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  cursor: pointer;
  background: #FCFCFA;
  transition: .15s ease;
}

.anon-box.on {
  border-color: var(--ink);
  background: var(--paper);
}

.anon-check {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-soft);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.anon-box.on .anon-check {
  background: var(--ink);
  border-color: var(--ink);
}

.anon-check svg {
  opacity: 0;
  width: 12px;
  height: 12px;
}

.anon-box.on .anon-check svg {
  opacity: 1;
}

.anon-title {
  font-weight: 600;
  font-size: 14px;
}

.anon-text {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.5;
}

/* .seal{
    position:absolute; top:24px; right:26px;
    width:64px; height:64px; border-radius:50%;
    border:2px solid var(--brick);
    color:var(--brick);
    display:flex; align-items:center; justify-content:center;
    text-align:center;
    font-family:'IBM Plex Mono', monospace;
    font-family: Arial, sans-serif;
    font-size:8.5px; font-weight:600; letter-spacing:.04em;
    transform:rotate(-14deg);
    opacity:.85;
    pointer-events:none;
    animation:pop .35s ease;
  } */
@keyframes pop {
  from {
    transform: rotate(-14deg) scale(.6);
    opacity: 0;
  }

  to {
    transform: rotate(-14deg) scale(1);
    opacity: .85;
  }
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #EEEFE8;
  font-size: 13.5px;
}

.review-row:last-of-type {
  border-bottom: none;
}

.review-k {
  color: var(--ink-2);
  flex-shrink: 0;
  width: 110px;
  font-weight: 600;
}

.review-v {
  color: var(--ink);
  text-align: right;
  line-height: 1.5;
  white-space: pre-wrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.tag.reclamacao {
  background: var(--brick-soft);
  color: var(--brick);
}

.tag.sugestao {
  background: #DEE8F2;
  color: #2E5C8A;
}

.tag.elogio {
  background: var(--forest-soft);
  color: var(--forest);
}

.tag.outro {
  background: var(--gold-soft);
  color: var(--gold);
}

.agree {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  cursor: pointer;
}

.agree-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-soft);
  flex-shrink: 0;
  margin-top: 2px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agree.on .agree-check {
  background: var(--forest);
  border-color: var(--forest);
}

.agree-check svg {
  opacity: 0;
  width: 11px;
  height: 11px;
}

.agree.on .agree-check svg {
  opacity: 1;
}

.agree-text {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px 26px;
  border-top: 1px solid #EEEFE8;
}

button {
  /* font-family:'IBM Plex Sans', sans-serif;  */
  font-family: Arial, sans-serif;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 12px 26px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #0F1930;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #C9CDC1;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  color: var(--ink);
}


.status {
  padding: 56px 34px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.status-icon.ok {
  background: var(--forest-soft);
  color: var(--forest);
}

.status-icon.err {
  background: var(--brick-soft);
  color: var(--brick);
}

.status-icon.loading {
  background: var(--paper);
  color: var(--ink);
}

.status h2 {
  /* font-family:'Fraunces', serif;  */
  font-family: Arial, sans-serif;
  font-size: 23px;
  margin: 0 0 8px;
}

.status p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.protocol {
  /* margin-top: 22px; */
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 16px 22px;
  background: var(--paper);
  position: relative;
  min-width: 230px;
}

.protocol-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.protocol-num {
  /* font-family:'IBM Plex Mono', monospace;  */
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  /* margin-top: 4px; */
  letter-spacing: .03em;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #E2E4DA;
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footnote {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 26px;
}

@media (max-width:480px) {
  .type-grid {
    grid-template-columns: 1fr;
  }

  .body {
    padding: 24px 20px;
  }

  .footer {
    padding: 16px 20px 22px;
  }

  .step-label {
    display: none;
  }

  .stepper {
    padding: 18px 20px 16px;
  }
}