/* assets/css/audit.css */

/* 1. GLOBAL SETTINGS */
.audit-container, input, select, button, h1, h3, label {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* 2. COMPACT CONTAINER */
.audit-container {
  max-width: 800px; /* Slightly wider to fit side-by-side fields */
  margin: 2rem auto; /* Reduced from 4rem */
  padding: 2rem; /* Reduced from 3.5rem */
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #2d3748;
}

/* 3. COMPACT HEADER */
.audit-header {
  text-align: center;
  margin-bottom: 1.5rem; /* Reduced from 2.5rem */
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 1rem; /* Reduced from 2rem */
  
  /* Force Override for Theme Conflicts */
  background: transparent !important;
}

.audit-header h1 {
  font-size: var(--text-3xl); /* Slightly smaller */
  font-weight: 800;
  color: #2c5282 !important;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.audit-header .intro {
  font-size: var(--text-base);
  color: #718096 !important;
  line-height: 1.4;
}

/* 4. FORM GRID SYSTEM (The Space Saver) */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 1rem; /* Space between columns */
  margin-top: 1.5rem; /* Reduced margin */
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.form-section h3 {
  grid-column: span 2; /* Title spans full width */
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
  margin-bottom: 0.5rem; /* Tightened */
  font-weight: 700;
}

/* 5. FORM GROUPS & INPUTS */
.form-group {
  margin-bottom: 0; /* Let Grid handle the gap */
}

/* Make certain fields full width if needed */
.form-group.full-width {
  grid-column: span 2;
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.35rem; /* Reduced gap */
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem; /* Slimmer inputs */
  font-size: var(--text-base);
  color: #1a202c;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e0 !important;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Custom Arrow for Select */
select {
  background-image: url("data:image/svg+xml,..."); /* (Keep your existing SVG here if you want) */
  background-position: right 0.75rem center;
}

/* Focus State */
input:focus, select:focus {
  border-color: #3182ce !important;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.25) !important;
}

/* 6. COMPACT BUTTON */
.form-actions { margin-top: 1.5rem; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem; /* Reduced from 1.25rem */
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  background-color: #2b6cb0; 
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #2c5282;
  transform: translateY(-1px);
}

/* 7. MOBILE RESPONSIVENESS */
/* On small screens, stack everything back to 1 column */
@media (max-width: 600px) {
  .form-section {
    grid-template-columns: 1fr;
  }
  .form-section h3, 
  .form-group.full-width {
    grid-column: span 1;
  }
  .audit-container {
    padding: 1.5rem;
    margin: 1rem;
  }
}