/* BeFit Support — form + Apple-style layout */

html:has([data-support-page]) {
  scroll-padding-top: 6rem;
}

.support-page {
  --support-max: 40rem;
  --support-pad: clamp(1.25rem, 4vw, 2rem);
  --support-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #0b121c;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: clamp(4rem, 12vh, 6rem);
}

.support-hero {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 5rem) var(--support-pad) 2rem;
}

.support-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
}

.support-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.support-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #94a3b8;
}

.support-body {
  max-width: var(--support-max);
  margin: 0 auto;
  padding: 0 var(--support-pad);
}

.support-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94a3b8;
}

.support-note strong {
  color: #cbd5e1;
}

.support-note code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  color: #93c5fd;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.support-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.support-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.support-field--error input,
.support-field--error select,
.support-field--error textarea {
  border-color: #f87171;
}

.support-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.support-field__error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #fca5a5;
  display: none;
}

.support-field--error .support-field__error {
  display: block;
}

.support-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.support-submit:hover:not(:disabled) {
  background: #2563eb;
  transform: scale(1.01);
}

.support-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.support-status {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  display: none;
}

.support-status.is-visible {
  display: block;
}

.support-status--success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.support-status--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.support-links {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.support-links__title {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.support-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-links__a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.support-links__a:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}
