:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --primary: #1d4ed8;
  --primary-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
  color: var(--text);
}

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.site-header .container {
  padding: 26px 0 16px;
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  font-weight: 700;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(330px, 430px) 1fr;
  gap: 16px;
  padding: 16px 0 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card-head h2 {
  margin: 0;
}

.card-head p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 0.92rem;
  color: #1f2937;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #c7ccd4;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.button-row {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-secondary {
  background: #eef2ff;
  color: #1e3a8a;
  border-color: #c7d2fe;
}

.upload-control {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.upload-control span {
  color: #1f2937;
  font-size: 0.92rem;
}

.status {
  margin: 6px 0 14px;
  color: #374151;
  font-size: 0.92rem;
}


.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.preview-head h3 {
  margin: 0;
}

.resume-preview {
  border: 1px solid #cfd4db;
  background: #fff;
  min-height: 540px;
  overflow: auto;
  border-radius: 8px;
}

/* ATS template (requested snippet, implemented) */
.ats-container {
  background: white;
  color: black;
  padding: 40px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  max-width: 800px;
  margin: auto;
}

.ats-header {
  text-align: center;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.ats-header h1 {
  margin: 0;
  font-size: 24pt;
  text-transform: uppercase;
}

.ats-section-title {
  font-size: 14pt;
  border-bottom: 1px solid #ccc;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.ats-container ul {
  margin-top: 5px;
  padding-left: 20px;
}

.ats-container li {
  margin-bottom: 5px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}
