/* Report form styles */
.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.form-header {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--fg); }

.form-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.form-container {
  width: 100%;
  max-width: 500px;
}

.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.form-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.15;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.report-form { display: flex; flex-direction: column; gap: 24px; }

.field-group { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b6460' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder { color: var(--muted); opacity: 0.7; }

.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  margin-top: 8px;
}

.btn-generate:hover:not(:disabled) {
  background: #2d2a22;
  transform: translateY(-1px);
}

.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  font-size: 0.88rem;
  color: #c0392b;
  padding: 10px 14px;
  background: #fdf0ef;
  border: 1px solid #f5c0bc;
  border-radius: 6px;
}

.status-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  text-align: center;
}

.status-spinner svg {
  width: 48px;
  height: 48px;
}

.status-text {
  font-size: 1rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .form-header { padding: 16px 24px; }
  .form-main { padding: 40px 24px; }
}