.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  min-height: 48px;
  padding: 0 1.25rem;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-secondary:hover { background: var(--sky); border-color: color-mix(in srgb, var(--brand) 40%, white); }
.btn-dark { background: #fff; color: var(--charcoal); }
.btn-dark:hover { background: var(--sky); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-soft { background: var(--sky); color: var(--brand-deep); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
}
.btn-block { width: 100%; }

.section-heading { max-width: 40rem; }
.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ink);
}
.section-heading p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.section-heading--light h2 { color: #fff; }
.section-heading--light p { color: rgba(255,255,255,0.75); }

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, white);
  background: color-mix(in srgb, var(--sky) 70%, white);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 1rem;
  min-height: 48px;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.field-error { color: #c53030; font-size: 0.875rem; margin-top: 0.25rem; }
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-alert--success { background: var(--success-soft); color: var(--success); }
.form-alert--error { background: #fef2f2; color: #b91c1c; }

.chip-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .chip-group { grid-template-columns: repeat(5, 1fr); } }
.chip {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.chip.is-active {
  border-color: var(--brand);
  background: var(--sky);
  color: var(--brand-deep);
}

.upload-zone {
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, white);
  background: color-mix(in srgb, var(--sky) 40%, white);
  border-radius: 18px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.upload-zone:hover, .upload-zone.is-dragging { background: var(--sky); }
.upload-zone.is-error { border-color: #f87171; }
.upload-zone .icon { width: 1.75rem; height: 1.75rem; color: var(--brand); margin-inline: auto; }
.upload-title { display: block; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-deep); }
.upload-hint { display: block; font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.25rem; }
.upload-files { display: block; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 500; }

.accordion-item { border-bottom: 1px solid var(--line-soft); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: start;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion-trigger .icon { color: var(--brand); transition: transform .2s; }
.accordion-item.is-open .accordion-trigger .icon { transform: rotate(180deg); }
.accordion-panel {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.accordion-item.is-open .accordion-panel { display: block; }

.chat-panel {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: calc(var(--mobile-bar-h) + 12px);
  z-index: 60;
  max-width: 24rem;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
}
.chat-panel.is-open { display: block; }
@media (min-width: 768px) {
  .chat-panel {
    inset-inline: auto;
    inset-inline-end: 1.5rem;
    bottom: 1.5rem;
    width: 380px;
    margin: 0;
  }
}
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1rem;
}
.chat-body {
  height: 340px;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--sky) 40%, white);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
}
.chat-bubble--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-start-start-radius: 4px;
}
.chat-bubble--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-end-end-radius: 4px;
}
.chat-form {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem;
}
.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 0.75rem;
  min-height: 44px;
}
