/* ====== Tokens ====== */
:root{
  --dwdl-navy:#003366;
  --dwdl-green:#C7EA46;
  --bg:#0c1220;
  --panel:#111a2b;
  --panel-2:#172238;
  --text:#e8f0ff;
  --muted:#97a3b6;
  --line:#1f2a3d;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box; margin:0; padding:0}
html,body{height:100%}
body{
  font-family:'Mulish', system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

/* ====== Layout ====== */
.container{width:min(1000px,92%); margin:0 auto}
.section{padding:28px 0 40px}

/* ====== Header ====== */
.header{position:sticky; top:0; z-index:10; background:color-mix(in oklab, var(--bg) 88%, transparent); border-bottom:1px solid var(--line); backdrop-filter:saturate(140%) blur(6px)}
.header-flex{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0}
.logo-container{display:flex; align-items:center; gap:12px}
.logo-image{height:40px; width:40px; border-radius:10px; object-fit:cover; background:linear-gradient(145deg, var(--dwdl-navy), #001a33); box-shadow:var(--shadow)}
.brand-title{font-size:18px; margin:0}
.brand-sub{font-size:12px; color:var(--muted)}

/* ====== Buttons ====== */
.btn{display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid var(--line); background:linear-gradient(180deg, color-mix(in oklab, var(--panel) 80%, transparent), var(--panel)); cursor:pointer; box-shadow:var(--shadow); font-weight:700; color:var(--text); text-decoration:none}
.btn.small{padding:8px 12px; font-weight:600}
.btn.primary{background:linear-gradient(180deg, var(--dwdl-navy), #001a33); color:var(--dwdl-green); border-color:#001a33}
.btn.ghost{background:transparent}

/* ====== Titles ====== */
.title{font-size:24px; margin:0 0 8px}
.muted{color:var(--muted)}
.muted.tiny{font-size:12px}
.req{color:#ff7f7f}

/* ====== Form ====== */
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
  margin-top:16px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}
.field{display:flex; flex-direction:column; gap:6px}
.field label{font-weight:700; font-size:14px}
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--line);
  background:color-mix(in oklab, var(--panel) 85%, black 0%); color:var(--text); font-size:15px
}
.stack > * + * { margin-top:8px; }
.field textarea{min-height:110px; resize:vertical}
.span-2{grid-column:1 / -1}

.check label{display:flex; gap:10px; align-items:center; font-weight:600}

/* Upload */
.upload-wrap{display:flex; align-items:center; gap:10px; margin-top:6px}
progress{height:10px; width:180px}
progress::-webkit-progress-bar{background:var(--panel-2); border:1px solid var(--line); border-radius:10px}
progress::-webkit-progress-value{background:var(--dwdl-green); border-radius:10px}

/* ====== Message ====== */
.actions{display:flex; align-items:center; gap:12px}
.form-message{min-height:20px; font-weight:700}

/* ====== Footer ====== */
.footer{border-top:1px solid var(--line); color:var(--muted); padding:20px 0}
.foot-flex{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* ====== Fix checkbox separation ====== */
.field input[type="checkbox"]{
  width:auto; height:auto; padding:0; margin:0; flex:0 0 auto; accent-color:var(--dwdl-green);
}

/* ====== Responsive ====== */
@media (max-width: 720px){
  .form-grid{grid-template-columns: 1fr}
}
