/* /contact - demo auth shell */
/* Contact page - all styles scoped to #static-contact / .sp-contact */
.contact-site-page.sp-contact {
  --sp-accent: #8b5cf6;
  --sp-accent-soft: rgba(139, 92, 246, 0.22);
  --sp-surface: rgba(255, 255, 255, 0.04);
  --sp-border: rgba(255, 255, 255, 0.1);
  --sp-text-muted: rgba(255, 255, 255, 0.68);
  --sp-heading: rgba(255, 255, 255, 0.96);
  --sp-card-heading: rgba(255, 255, 255, 0.98);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

html[data-mantine-color-scheme="light"] .contact-site-page.sp-contact {
  --sp-accent: #6d28d9;
  --sp-accent-soft: rgba(109, 40, 217, 0.12);
  --sp-surface: #fff;
  --sp-border: #e9ecef;
  --sp-text-muted: #495057;
  --sp-heading: #111827;
  --sp-card-heading: #1a1d24;
}





.sp-contact__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.contact-site-page > .sp-contact__section-head:first-of-type {
  margin-top: 0.35rem;
}

.contact-site-page.sp-contact h2.sp-contact__section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}
html[data-mantine-color-scheme="light"] .contact-site-page.sp-contact h2.sp-contact__section-title {
  color: #868e96;
}

.sp-contact__section-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}
html[data-mantine-color-scheme="light"] .sp-contact__section-hint {
  color: #868e96;
}

.sp-contact__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sp-contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

.sp-contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 0.85rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--sp-border);
  background: linear-gradient(155deg, var(--sp-surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.sp-contact__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sp-accent), #3b82f6);
  opacity: 0.85;
}
.sp-contact__card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}
html[data-mantine-color-scheme="light"] .sp-contact__card {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
html[data-mantine-color-scheme="light"] .sp-contact__card:hover {
  border-color: rgba(109, 40, 217, 0.3);
}

.sp-contact__card-body {
  flex: 1 1 auto;
}

.sp-contact__card-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.28));
  color: #ede9fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
html[data-mantine-color-scheme="light"] .sp-contact__card-icon {
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #5b21b6;
}
.sp-contact__card-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke-width: 1.75;
}

.contact-site-page.sp-contact .sp-contact__card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--sp-card-heading);
}

.sp-contact__card p {
  font-size: 0.9rem;
  line-height: 1.58;
  margin: 0 0 1rem;
  color: var(--sp-text-muted);
}

.sp-contact__card p.sp-contact__card--muted {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}
html[data-mantine-color-scheme="light"] .sp-contact__card p.sp-contact__card--muted {
  color: #868e96;
}

.sp-contact__card-footer {
  margin-top: auto;
  padding-top: 0.25rem;
}

.sp-contact__card a.sp-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  background: var(--sp-accent-soft);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.45);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.sp-contact__card a.sp-contact__btn:hover {
  background: rgba(139, 92, 246, 0.38);
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.65);
}
html[data-mantine-color-scheme="light"] .sp-contact__card a.sp-contact__btn {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}
html[data-mantine-color-scheme="light"] .sp-contact__card a.sp-contact__btn:hover {
  background: #6d28d9;
}

.sp-contact__btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Account shortcut cards */
.sp-contact__shortcuts {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .sp-contact__shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-contact__shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  text-align: left;
  border-radius: 0.75rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.sp-contact__shortcut:hover {
  border-color: rgba(26, 118, 253, 0.45);
  background: rgba(26, 118, 253, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut:hover {
  border-color: #1a76fd;
  background: rgba(26, 118, 253, 0.06);
}

.sp-contact__shortcut-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut-icon {
  background: #ede9fe;
  color: #5b21b6;
}
.sp-contact__shortcut-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.85;
}

.sp-contact__shortcut-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut-title {
  color: #212529;
}

.sp-contact__shortcut-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut-desc {
  color: #868e96;
}

.sp-contact__shortcut-chevron {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
html[data-mantine-color-scheme="light"] .sp-contact__shortcut-chevron {
  color: #6d28d9;
}
.sp-contact__shortcut-chevron svg {
  width: 0.85rem;
  height: 0.85rem;
}

.sp-contact__note {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  border: 1px solid var(--sp-border);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.68);
}
html[data-mantine-color-scheme="light"] .sp-contact__note {
  background: #f8f9fa;
  color: #495057;
}

.sp-contact__note-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}
html[data-mantine-color-scheme="light"] .sp-contact__note-icon {
  background: #ede9fe;
  color: #5b21b6;
}
.sp-contact__note-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 1.75;
}

.sp-contact__note a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
}
.sp-contact__note a:hover {
  border-bottom-color: #a78bfa;
}
html[data-mantine-color-scheme="light"] .sp-contact__note a {
  color: #5b21b6;
  border-bottom-color: rgba(91, 33, 182, 0.35);
}

/* Email form */
.sp-contact__flash {
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.sp-contact__flash--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}
html[data-mantine-color-scheme="light"] .sp-contact__flash--success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.sp-contact__flash--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
html[data-mantine-color-scheme="light"] .sp-contact__flash--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.sp-contact__form-card {
  border-radius: 0.85rem;
  padding: 1.35rem 1.4rem 1.4rem;
  margin-bottom: 2rem;
  border: 1px solid var(--sp-border);
  background: linear-gradient(155deg, var(--sp-surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
html[data-mantine-color-scheme="light"] .sp-contact__form-card {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.sp-contact__form-card .sp-contact__form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--sp-card-heading);
}

.sp-contact__form-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  color: var(--sp-text-muted);
}
.sp-contact__form-desc a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
}
.sp-contact__form-desc a:hover {
  border-bottom-color: #a78bfa;
}
html[data-mantine-color-scheme="light"] .sp-contact__form-desc a {
  color: #5b21b6;
  border-bottom-color: rgba(91, 33, 182, 0.35);
}

