/* ================================================================
   CRISIS Support Site — Contact Page
   ================================================================ */

.contact-lead {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ─── Form ─── */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-notice :is(p, label) {
  margin: 1em 0;
}

.privacy-notice a {
  color: var(--brand-link);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-submit {
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#form-sent-dialog {
  padding: 2em;
  margin: auto;
  border: none;
  width: min(90vw, 480px);
  background: var(--bg);
  text-align: center;
}

#form-sent-dialog :is(h2, p, button) {
  margin: 1em 0;
}

#form-sent-dialog::backdrop {
  background-color: rgba(0, 0, 0 / 0.5);
  backdrop-filter: blur(5px);
}

/* ─── Channel Cards ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-channel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  flex: 0 0 auto;
  border: 1px solid color-mix(in oklch, currentColor 14%, transparent);
  box-shadow: var(--inset-shadow-xs);
}

.contact-channel-title {
  font-size: 18px;
  font-weight: 600;
}

.contact-channel-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-channel-list {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 18px;
  margin: 4px 0 8px;
}

.contact-channel-list li {
  list-style: disc;
}

.contact-channel-button {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.contact-channel-button:hover {
  opacity: 0.85;
}

.contact-channel-button-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border-strong);
}

.contact-channel-button-secondary:hover {
  opacity: 1;
  border-color: var(--brand);
  color: var(--brand);
}

.contact-channel-button:hover .icon-caret {
  transform: translateX(2px);
}

/* ─── Note ─── */
.contact-note {
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}

.contact-note-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-note-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-note-desc a {
  color: var(--brand-link);
  font-weight: 500;
}

/* ─── Form Header ─── */
.contact-form-header {
  margin-bottom: 32px;
}

.contact-form-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
  transition: color 0.15s;
}

.contact-form-back:hover {
  color: var(--text);
}

.contact-form-heading {
  font-size: 20px;
  font-weight: 600;
}

.contact-form-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
