/* Application styles */

:root {
  --brand-color: #0b3c5d;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background-color: #f4f6f8;
  color: #1f2933;
}

main {
  padding: 1.5rem;
}

a {
  color: var(--brand-color);
}

header.demo-header {
  background: linear-gradient(120deg, var(--brand-color), #1c6aa5);
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header.demo-header img {
  max-height: 72px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
}

.button-primary {
  background-color: var(--brand-color);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(11, 60, 93, 0.25);
}

.button-primary:disabled {
  cursor: not-allowed;
}

.button-secondary {
  background-color: white;
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(11, 60, 93, 0.15);
  background-color: rgba(11, 60, 93, 0.08);
}

.button-secondary:disabled {
  cursor: not-allowed;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.opacity-60 {
  opacity: 0.6;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.transcript-panel {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.transcript-panel::-webkit-scrollbar {
  width: 6px;
}

.transcript-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.bg-brand-100 {
  background: rgba(11, 60, 93, 0.12);
}

.footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #52606d;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-field label {
  font-weight: 600;
}

.input-field input,
.input-field textarea,
.input-field select {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.16);
}

.intake-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.intake-actions a {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: rgba(11, 60, 93, 0.1);
  text-decoration: none;
  font-weight: 600;
}

.status-indicator {
  font-size: 0.95rem;
  color: #52606d;
  margin-top: 0.75rem;
}

.logo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 720px) {
  header.demo-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
