/* Contact us — sidebar + AI chat */
.contact-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
}

.contact-sidebar h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--charcoal);
  margin: 0 0 12px;
}

.contact-sidebar p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-details-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--lavender-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-sidebar-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-chat {
  border: 1px solid var(--border-soft);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-card);
  box-shadow: 0 12px 36px rgba(194, 153, 209, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.contact-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--lavender-light) 0%, var(--surface-card) 100%);
}

.contact-chat-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--charcoal);
}

.contact-chat-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-chat-reset {
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
}

.contact-chat-reset:hover {
  color: var(--charcoal);
  border-color: rgba(91, 47, 153, 0.2);
}

.contact-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 420px;
}

.contact-chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-chat-bubble--assistant {
  align-self: flex-start;
  background: var(--lavender-light);
  color: var(--charcoal);
  border: 1px solid rgba(212, 184, 232, 0.5);
}

.contact-chat-bubble--user {
  align-self: flex-end;
  background: var(--lavender-deep);
  color: #fff;
}

.contact-chat-bubble--typing {
  opacity: 0.75;
  font-style: italic;
}

.contact-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 14px;
}

.contact-chat-chip {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.contact-chat-chip:hover {
  background: var(--lavender-light);
  border-color: rgba(91, 47, 153, 0.18);
}

.contact-chat-form {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border-soft);
  background: #fff;
}

.contact-chat-form-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.contact-chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--charcoal);
}

.contact-chat-form textarea:focus {
  outline: 2px solid rgba(91, 47, 153, 0.25);
  outline-offset: 1px;
  border-color: rgba(91, 47, 153, 0.3);
}

.contact-chat-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-chat {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .contact-chat-form-compose {
    grid-template-columns: 1fr;
  }

  .contact-chat-form .btn {
    width: 100%;
  }
}
