/* Banners & Alerts */
.banner {
  border-radius: var(--radius-md);
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
  max-width: 100%;
}

.banner-amber {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-ink);
}

.banner-danger {
  background: var(--danger-soft);
  border: 2px solid var(--danger-border);
  color: var(--danger-ink);
}

.banner-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.banner-body {
  margin: 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.emergency-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--danger-strong);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

/* Forms & Buttons */
.field {
  margin-bottom: 1rem;
  min-width: 0;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
}

.field-hint {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input,
.textarea,
.select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-primary {
  width: 100%;
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-whatsapp {
  background: #15803d;
  color: #ffffff;
}

.btn-whatsapp:hover:not(:disabled) {
  background: #166534;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Dropzone & Photo Preview */
.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.preview-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.preview-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* Samples Row & Credits */
.samples-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.sample-btn {
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  min-height: 48px;
}

.sample-btn img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.sample-btn span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.samples-credits {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.samples-credits a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.council-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-ink);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 0.45rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Calm Progressive Waiting Indicator */
.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.6s ease;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: var(--bg-subtle);
  animation: pulse 1.4s ease-in-out infinite;
}

.skeleton-line.w-60 { width: 60%; height: 20px; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-75 { width: 75%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Google Search Grounding Note */
.grounding-note {
  margin: 0.65rem 0 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.grounding-badge {
  font-weight: 800;
  color: var(--brand-soft-ink);
  margin-bottom: 0.25rem;
}

.grounding-reason {
  margin: 0.2rem 0 0.35rem;
  color: var(--text-secondary);
}

.grounding-sources {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.grounding-sources a {
  color: var(--brand);
  font-weight: 600;
}
