:root {
  --brand: #004ea6;
  --brand-dark: #003c80;
  --ink: #1a1f2b;
  --muted: #6b7380;
  --placeholder: #8c949e;
  --isi: #4a4f59;
  --border-light: #d6e0ee;
  --border-input: #c9cfd6;
  --ribbon-bg: #f2f6fb;
  --confirm-bg: #f4f5f7;
  --error: #c0392b;
  --radius-input: 10px;
  --radius-btn: 5px;
  --content-max: 1200px;
  --side-pad: 120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

a { color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
}
.logo img { display: block; height: 41px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link--active { color: var(--brand); }

/* ---------- Main ---------- */
.main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 64px;
}

/* Partner ribbon */
.ribbon {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--ribbon-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 20px;
}
.ribbon__badge {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ribbon__text { margin: 0; font-size: 14px; color: var(--ink); }

/* Headline */
.h1-wrap { border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
h1 {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
}
.lede { margin: 0; font-size: 16px; color: var(--ink); }
.required-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Form ---------- */
form { display: flex; flex-direction: column; gap: 28px; }

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fieldset__title {
  color: var(--brand);
  font-weight: 700;
  font-size: 22px;
  padding: 0;
  margin-bottom: 0;
}

.row { display: flex; gap: 16px; }
.row--2 > .field { flex: 1 1 0; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}
.req { color: var(--brand); }
.field__hint { margin: 0; font-size: 12px; color: var(--muted); }

/* Uppy dashboard — match the form's inputs */
#uppy-dashboard { width: 100%; }
#uppy-dashboard .uppy-Dashboard-inner {
  width: 100% !important;
  max-width: 100%;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
}
.field.has-error #uppy-dashboard .uppy-Dashboard-inner { border-color: var(--error); }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c949e' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

::placeholder { color: var(--placeholder); opacity: 1; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 78, 166, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field__error {
  margin: 0;
  font-size: 12px;
  color: var(--error);
  min-height: 0;
  display: none;
}
.field.has-error .field__error { display: block; }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Confirmations */
.confirmations {
  background: var(--confirm-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.check-row.has-error span { color: var(--error); }
.isi { margin: 0; font-size: 12px; color: var(--isi); line-height: 1.5; }

/* Submit */
.submit-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-submit {
  font-family: inherit;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn-submit:hover { background: var(--brand-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-hint { margin: 0; font-size: 12px; color: var(--muted); }

.form-status {
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
}
.form-status--success { background: #e6f4ea; border: 1px solid #b7dfc4; color: #1e7e34; }
.form-status--error { background: #fdecea; border: 1px solid #f5c6c0; color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-light); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 37px; width: auto; }
.site-footer p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --side-pad: 24px; }
  h1 { font-size: 34px; }
  .header-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .row--2 { flex-direction: column; }
  .nav { gap: 20px; }
}
