/* ── Google Fonts & Font Faces ── */
@font-face {
  font-family: "NewBlackTypeface";
  src: url("/static/fonts/NewBlackTypeface-Regular.woff2") format("woff2"),
       url("/static/fonts/NewBlackTypeface-Regular.woff") format("woff");
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: "NewBlackTypeface";
  src: url("/static/fonts/NewBlackTypeface-Bold.woff2") format("woff2"),
       url("/static/fonts/NewBlackTypeface-Bold.woff") format("woff");
  font-weight: bold; font-style: normal;
}
@font-face {
  font-family: "NewBlackTypeface";
  src: url("/static/fonts/NewBlackTypeface-SemiBold.woff2") format("woff2"),
       url("/static/fonts/NewBlackTypeface-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #90b109;
  --dark:  #31312F;
  --bg:    #F3F4EF;
  --white: #ffffff;
  --border: #e0ddd8;
  --muted:  #8a8a8a;
  --shadow: 0 4px 32px rgba(0,0,0,0.08);
  --danger: #ef4444;
}

html, body {
  height: 100%;
  margin: 0; padding: 0;
  font-family: "NewBlackTypeface", "DM Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg);
  color: #3d464d;
  scroll-behavior: smooth;
}

/* ── Top Heading Bar (exact match to main.html) ── */
.top-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.heading-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.heading {
  color: #90b109 !important;
  padding: 0;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -2px;
  word-spacing: -0.2em;
}


.heading_1 {
  font-size: 48px;
  font-weight: 600;
  color: rgb(0,0,0);
  letter-spacing: -2px;
  word-spacing: -0.2em;
  padding: 0;
}

.heading-gap {
  font-size: 48px;
  display: inline-block;
  width: 0.25em;
}

.heading-right {
  display: flex;
  align-items: center;
}

.heading-logo {
  max-height: 48px;
  height: auto;
  width: auto;
  object-fit: contain;
}
.heading-logo {
  max-height: 60px;
  filter: brightness(0) saturate(100%);
}

/* ── Main content ── */
.main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 40px 80px;
}

.desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;

}

/* ── Section cards ── */
.section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 16px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sec-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #eceee5;
  color: #31312f;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.sec-title { font-size: 14px; font-weight: 700; color: #000; }

/* ── Fields ── */
.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }

label.l {
  display: block;
  font-size: 12px; font-weight: 600;
  color: #3d464d;
  margin-bottom: 4px;
}

.req { color: var(--danger); }

input[type=text], input[type=url], textarea {
  width: 100%;
  font-size: 13px;
  color: #000;
  background: var(--bg);
  border: 1px solid #d0cec9;
  border-radius: 0px;
  padding: 10px 12px;
  font-family: "NewBlackTypeface", "DM Sans", sans-serif;
  outline: none;
  transition: border-color .2s;
}

input[type=text]:focus, input[type=url]:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(144,177,9,.12);
}

input.er, textarea.er { border-color: var(--danger) !important; }
textarea { min-height: 76px; resize: vertical; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Pill groups ── */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.pill {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid #d0cec9;
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}

.pill:hover { border-color: var(--green); }
.pill.on { background: #f1f1d9; border-color: var(--green); color: #31312f; font-weight: 600; }
.pill input { display: none; }

.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Error text ── */
.et { font-size: 11px; color: var(--danger); margin-top: 3px; display: none; }
.et.s { display: block; }

/* ── Submit button ── */
.btn-wrap { text-align: left; margin-top: 24px; }

.btn-primary {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid transparent;
  border-radius: 0px;
  font-size: 0.875rem; font-weight: 400;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  background: #31312F;
  color: white;
  font-family: "NewBlackTypeface", "DM Sans", sans-serif;
}

.btn-primary:hover { background: #222; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Toast ── */
.toast-msg {
  position: fixed;
  top: 32px; left: 50%;
  transform: translateX(-50%) translateY(-24px);
  background: #000; color: white;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px; font-weight: 500;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 9999;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-msg.ok { background: #31312f; }
.toast-msg.fl { background: var(--danger); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .top-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
  }
  .heading-left { flex: 1 1 auto; align-items: center; }
  .heading-right { flex: 0 0 auto; }
  .heading { font-size: 26px; }
  .heading_1 { font-size: 26px; }
  .heading-gap { font-size: 26px; }
  .heading-logo { max-height: 38px; }
  .main { padding: 16px 16px 80px; }
  .two { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; }
}

@media (max-width: 380px) {
  .heading { font-size: 20px; }
  .heading_1 { font-size: 20px; }
  .heading-gap { font-size: 20px; }
}
