/* ============================================
   Aurora — Support Page Styles
   ============================================ */

.support-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.support-hero__title {
  font-size: var(--text-hero-desktop);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: var(--space-6);
  letter-spacing: 0;
}

.support-hero__subtitle {
  font-size: var(--text-hero-body-desktop);
  color: var(--text-secondary);
  line-height: 1.6;
}

.support-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.support-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.support-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  transition: border-color var(--duration-medium) var(--ease-standard);
}

.support-card:hover {
  border-color: var(--border-strong);
}

.support-card[id] {
  scroll-margin-top: 96px;
}

.support-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-button-sm);
  background: var(--fill-glass-strong);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 18px;
}

.support-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-card-title);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.support-card__body {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.55;
}

.support-contact {
  max-width: 700px;
  margin: 0 auto;
}

.support-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.support-contact__item {
  background: var(--fill-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-sm);
  padding: var(--space-5);
}

.support-contact__label {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.support-contact__value {
  font-size: var(--text-small);
  color: var(--accent-green);
  word-break: break-all;
}

.support-troubleshoot {
  max-width: 700px;
  margin: 0 auto;
}

.support-troubleshoot__intro {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.support-troubleshoot__foot {
  color: var(--text-muted);
  font-size: var(--text-small);
  margin-top: var(--space-6);
  line-height: 1.6;
}

.support-troubleshoot__list {
  padding-left: var(--space-6);
}

.support-troubleshoot__list li {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  list-style: disc;
}

.support-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (max-width: 1024px) {
  .support-hero__title {
    font-size: var(--text-hero-tablet);
  }
}

@media (max-width: 768px) {
  .support-hero__title {
    font-size: var(--text-hero-mobile);
  }

  .support-hero__subtitle {
    font-size: var(--text-hero-body-mobile);
  }

  .support-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-categories {
    grid-template-columns: 1fr;
  }

  .support-contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FEEDBACK FORM
   Card-style form mirroring the rest of support.
   Inputs use --fill-glass-strong for a clean
   inset feel; focus state borrows --accent-green
   so it ties to the primary CTA color.
   ============================================ */

/* Wide backdrop that wraps the form — carries the glass card look
   (background, border, radius) plus the page-header aurora glow.
   The form itself sits centered inside at its original width and
   is now a transparent flex container. Vertical padding is
   symmetric (top == bottom) by design. */
.feedback-panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  background: var(--fill-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  transition: border-color var(--duration-medium) var(--ease-standard);
}
.feedback-panel:focus-within {
  border-color: var(--border-strong);
}
.feedback-panel__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  overflow: clip;
}
.feedback-panel__glow {
  position: absolute;
  width: calc(100% - 80px);
  height: 400px;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(26, 108, 162, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  animation: aurora-drift 22s ease-in-out infinite;
}
.feedback-panel__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  #feedback .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .feedback-panel {
    padding: var(--space-8) var(--space-5);
    border-radius: 18px;
  }
  .feedback-panel__inner {
    max-width: 100%;
    padding-inline: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-panel__glow { animation: none; }
}

/* --- Light-mode tuning ---
   Default --fill-glass is too transparent in light mode (0.4), so the
   body's aurora + green/orange blobs bleed through and the
   panel reads as a tie-dye. Lift it to a near-opaque white,
   add a soft drop shadow for depth, and damp the internal blue glow
   that was tinting the corners. The body-level ambient layer still
   provides the surrounding atmosphere outside the panel. */
[data-theme="light"] .feedback-panel {
  background: rgba(255, 250, 242, 0.92);
  border-color: rgba(50, 35, 10, 0.1);
  box-shadow: var(--shadow-soft);
}
[data-theme="light"] .feedback-panel:focus-within {
  border-color: rgba(50, 35, 10, 0.18);
}
[data-theme="light"] .feedback-panel__glow {
  /* Almost invisible — keeps a tiny lift without re-introducing blue. */
  background: radial-gradient(ellipse, rgba(43, 182, 133, 0.04) 0%, transparent 70%);
}
/* Inputs need a hair more contrast against the light panel. */
[data-theme="light"] .feedback-form__input,
[data-theme="light"] .feedback-form__select,
[data-theme="light"] .feedback-form__textarea {
  background: #ffffff;
  border-color: rgba(50, 35, 10, 0.12);
}
[data-theme="light"] .feedback-form__details {
  border-color: rgba(50, 35, 10, 0.16);
}
[data-theme="light"] .feedback-form__input::placeholder,
[data-theme="light"] .feedback-form__textarea::placeholder {
  color: rgba(35, 28, 20, 0.42);
  opacity: 1;
}

/* Form is now a transparent flex container; the card chrome lives
   on .feedback-panel one level up. */
.feedback-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Two-column row that collapses on small screens. */
.feedback-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.feedback-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* Shared input/select/textarea base. */
.feedback-form__input,
.feedback-form__select,
.feedback-form__textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--fill-glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-button-sm);
  padding: 11px 14px;
  line-height: 1.45;
  transition: border-color 0.18s var(--ease-standard),
              background-color 0.18s var(--ease-standard),
              box-shadow 0.18s var(--ease-standard);
  -webkit-appearance: none;
  appearance: none;
}
.feedback-form__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
/* Custom chevron for the native select — keeps it on-brand. */
.feedback-form__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 36px;
}
.feedback-form__input::placeholder,
.feedback-form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.feedback-form__input:hover,
.feedback-form__select:hover,
.feedback-form__textarea:hover {
  border-color: var(--border-strong);
}
.feedback-form__input:focus,
.feedback-form__select:focus,
.feedback-form__textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.feedback-form__field.is-valid .feedback-form__input,
.feedback-form__field.is-valid .feedback-form__select,
.feedback-form__field.is-valid .feedback-form__textarea {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.1);
}
.feedback-form__field.is-invalid .feedback-form__input,
.feedback-form__field.is-invalid .feedback-form__select,
.feedback-form__field.is-invalid .feedback-form__textarea {
  border-color: rgba(255, 99, 99, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 99, 99, 0.12);
}
/* Inline native validation: red border once the user has touched the field. */
.feedback-form__input:user-invalid,
.feedback-form__select:user-invalid,
.feedback-form__textarea:user-invalid {
  border-color: rgba(255, 99, 99, 0.6);
}

