@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&display=swap");

:root {
  --bg-0: #0a0a0a;
  --bg-1: #1a1a2e;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --ink: #f5f5f5;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --gold: #d4af37;
  --gold-soft: #fcd34d;
  --gold-dark: #b8941f;
  --danger: #ff6568;
  --success: #00c758;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Montserrat", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  color: var(--ink);
}

.card {
  width: 100%;
  max-width: 580px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}
/* Fio dourado no topo do card */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-soft), var(--gold), transparent);
}

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

/* Logo Kingdom College — réplica fiel do cabeçalho do site */
.brand-lock {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}
.brand-k {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 4px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.brand-lock:hover .brand-k { background: var(--gold); color: #0a0a0a; }
.brand-words { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand-kingdom {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.brand-college {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.hero p { margin: 0; color: var(--muted); font-size: .92rem; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .85rem; letter-spacing: .3px; }
.field input {
  width: 100%;
  padding: 13px 15px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
}
.field input::placeholder { color: #666; }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

.step + .step {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--gold);
  border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
}

.question {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.question h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; }

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--gold); }
.option input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }

.hint { margin: -8px 0 14px; color: var(--muted); font-size: .82rem; }

.class-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.class-name { font-size: .92rem; }

.yn { display: flex; gap: 8px; flex-shrink: 0; }
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  transition: border-color .15s;
}
.pill:hover { border-color: var(--gold); }
.pill input { accent-color: var(--gold); cursor: pointer; }

#submitBtn {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1300;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .5px;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
#submitBtn:hover { filter: brightness(1.07); }
#submitBtn:active { transform: translateY(1px); }
#submitBtn:disabled { opacity: .6; cursor: default; }

.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
}
.message.success { background: rgba(0, 199, 88, .12); color: var(--success); border: 1px solid rgba(0, 199, 88, .35); }
.message.error { background: rgba(255, 101, 104, .12); color: var(--danger); border: 1px solid rgba(255, 101, 104, .35); }
