* {
  --accent: #0056b3;
  --accent-2: #d62828;
  --text: #1a1a1a;
  --muted: #6b7280;
  --card-radius: 3px;
  --shadow: 0 20px 50px rgba(0, 40, 90, 0.12);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: radial-gradient(circle at top left, #eaf1ff 0%, #f6f9ff 45%, #fdf0f1 100%);
  color: var(--text);
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: 70px 1fr 44px;
  height: 100vh;
  height: 100dvh;
}

/* HEADER */
header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 100;
}

.logo {
  width: 110px;
  height: 46px;
  background: url("../img/logo.svg") no-repeat center;
  background-size: contain;
}

header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
header nav a:hover {
  color: var(--accent-2);
}

/* MAIN / CARD */
main {
  grid-area: main;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  min-height: 0;
}

.card {
  background: #fff;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-icon {
  width: 100%;
  max-width: 260px;
  height: 90px;
  margin: 0 auto 0px;
  background: url("../img/resultados.png") center center no-repeat;
  background-size: contain;
}

.card h2{
  font-size:20px;
  color:#0056b3;
  font-style:normal;
  font-weight:700;
  margin-bottom:12px;
}

.card p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 1.5;
}

.row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  text-align: left;
}
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
input {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}
input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
}
input:invalid:not(:placeholder-shown) {
  border-color: var(--accent-2);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  opacity: 0.9;
}
.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}
.ghost {
  background: transparent;
  border: 1.5px solid #e5e7eb;
  color: var(--muted);
}

/* FOOTER */
footer {
  grid-area: footer;
  text-align: center;
  color: #9aa1ab;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 10px 0;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow);
    border-radius: var(--card-radius);
  }
  .nav-links a {
    margin: 0;
    padding: 12px 20px;
  }
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }
  .hamburger {
    display: flex;
  }
  .card {
    max-width: 100%;
  }
}

/* Telas bem baixas (ex: celular em paisagem) */
@media (max-height: 560px) {
  .card-icon {
    display: none;
  }
  .card p {
    margin-bottom: 16px;
  }
  .row {
    margin-bottom: 10px;
  }
}