/* HR Job Application Form — styles for index.html
 * Base layout, form controls, and admin DataTables refinements.
 * Loaded via <link rel="stylesheet" href="assets/styles.css">.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
  line-height: 1.5;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.wrap.narrow {
  max-width: 440px;
}

.wrap > .card,
.wrap > form.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  border: none;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

h2 {
  margin: 8px 0;
}

.title-sub {
  margin: 0 0 20px;
  color: #6b7280;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.grid.two {
  margin-top: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.lbl {
  font-weight: 600;
  color: #374151;
}

.star {
  color: #dc2626;
}

.wrap input[type=text],
.wrap input[type=email],
.wrap input[type=tel],
.wrap input[type=password],
.wrap select,
.wrap textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.wrap input:focus,
.wrap select:focus,
.wrap textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.wrap input[type=file] {
  padding: 8px 0;
  font-size: 13px;
}

small {
  color: #9ca3af;
}

textarea {
  resize: vertical;
}

.field-err {
  color: #dc2626;
  font-size: 12px;
}

.errbox {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

button.primary {
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-top: 24px;
}

button.primary:hover {
  background: #1d4ed8;
}

button.primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.success-card {
  text-align: center;
  padding: 48px 28px;
}

.check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

/* Admin DataTables Refinement */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 14px;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  margin-left: 8px;
  font-size: 14px;
  outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 4px;
  font-size: 14px;
}
.dataTables_wrapper .dataTables_paginate .page-link {
  border-radius: 6px;
  margin: 0 2px;
  padding: 6px 12px;
  font-size: 13.5px;
}
.dataTables_wrapper .dataTables_info {
  font-size: 13.5px;
  color: #64748b;
  padding-top: 12px;
}
table.dataTable thead th {
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid #e2e8f0;
  vertical-align: middle;
  padding: 12px 10px;
}
table.dataTable tbody td {
  vertical-align: middle;
  padding: 10px;
}

.exp-block {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.exp-table th,
.exp-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.exp-table tr:last-child td {
  border-bottom: none;
}

.exp-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
}

.exp-table th.num,
.exp-table td.num {
  width: 36px;
  text-align: center;
  color: #6b7280;
  font-weight: 600;
}

.exp-table td input {
  width: 100%;
  min-width: 110px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.exp-table td input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.declaration {
  margin-top: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.decl-text {
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  margin-top: 3px;
  width: auto;
}
