@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-SemiBold.woff") format("woff");
  font-weight: 600;
}

@font-face {
  font-family: "Gilroy";
  src: url("fonts/Gilroy-Bold.woff") format("woff");
  font-weight: 800;
}

:root {
  --blue-950: #07111f;
  --blue-900: #0a1628;
  --blue-800: #0a2463;
  --cyan-500: #00bcd4;
  --cyan-400: #26c6da;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --danger: #ef4444;
  --radius: 8px;
  --font: "Gilroy", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--blue-950);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(10, 36, 99, 0.70)),
    url("img/limpev-servico.webp") center / cover;
}

.quiz-shell {
  width: min(520px, 100%);
}

.brand-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.brand-bar img {
  width: 154px;
  height: auto;
}

.quiz-card {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  padding: 28px;
}

.quiz-heading {
  text-align: center;
}

.quiz-heading span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(0, 188, 212, 0.16);
  border: 1px solid rgba(0, 188, 212, 0.28);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quiz-heading h1 {
  margin: 14px 0 8px;
  color: var(--blue-900);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.quiz-heading p {
  margin: 0 0 22px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.45;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--gray-100);
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-800), var(--cyan-500));
  transition: width 220ms ease;
}

.question-card {
  min-height: 250px;
}

.question-card p {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.form-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-900);
  background: var(--white);
  padding: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.14);
}

.field-error {
  border-color: var(--danger);
}

.options-container {
  display: grid;
  gap: 10px;
}

.answer-btn,
.multi-answer-btn,
.cta-button,
.secondary-link {
  min-height: 50px;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.answer-btn,
.multi-answer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  background: var(--white);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-btn::after,
.multi-answer-btn::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.46;
  flex: 0 0 auto;
}

.multi-answer-btn::after {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: none;
}

.answer-btn:hover,
.multi-answer-btn:hover,
.multi-answer-btn.is-selected {
  transform: translateX(2px);
  border-color: var(--cyan-500);
  background: #f5fbff;
}

.multi-answer-btn.is-selected::after {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  box-shadow: inset 0 0 0 4px #f5fbff;
  opacity: 1;
}

.cta-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  color: var(--blue-900);
  background: var(--cyan-500);
  transition: transform 160ms ease, background 160ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: var(--cyan-400);
}

.back-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-weight: 800;
  cursor: pointer;
}

.inline-note {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.4;
}

.loading-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  color: var(--blue-800);
  font-weight: 800;
  text-align: center;
}

.result-card {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(7, 17, 31, 0.94);
  color: var(--white);
}

.result-card[hidden] {
  display: none;
}

.result-box {
  width: min(430px, 100%);
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
}

.result-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--blue-900);
  background: var(--cyan-500);
}

.result-icon svg {
  width: 42px;
  height: 42px;
}

.result-card h2 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 32px;
}

.result-card p {
  margin: 0 0 22px;
  color: var(--gray-500);
  line-height: 1.45;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  color: var(--blue-900);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.shake {
  animation: shake 360ms ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding: 22px 14px;
  }

  .brand-bar {
    margin-bottom: 16px;
  }

  .brand-bar img {
    width: 132px;
  }

  .quiz-card {
    padding: 22px;
  }

  .quiz-heading h1 {
    font-size: 29px;
  }

  .question-card p {
    font-size: 21px;
  }
}
