/* ============================================================
   ZOFFER — Support page
   Built on tokens.css + site.css + sections.css.
   ============================================================ */

/* ── hero: compact, no giant padding ── */
.support-hero {
  padding-block: var(--space-7) var(--space-5);
  text-align: center;
}
.support-hero-inner { max-width: 600px; margin-inline: auto; }
.support-hero h1 {
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--zoffer-navy);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  margin: var(--space-4) 0 0;
}
.support-hero h1 em { font-style: italic; font-weight: 700; color: var(--zoffer-orange); }
.support-hero .sub { max-width: 44ch; margin-inline: auto; }

/* ── two-column layout ── */
.support-layout {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-8);
}

/* ── left: contact channels ── */
.support-channels { display: flex; flex-direction: column; gap: var(--space-4); }

.channel-card {
  background: var(--bg-surface);
  border: var(--bw-hairline) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex; gap: var(--space-4); align-items: flex-start;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.channel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}
.channel-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.channel-icon svg { display: block; }
.channel-icon-wa  { background: #dcf8c6; color: #075e54; }
.channel-icon-email { background: var(--orange-08); color: var(--zoffer-orange); }
.channel-icon-phone { background: var(--navy-08); color: var(--zoffer-navy); }

.channel-body { flex: 1; min-width: 0; }
.channel-title {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--zoffer-navy);
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 6px;
}
.channel-title .arr { font-size: 14px; color: var(--zoffer-orange); transition: transform var(--dur-base) var(--ease-out); }
.channel-card:hover .channel-title .arr { transform: translateX(3px); }
.channel-desc {
  font-size: var(--fs-body-sm);
  color: var(--zoffer-muted);
  margin: 0;
  line-height: var(--lh-normal);
}
.channel-meta {
  margin-top: 6px;
  font-size: var(--fs-caption);
  color: var(--gray-400);
  font-weight: 500;
}

/* sticky note */
.support-note {
  margin-top: var(--space-3);
  font-family: var(--font-casual);
  font-size: 19px;
  color: var(--zoffer-navy);
  text-align: center;
  line-height: 1.4;
}
.support-note .spark { color: var(--zoffer-orange); }

/* ── right: form card ── */
.support-card {
  background: var(--bg-surface);
  border: var(--bw-hairline) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7);
}
.support-card-head { margin-bottom: var(--space-5); }
.support-card-head .h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--zoffer-navy);
}
.support-card-head .lede { margin: 0; font-size: var(--fs-body-sm); }

.support-form { display: flex; flex-direction: column; gap: var(--space-4); }

/* field styles (shared with tally — no .field redeclaration needed,
   but we need select + textarea which tally doesn't have) */
.support-form .field input[type="text"],
.support-form .field input[type="email"],
.support-form .field input[type="tel"],
.support-form .field select,
.support-form .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--zoffer-ink);
  background: var(--bg-page);
  border: var(--bw-default) solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.support-form .field input[type="text"]:focus,
.support-form .field input[type="email"]:focus,
.support-form .field input[type="tel"]:focus,
.support-form .field select:focus,
.support-form .field textarea:focus {
  outline: none;
  border-color: var(--zoffer-orange);
  box-shadow: var(--ring-focus);
}
.support-form .field select {
  appearance: none;
  cursor: pointer;
  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='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.support-form .field textarea { resize: vertical; min-height: 100px; line-height: var(--lh-normal); }

.mobile-row { display: flex; gap: var(--space-3); }
.mobile-row .code { flex: 0 0 72px; text-align: center; }
.mobile-row .number { flex: 1; }

.support-submit { width: 100%; justify-content: center; margin-top: var(--space-2); }

/* status message */
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-sm);
  border: var(--bw-default) solid transparent;
}
.form-status-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.form-status-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* ── responsive ── */
@media (max-width: 740px) {
  .support-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .support-channels {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
  }
  .channel-card {
    min-width: 280px;
    flex: none;
    scroll-snap-align: start;
  }
  .support-note { display: none; }
  .support-card { padding: var(--space-6); }
}