/* Honeypot — visually hidden but kept in the DOM for bots. */
.feedback-form__honeypot {
  display: none !important;
}

/* Collapsible "system info" details block. */
.feedback-form__details {
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-button-sm);
  padding: 0;
  background: transparent;
}
.feedback-form__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  list-style: none;
}
.feedback-form__summary::-webkit-details-marker { display: none; }
.feedback-form__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.feedback-form__chev {
  transition: transform 0.2s var(--ease-standard);
}
.feedback-form__details[open] .feedback-form__chev {
  transform: rotate(180deg);
}
.feedback-form__details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: 4px 14px 14px;
}

.feedback-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-2);
}
.feedback-form__submit {
  min-width: 200px;
  justify-content: center;
}
.feedback-form__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.feedback-form__legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Status line — shown under the form for transient errors. The success
   panel sits separately and replaces the form entirely. */
.feedback-form__status {
  min-height: 0;
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
}
.feedback-form__status.is-error {
  color: #ff6363;
}

/* Success panel — same card aesthetic as the form, centered content. */
.feedback-form__success {
  max-width: 560px;
  margin: 0 auto;
  background: var(--fill-glass);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  animation: fade-up 0.45s var(--ease-out);
}
.feedback-form__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-form__success-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
.feedback-form__success-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.feedback-form__fallback {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: var(--space-5) auto 0;
}

@media (max-width: 640px) {
  #feedback .section-subtitle {
    max-width: 30rem;
  }
  .feedback-form__row { grid-template-columns: 1fr; }
  .feedback-form__details-grid { grid-template-columns: 1fr; }
  .feedback-form__submit { width: 100%; }
  .feedback-form__input,
  .feedback-form__select,
  .feedback-form__textarea {
    font-size: 16px;
    padding: 13px 14px;
  }
  .feedback-form__summary {
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 13px 14px;
  }
  .feedback-form__hint {
    width: calc(100% - 24px);
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  #feedback .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .feedback-panel {
    padding: var(--space-8) var(--space-5);
  }
}

/* Reduced motion — strip the success panel's slide-in. */
@media (prefers-reduced-motion: reduce) {
  .feedback-form__success { animation: none; }
}

/* ============================================
   THANK-YOU PAGE
   Post-submit confirmation for the support form.
   ============================================ */
.thank-you-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 48px rgba(52, 211, 153, 0.12);
}

.thank-you-actions {
  margin-top: var(--space-8);
}

.thank-you-panel {
  max-width: 980px;
}

.thank-you-panel .feedback-panel__inner {
  max-width: 840px;
}

.thank-you-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.thank-you-next__item {
  min-width: 0;
  padding: var(--space-5);
  border-left: 1px solid var(--border-soft);
}

.thank-you-next__item:first-child {
  border-left: 0;
}

.thank-you-next__kicker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 700;
}

.thank-you-next__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: 0;
}

.thank-you-next__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.thank-you-next__body a {
  color: var(--accent-green);
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.38);
  text-underline-offset: 3px;
  word-break: break-word;
}

.thank-you-note {
  max-width: 620px;
  margin: var(--space-5) auto 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .thank-you-next {
    grid-template-columns: 1fr;
  }
  .thank-you-next__item {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }
  .thank-you-next__item:first-child {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .thank-you-icon {
    width: 56px;
    height: 56px;
  }
  .thank-you-actions {
    margin-top: var(--space-6);
  }
}
