/* --- Themed “first-iteration” colors on today’s layout --- */
:root{
  --bg:#0b1b2e;           /* page background */
  --page:#101826;         /* card/section background */
  --ink:#f7fafc;          /* primary text */
  --muted:#b9c1cc;        /* secondary text */
  --bar:#14254400;          /* section headers: dark navy */
  --field:#0e1624;        /* input backgrounds */
  --field-focus:#1a66ff;  /* accent/focus */
  --grid-border:#2b3a4d;  /* subtle table borders */
}

.section-title{
  margin:0;
  padding:10px 0 12px 0;
  background:var(--bar);
  color:#81adff;
  font-size:2.05rem;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font:16px/1.4 system-ui,Segoe UI,Roboto,Arial;
  color:var(--ink);
  background:var(--bg);
}
.container{ max-width:960px; margin:0 auto; padding:16px; }
.paper-form{ background:var(--page); padding:0; }

/* Sections */
.section{ padding:12px 12px 16px; }

/* Grid */
.grid{
  display:grid;
  margin-top: 12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px; align-items:start;
}

/* Labels & inputs */
label, .group-label, .choices label{ font-weight:400; font-size:1rem; }
.grid > label{ display:flex; flex-direction:column; gap:6px; }

/* Inputs – dark themed, square, subtle border like v1 */
input, select{
  padding:.55rem .6rem;
  border:1px solid var(--grid-border);
  border-radius:0;
  background:var(--field);
  color:var(--ink);
  appearance:textfield;
}
input[type="date"]{ padding:.45rem .5rem; }
input:focus, select:focus{
  outline:2px solid var(--field-focus);
  border-color:transparent;
  background:var(--field); /* keep dark; outline supplies contrast */
}

.available-date {
    display: block;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 12px 0;
}
.checkbox input[type="checkbox"] {
  transform: scale(1.2);
}

/* Option groups (radio/checkbox rows) */
.options-row{
  display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; margin-top:12px;
}
.options-row .group{ display:flex; flex-direction:column; gap:6px; max-width:100%; }
.group-label{ white-space:nowrap; }
.choices{
  display:flex; gap:18px; align-items:center;
  padding:.45rem .5rem;
  background:var(--field);
  border:1px solid var(--grid-border);
  flex-wrap:nowrap; overflow-x:auto;
}

/* Position layout */
.position-grid{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; }
.position-grid > *{ flex:1 1 calc(50% - 12px); min-width:320px; }
@media (max-width:700px){ .position-grid > *{ flex-basis:100%; min-width:0; } }

/* TABLES (Education & References) */
.table-wrap{ width:100%; overflow-x:auto; }
.table{
  width:100%;
  border-collapse:separate; border-spacing:0;
  color:var(--ink);
}
.table thead th{
  position:sticky; top:0; z-index:1;
  background:var(--page);
  text-align:left; padding:6px 8px; font-weight:400;
  border-bottom:1px solid var(--grid-border);
}
.table thead th+th, .table tbody td+td{ border-left:1px solid var(--grid-border); }
.table tbody tr+tr td{ border-top:1px solid var(--grid-border); }
.table td{ padding:.45rem .5rem; background:transparent; }

/* Per-row inputs inside tables use dark field color (like v1) */
.table td input{
  background:var(--field);
  color:var(--ink);
  border:1px solid var(--grid-border);
  border-radius:0;
  padding:.45rem .5rem;
}
.table td input:focus{
  outline:2px solid var(--field-focus);
  border-color:transparent;
}

/* Employment history (kept boxed) */
.job{
  border:1px solid var(--grid-border);
  background:transparent;
  padding:.75rem; margin:.75rem 0;
}

/* Actions — align left with spacing; keep “outlined” look you liked */
.actions{
  margin:12px 0 24px;
  display:flex; 
  justify-content:flex-start; 
  gap:20px;
  flex-wrap: wrap;
}
.actions button,
.actions label.file-btn{
  padding:.7rem 1rem;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
  border-radius:0;
  background:#81adff;
  color:#000;
  border:1px solid #000;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; min-width:180px;
}
.actions label.file-btn:hover,
.actions button:hover{ background:#eee; }
.actions input[type="file"]{ display:none; }

.actions .primary {
  background:var(--field-focus);
  color:#fff;
  border-color:var(--field-focus);
}

.note {
  color: var(--muted);
  margin: .75rem 0 .75rem 2px;  /* more top margin than before */
  font-weight: 600;
}

/* Make the calendar icon white on dark background */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);   /* flips black to white */
  cursor: pointer;     /* keeps it clickable */
}

/* Honeypot */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; }

/* Responsive */
@media (max-width:900px){ .grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){
  .grid{ grid-template-columns:1fr; }
  .group-label{ white-space:normal; }
  .choices{ flex-wrap:wrap; gap:12px 18px; }
}

/* Print */
@media print{
  body{ background:#fff; color:#000; }
  .section-title{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .choices{ background:#fff; border-color:#000; }
}

