/* ==========================================================================
   FORM C — FREE STAND APPLICATION (mbf-formc.css)
   Standalone form pages, same design language as mbf-home-v2.css
   ========================================================================== */
:root {
  --orange:      #EF7D00;
  --amber:       #F8AC00;
  --green:       #00622B;
  --green-deep:  #00622B;
  --orange-dark: #A45F00;
  --night:       #100E08;
  --night-2:     #1A1610;
  --gold:        #D4AF37;
  --gold-light:  #F7E7A3;
  --ink:         #191919;
  --line:        #E5E0D5;
  --text-muted:  #6B665C;
  --page-width:  960px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: #FAF7EF;
  line-height: 1.55;
}
.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 20px; }

/* header / footer -------------------------------------------------------- */
.top { background: var(--night); border-bottom: 4px solid var(--gold); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-weight: 600; font-size: 15px; }
.brand strong { color: var(--gold); }
.back { color: var(--gold-light); font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.foot { background: var(--night); color: rgba(255,255,255,.6); font-size: 13px; padding: 18px 0; margin-top: 60px; }

/* intro ------------------------------------------------------------------ */
.main { padding-top: 40px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); margin-bottom: 8px; }
.intro h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
.intro p { margin: 0 0 8px; color: var(--text-muted); max-width: 62ch; }
.intro .deadline { color: var(--ink); background: #FDF3DC; border-left: 4px solid var(--amber); padding: 10px 14px; display: inline-block; }

/* cards / sections -------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px; margin-top: 26px; }
.card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 20px; }
.card h2 span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-deep); color: #fff; font-size: 16px; font-weight: 800;
}
.note { color: var(--text-muted); font-size: 14px; }
.note.small { font-size: 13px; margin-top: 14px; }

/* fields ------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.field { margin-bottom: 16px; }
.field.wide { grid-column: 1 / -1; }
.field label, .field > label { display: inline-block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.req { color: #C0341D; font-weight: 700; margin-left: 2px; }
.f-input, .field input[type=text], .field input[type=email], .field input[type=number],
.field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #CFC8B8; border-radius: 4px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.f-error { color: #C0341D; font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.errors-top { background: #FDECEA; border-left: 4px solid #C0341D; padding: 12px 16px; margin-top: 22px; border-radius: 4px; }
.errors-top p { margin: 4px 0; color: #8E2413; font-weight: 600; font-size: 14px; }

/* radio / checkbox groups -------------------------------------------------- */
.choices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.choices.inline ul { display: flex; gap: 18px; flex-wrap: wrap; }
.choices label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 14.5px; }
.choices input { margin-top: 3px; accent-color: var(--green-deep); }
.choices.langs ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 14.5px; }
.check input { margin-top: 3px; accent-color: var(--green-deep); width: 17px; height: 17px; flex: none; }

/* conditional category panels ---------------------------------------------- */
.cat-panel { border: 1px solid var(--line); border-top: 5px solid var(--amber); border-radius: 6px; padding: 20px 22px; margin: 18px 0; background: #FFFDF7; }
.cat-panel h3 { margin: 0 0 14px; font-size: 17px; color: var(--green-deep); }
.docs { background: #FDF3DC; padding: 10px 14px; border-radius: 4px; font-size: 13.5px; margin: 14px 0 0; }

/* uploads ------------------------------------------------------------------- */
.upload-block { border-top: 1px dashed var(--line); padding-top: 18px; }
.file-list { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--text-muted); }

/* word counter over limit */
#word-now { color: var(--green-deep); }
.over, .over #word-now { color: #C0341D; }

/* declaration / submit ------------------------------------------------------- */
.declare { border: 1px solid var(--line); border-left: 5px solid var(--green-deep); background: #FAF7EF; padding: 16px 18px; border-radius: 4px; margin: 22px 0; }
.declare h3 { margin: 0 0 8px; font-size: 16px; }
.btn {
  display: inline-block; background: var(--orange); color: var(--night);
  font: inherit; font-weight: 700; padding: 13px 26px;
  border: none; border-radius: 4px; cursor: pointer; text-decoration: none;
  text-transform: uppercase; letter-spacing: .04em; font-size: 14px;
}
.btn:hover { background: var(--amber); }
.btn.ghost { background: transparent; border: 1px solid var(--green-deep); color: var(--green-deep); margin-left: 10px; }

/* closed / success ------------------------------------------------------------ */
.closed, .success { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--amber); border-radius: 6px; padding: 40px 36px; margin-top: 30px; text-align: center; }
.closed h2, .success h1 { margin: 0 0 12px; }
.closed p, .success p { color: var(--text-muted); max-width: 56ch; margin: 8px auto; }
.success .tick { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 32px; margin-bottom: 14px; }
.success .ref { font-size: 19px; color: var(--ink); background: #FDF3DC; display: inline-block; padding: 10px 18px; border-radius: 4px; }
.success .ref strong { color: var(--green-deep); letter-spacing: .06em; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
}