.sp-contact__form-row {
  margin-bottom: 1rem;
}
.sp-contact__form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
}
html[data-mantine-color-scheme="light"] .sp-contact__form-row label {
  color: #374151;
}

.sp-contact__form-row input,
.sp-contact__form-row textarea,
.sp-contact__form-row select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sp-border);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
}
html[data-mantine-color-scheme="light"] .sp-contact__form-row input,
html[data-mantine-color-scheme="light"] .sp-contact__form-row textarea,
html[data-mantine-color-scheme="light"] .sp-contact__form-row select {
  background: #fff;
  color: #111827;
  border-color: #dee2e6;
}
.sp-contact__form-row select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2.25rem;
}
html[data-mantine-color-scheme="light"] .sp-contact__form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.sp-contact__form-row select option,
.sp-contact__form-row select optgroup {
  color: #111827;
  background: #fff;
  font-weight: normal;
}
.sp-contact__form-row select optgroup {
  font-weight: 700;
  font-size: 0.82rem;
  color: #374151;
}
.sp-contact__form-hint {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.48);
}
html[data-mantine-color-scheme="light"] .sp-contact__form-hint {
  color: #868e96;
}
.sp-contact__form-row input:focus,
.sp-contact__form-row textarea:focus,
.sp-contact__form-row select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}
.sp-contact__form-row textarea {
  min-height: 9rem;
  resize: vertical;
}

.sp-contact__turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1rem;
}
.sp-contact__turnstile-card {
  min-height: 65px;
}

.sp-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: var(--sp-accent-soft);
  color: #ddd6fe;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sp-contact__submit:hover {
  background: rgba(139, 92, 246, 0.38);
  transform: translateY(-1px);
}
html[data-mantine-color-scheme="light"] .sp-contact__submit {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}
html[data-mantine-color-scheme="light"] .sp-contact__submit:hover {
  background: #6d28d9;
}

/* Collapsible email panel */
.sp-contact__email-details {
  margin: 0;
  border: 0;
}
.sp-contact__email-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--sp-border);
  background: rgba(139, 92, 246, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sp-contact__email-summary::-webkit-details-marker {
  display: none;
}
.sp-contact__email-summary::marker {
  display: none;
}
.sp-contact__email-summary:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.14);
}
html[data-mantine-color-scheme="light"] .sp-contact__email-summary {
  background: #f5f3ff;
  border-color: #e9d5ff;
}
html[data-mantine-color-scheme="light"] .sp-contact__email-summary:hover {
  background: #ede9fe;
  border-color: #d8b4fe;
}

.sp-contact__email-summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-align: left;
}

.sp-contact__email-summary-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.28));
  color: #ede9fe;
}
html[data-mantine-color-scheme="light"] .sp-contact__email-summary-icon {
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #5b21b6;
}
.sp-contact__email-summary-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 1.75;
}

.sp-contact__email-summary-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sp-contact__email-summary-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sp-card-heading);
  letter-spacing: -0.02em;
}

.sp-contact__email-summary-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
html[data-mantine-color-scheme="light"] .sp-contact__email-summary-hint {
  color: #868e96;
}
details[open] .sp-contact__email-summary-hint--when-closed {
  display: none;
}
details:not([open]) .sp-contact__email-summary-hint--when-open {
  display: none;
}

.sp-contact__email-summary-chevron {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  transition: transform 0.25s ease;
}
html[data-mantine-color-scheme="light"] .sp-contact__email-summary-chevron {
  color: #6d28d9;
}
details[open] .sp-contact__email-summary-chevron {
  transform: rotate(180deg);
}
.sp-contact__email-summary-chevron svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
}

.sp-contact__email-inner {
  padding-top: 1.15rem;
}

.sp-contact__info-callout {
  border-radius: 0.65rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.08);
}
html[data-mantine-color-scheme="light"] .sp-contact__info-callout {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.sp-contact__info-callout-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  color: #93c5fd;
}
html[data-mantine-color-scheme="light"] .sp-contact__info-callout-title {
  color: #2563eb;
}

.sp-contact__info-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--sp-text-muted);
}
.sp-contact__info-list li {
  margin-bottom: 0.4rem;
}
.sp-contact__info-list li:last-child {
  margin-bottom: 0;
}

.sp-contact__form-after-details {
  margin-top: 1.15rem;
}

/* Topic-specific optional fields */
.sp-contact__extra-wrap {
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 0.7rem;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}
html[data-mantine-color-scheme="light"] .sp-contact__extra-wrap {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.sp-contact__extra-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  color: #c4b5fd;
}
html[data-mantine-color-scheme="light"] .sp-contact__extra-heading {
  color: #6d28d9;
}

.sp-contact__extra-lead {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  color: var(--sp-text-muted);
}

.sp-contact__extra-panel[hidden] {
  display: none !important;
}

.sp-contact__extra-panel .sp-contact__form-row:last-child {
  margin-bottom: 0;
}
