/* Reset & base */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f8fbff;
  color: #0b2b3a; /* dark text for labels and inputs */
}

/* container */
.form-container {
  display: flex;
  justify-content: center;
  padding: 36px 18px;
}

/* form card */
.job-form {
  width: 100%;
  max-width: 920px;
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(3,51,77,0.06);
  border: 1px solid rgba(3,51,77,0.04);
}

/* only main title is blue */
.form-title {
  margin: 0 0 18px 0;
  color: #0057b8;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

/* grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  align-items: start;
}

.form-group {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
}

.form-group.full-width { grid-column: 1 / -1; }

/* labels: dark, not blue */
label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #0b2b3a; /* dark label color */
  font-size: 14px;
}

/* inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  padding: 12px;
  border: 1px solid #d6e3f5;
  border-radius: 8px;
  background: #fff;
  color: #05232d;
  font-size: 14px;
  outline: none;
  transition: box-shadow .14s ease, border-color .14s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #0076ff;
  box-shadow: 0 10px 30px rgba(0,118,255,0.06);
}

textarea { min-height: 80px; resize: vertical; }

/* terms checkbox - custom styling */
.terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(3,51,77,0.06);
  background: #fbfdff;
  box-shadow: 0 4px 12px rgba(3,51,77,0.02);
}

.terms-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #0076ff;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
  transition: all 0.15s ease;
  background: #fff;
}

.terms-wrap input[type="checkbox"]:hover { border-color: #005ec0; }

.terms-wrap input[type="checkbox"]:checked {
  background: #0076ff;
  border-color: #0076ff;
}

.terms-wrap input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  position: absolute;
  left: 4px;
  top: 0px;
}

.terms-label {
  color: #0b2b3a;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

/* submit button */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #0076ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn:hover { background: #005ec0; 
}

.checkbox-group {
  text-align: center;
  margin-top: 20px;
}

.terms-label {
  font-weight: 500;
  color: #333;
}

input[type="checkbox"] {
  accent-color: #004aad;
  transform: scale(1.2);
  margin-right: 8px;
}

/* Terms and Submit Section Styling */
.checkbox-group {
  grid-column: span 2;
  text-align: center;
  margin-top: 10px;
}

.terms-label {
  font-weight: 500;
  color: #003366;
  background: #f1f6ff;
  padding: 12px 20px;
  border: 1px solid #cbd6e2;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  transition: 0.3s ease;
}

.terms-label:hover {
  background: #e3efff;
  border-color: #007bff;
}

input[type="checkbox"] {
  accent-color: #007bff;
  transform: scale(1.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* Submit Button Active/Disabled States */
#submitBtn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #c4d9ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background 0.3s;
  margin-top: 25px;
}

#submitBtn.enabled {
  background: #007bff;
  cursor: pointer;
}

#submitBtn.enabled:hover {
  background: #0056b3;
}


/* responsive */
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .job-form { padding: 20px; }
  .form-title { font-size: 18px; }
}


