:root {
  --ink: #14213d;        /* headings and input text */
  --ink-soft: #5b6472;   /* hints */
  --line: #cfd6e2;       /* field borders */
  --surface: #ffffff;
  --wash: #f3f6fa;       /* drop zone */
  --blue: #2f5fa8;       /* Omsum logo blue: buttons, focus */
  --blue-dark: #234a86;
  --green: #5e9e2f;      /* Omsum logo green: success only */
  --red: #b42318;
  --radius-field: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.panel {
  background: var(--surface);
  border: 1.5px solid #1f3a6b;   /* same thin dark-blue border as the job card */
  border-radius: 14px;
  padding: 28px 32px 32px;
  max-width: 100%;
}

.panel-head { margin-bottom: 22px; }

h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.job {
  margin: 6px 0 0;
  color: var(--blue);
  font-weight: 600;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.field { margin-bottom: 16px; }

label, .label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="text"], input:not([type]), input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

input[aria-invalid="true"] { border-color: var(--red); }

/* Resume drop zone */
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 12px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-field);
  background: var(--wash);
  text-align: center;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.drop.is-over { border-color: var(--blue); background: #e8eef8; }
.drop.has-file { border-style: solid; border-color: var(--green); background: #f1f8ec; }
.drop.is-invalid { border-color: var(--red); }

.drop-main { color: var(--ink); word-break: break-word; }
.drop-hint { color: var(--ink-soft); font-size: 0.82rem; font-weight: 400; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha:not(:empty) { margin: 4px 0 14px; }

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: #fdf1f0;
  color: var(--red);
  font-size: 0.9rem;
}

button {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--blue-dark); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button[disabled] { opacity: 0.65; cursor: progress; }

.done { border-left: 4px solid var(--green); padding: 4px 0 4px 16px; }
.done:focus { outline: none; }
.done h2 { margin: 0 0 6px; font-size: 1.2rem; }
.done p { margin: 0; }

/* Phones: one box per row */
@media (max-width: 560px) {
  .panel { padding: 22px 18px 24px; }
  .pair { grid-template-columns: 1fr; gap: 0; }
}
