/**
 * Support page — two-column layout, gradient info cards, form styling.
 * Matches Redeem / Create Room / Room Rules visual system.
 */

/* Page container: wide for two columns */
body.support-page main {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.support-page main {
    padding-left: clamp(0.75rem, 4vw, 1.5rem);
    padding-right: clamp(0.75rem, 4vw, 1.5rem);
  }
}

/* Header */
.support-header {
  margin-bottom: 1.75rem;
}

.support-header h1 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.support-header .support-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Two-column layout: form left, info cards right */
.support-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .support-two-col {
    grid-template-columns: 1fr;
  }
}

/* Left: form card */
.support-form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  box-shadow: 0 6px 16px rgba(6, 10, 18, 0.11);
}

.support-form-card .support-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

.support-form-card .support-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
  line-height: 1.45;
}

/* Honeypot: visually hidden, not visible to users */
.support-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-honeypot input {
  position: absolute;
  left: -9999px;
}

/* In-form privacy notice (subtle blue/neutral banner) */
.support-privacy-banner {
  background: rgba(91, 155, 213, 0.12);
  border: 1px solid rgba(91, 155, 213, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Transaction ID nudge when billing selected */
.support-transaction-nudge .form-input {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.support-transaction-nudge .form-input:focus {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-muted);
}

/* Validation alert inside form card */
.support-validation-alert {
  display: none;
  background: var(--danger-muted);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--danger);
  line-height: 1.4;
}

.support-validation-alert.is-visible {
  display: block;
}

/* Red glow box: "Do not include room keys..." — same style as room setup terms warning */
.support-no-secrets-warning {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.2);
  border: 2px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 196, 196, 0.98);
  line-height: 1.4;
}

.support-no-secrets-warning-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: rgba(248, 113, 113, 0.95);
  font-variation-settings: 'FILL' 0, 'wght' 400;
}

/* Hint when billing + reply-to but no transaction ID (non-blocking) */
.support-transaction-hint {
  display: none;
  font-size: 0.85rem;
  color: var(--warning);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.support-transaction-hint.is-visible {
  display: block;
}

/* Submit button loading state */
.support-form-card .pill-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Right column: stacked info cards */
.support-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Base support info card (gradient + border glow) */
.support-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  position: relative;
  isolation: isolate;
}

.support-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-card-title .section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  opacity: 0.85;
}

.support-card-title .material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.support-card p,
.support-card .support-card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.75rem 0;
}

.support-card ul {
  margin: 0 0 0.5rem 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.support-card ul:last-child {
  margin-bottom: 0;
}

.support-card .support-card-footer {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Card 1: What we can help with — green/blue gradient */
.support-card--help {
  --support-green-rgb: 34, 197, 94;
  --support-blue-rgb: 59, 130, 246;
  border: 1px solid rgba(var(--support-green-rgb), 0.4);
  background: linear-gradient(
    160deg,
    rgba(var(--support-green-rgb), 0.15) 0%,
    rgba(var(--support-blue-rgb), 0.1) 50%,
    rgba(14, 25, 41, 0.6) 100%
  );
  box-shadow: 0 0 0 1px rgba(var(--support-green-rgb), 0.18), 0 8px 24px rgba(var(--support-green-rgb), 0.08);
}

/* Card 2: What we can't do — neutral/amber gradient */
.support-card--cant {
  --support-amber-rgb: 245, 158, 11;
  border: 1px solid rgba(var(--support-amber-rgb), 0.35);
  background: linear-gradient(
    160deg,
    rgba(var(--support-amber-rgb), 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(14, 25, 41, 0.55) 100%
  );
  box-shadow: 0 0 0 1px rgba(var(--support-amber-rgb), 0.12), 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Card 3: Fastest way to resolve — purple/blue gradient */
.support-card--fastest {
  --support-purple-rgb: 139, 92, 246;
  --support-blue-rgb: 59, 130, 246;
  border: 1px solid rgba(var(--support-purple-rgb), 0.4);
  background: linear-gradient(
    160deg,
    rgba(var(--support-purple-rgb), 0.15) 0%,
    rgba(var(--support-blue-rgb), 0.08) 50%,
    rgba(14, 25, 41, 0.6) 100%
  );
  box-shadow: 0 0 0 1px rgba(var(--support-purple-rgb), 0.18), 0 8px 24px rgba(var(--support-purple-rgb), 0.1);
}

.support-card--fastest .support-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem 0;
  line-height: 1.45;
}

/* Card 4: FAQ preview — matches card style */
.support-card--faq {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(6, 10, 18, 0.11);
}

.support-card--faq .support-faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.support-card--faq .support-faq-list li {
  padding-left: 0;
  margin-bottom: 0.35rem;
}

.support-card--faq .support-faq-list li::before {
  content: none;
}

.support-card--faq .pill-secondary {
  margin-top: 0.25rem;
}

/* Success section */
.support-success-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  box-shadow: 0 6px 16px rgba(6, 10, 18, 0.11);
}

.support-success-card h3 {
  font-size: 1.1rem;
  color: var(--success);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

/* Footer links */
.support-footer-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-footer-links a {
  text-decoration: none;
}
