:root{
  --primary:#0f172a;
  --primary2:#1e293b;
  --accent:#d4af37;
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#334155;
  --muted:#64748b;

  --danger-bg:#fef2f2;
  --danger:#991b1b;

  --warn-bg:#fffbeb;
  --warn:#92400e;

  --ok:#15803d;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

.container{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden{ display:none !important; }

header{
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 18px;
}

.navlinks{
  display:flex;
  align-items:center;
  gap: 16px;
  font-size: 13px;
}

.navlinks a{
  color: #e2e8f0;
  text-decoration: none;
}
.navlinks a:hover{ text-decoration: underline; }

.badge{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color:#e2e8f0;
  font-size: 12px;
}

.hero{
  text-align:center;
  padding: 54px 0 30px;
}

.hero h1{
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  font-size: 44px;
  line-height: 1.1;
}

.hero p{
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
}

.section{
  padding: 30px 0 70px;
}

.card{
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 12px;
  border-top: 5px solid var(--accent);
  box-shadow: 0 20px 30px rgba(0,0,0,0.10);
  padding: 34px;
}

.card h2, .card h3{
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 10px;
  color: var(--primary);
}

.small{
  font-size: 13px;
  color: var(--muted);
}

.form-intro{
  text-align:center;
  margin-bottom: 14px;
}

.form-group{ margin: 16px 0; }

label{
  display:block;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

input, textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

input:focus, textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}

.turnstile{
  margin: 18px 0 10px;
  display:flex;
  justify-content:center;
}

.btn{
  width:100%;
  border:0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 700;
  background: var(--primary);
  color:#fff;
  cursor:pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover{ background: var(--primary2); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn:disabled{ background:#94a3b8; cursor:not-allowed; transform:none; }

.alert{
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin: 14px 0;
  border-left: 4px solid;
}

.alert-danger{
  background: var(--danger-bg);
  color: var(--danger);
  border-left-color: #ef4444;
}

.alert-warn{
  background: var(--warn-bg);
  color: var(--warn);
  border-left-color: #f59e0b;
}

.alert a{ color: inherit; font-weight: 700; }

.success{
  text-align:center;
  padding: 10px 0;
}

.success-badge{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: #dcfce7;
  color: var(--ok);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 34px;
  font-weight: 900;
}

.success .btn-secondary{
  width:auto;
  padding: 10px 18px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.footer{
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid #e2e8f0;
  background:#fff;
  padding: 26px 0;
}

@media (max-width: 640px){
  .hero h1{ font-size: 34px; }
  .card{ padding: 22px; }
  .nav{ flex-wrap: wrap; justify-content:center; }
}
