:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --text: #1c2233;
  --muted: #5c6475;
  --line: #d9dbe1;
  --accent: #1e2a5a;
  --accent-text: #ffffff;
  --focus: #3a5bd9;
  --error-bg: #fdecec;
  --error-text: #8a1f1f;
  --ok-bg: #e9f5ee;
  --ok-text: #1d5b37;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --card: #1b1f2a;
    --text: #e8eaf0;
    --muted: #a3a9b8;
    --line: #343a4a;
    --accent: #8fa4ff;
    --accent-text: #10142a;
    --focus: #8fa4ff;
    --error-bg: #3a1d1f;
    --error-text: #ffb4b4;
    --ok-bg: #1a3326;
    --ok-text: #a6e3bd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 40px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.kartu {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.merek {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
h2 { margin: 0 0 8px; font-size: 20px; }
.intro { margin: 0 0 24px; color: var(--muted); }

.field { margin-bottom: 18px; }

label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

input[type="file"] { padding: 9px 10px; }

input:focus-visible,
button:focus-visible,
a:focus-visible,
.sukses:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.setuju {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 20px;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.setuju input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.setuju a { color: inherit; }

.pesan {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 15px;
}

button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: progress; }

.sukses {
  padding: 18px 16px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok-text);
}

.sukses p { margin: 0; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  body { padding: 16px; }
  .kartu { padding: 24px 18px; }
  h1 { font-size: 23px; }
}
