:root {
  --navy: #15171b;
  --navy-hover: #2c2f36;
  --gold: #ac8f5e;
  --gold-lt: #d2c6b1;
  --cream: #f1e6d0;
  --text: #15171b;
  --border: #d2c6b1;
  --error: #9b1c1c;
  --success: #1b5e20;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

header {
  background: var(--navy);
  color: #fff3de;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

header .header-inner {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

header .header-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

header p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

header .header-nav {
  margin-top: 0.35rem;
}

header a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
}

header a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  header {
    padding: 1.35rem 1rem 1.25rem;
  }

  header .header-logo {
    width: min(220px, 78vw);
    max-height: 130px;
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

.card h2 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: normal;
}

.lead {
  margin: 0 0 1.25rem;
  color: #555;
  line-height: 1.5;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.alert-error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: var(--error);
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: var(--success);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 0.5rem;
}

legend {
  padding: 0 0.4rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem 1rem;
}

.full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  margin-bottom: 0.65rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(26, 39, 68, 0.25);
  border-color: var(--navy);
}

textarea { min-height: 4.5rem; resize: vertical; }

.yn {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.yn label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  margin: 0;
}

.yn input { width: auto; margin: 0; }

.disclaimer {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #444;
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.9rem 1rem;
  max-height: 14rem;
  overflow-y: auto;
  margin-bottom: 0.85rem;
}

.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.check-row input { width: auto; margin-top: 0.2rem; }
.check-row label { font-weight: 500; margin: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

button[type="submit"] {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--navy-hover); }

.btn-secondary {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
}

.req { color: #b00020; }

/* Dropzone — resume upload (matches sales PO look, careers palette) */
.resume-dropzone.dropzone,
.dropzone.resume-dropzone {
  min-height: 140px;
  border: 2px dashed var(--navy);
  background: #faf8f5;
  padding: 1.25rem;
  text-align: center;
  border-radius: 4px;
  color: #444;
  margin-bottom: 0.5rem;
}

.resume-dropzone.dropzone .dz-message,
.dropzone.resume-dropzone .dz-message {
  font-size: 0.95rem;
  margin: 1rem 0;
}

.resume-dropzone.dropzone:hover,
.dropzone.resume-dropzone:hover {
  border-color: var(--gold);
  background: #fff;
}

.resume-status {
  font-size: 0.85rem;
  color: #555;
  margin: 0.25rem 0 0;
  min-height: 1.2em;
}

@media (max-width: 700px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  main { padding: 1rem 0.75rem 2rem; }
  .card { padding: 1.25rem 1rem; }
}
