/* =========================================================
   AUDIT FORM – LIGHT GREY (FIXED & NORMALISED)
   ========================================================= */

:root {
  --page-bg: #f3f3f3;
  --form-bg: #e6e6e6;
  --card-bg: #ededed;
  --input-bg: #ffffff;

  --text-primary: #1c1c1c;
  --text-secondary: #3a3a3a;
  --text-muted: #6a6a6a;

  --border-light: #c6c6c6;
  --border-medium: #b0b0b0;
  --border-focus: #000000;

  --radius-sm: 4px;
  --radius-md: 6px;

  --transition: 0.15s ease;
}

/* ---------- PAGE ---------- */
body {
  background: var(--page-bg);
  color: var(--text-primary);
}

/* ---------- HEADINGS ---------- */
#audit-heading {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  text-align: center;
}



/* ---------- FORM WRAPPER ---------- */
.audit-form-wrapper {
  background: var(--form-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 40px;
}

/* ---------- GRID ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FIELDSETS ---------- */
fieldset {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 26px;
}

legend {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ---------- LABELS ---------- */
label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
label[for] {
  color: #000000;
  font-weight: 600;
}
.audit-consent-text {
  color: #000000;
  font-weight: 600;
}
.checkbox-label.required span {
  color: #000000;
  font-weight: 600;
}

label.required::after {
  content: " *";
  color: var(--text-primary);
}

/* ---------- FORM GROUP ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

/* ---------- INPUTS (NORMALISED) ---------- */
input,
select,
textarea {
  background: var(--input-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  transition: border-color var(--transition),
              box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* REMOVE DARK / BROKEN FIELD STATE */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px #000000;
  background: #ffffff;
}

/* ---------- SELECT ---------- */
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* ---------- TEXTAREA ---------- */
textarea {
  resize: vertical;
}

/* ---------- CHECKBOXES ---------- */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-item input {
  accent-color: #000000;
}
.checkbox-group .checkbox-item span {
  color: #000000;
  font-weight: 600;
}
checkbox-label {
  color: #000;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

/* ---------- CONSENT ---------- */
.consent-section {
  margin-top: 20px;
}

/* ---------- ERRORS ---------- */
.error-message {
  font-size: 0.75rem;
  color: #8b0000;
  margin-top: 4px;
}

/* ---------- SUBMIT ---------- */
.submit-btn {
  width: 100%;
  padding: 14px 18px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:hover {
  background: #1a1a1a;
}
label.checkbox-label {
  color: #000000 !important;
}


/* ---------- STATUS ---------- */
.status-message {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
