/* ============================================================
   Você está bem? — Página de Suporte
   Autor: Você está bem? Team
   Segue o mesmo design system do styles.css principal
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #4DA6E8;
  --blue-dark:   #2A80C4;
  --teal:        #3DCBA8;
  --teal-dark:   #1FA882;
  --teal-light:  #7DE0C8;
  --sky:         #EAF6FF;
  --mint:        #E8FAF5;
  --cream:       #F5FBFF;
  --charcoal:    #1E2A38;
  --mid:         #5A6E80;
  --light:       #9BB0BF;
  --border:      rgba(77, 166, 232, 0.15);
  --shadow-blue: 0 8px 40px rgba(77, 166, 232, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 22px;
}

h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 18px;
}

h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--teal);
  display: block;
}

.section-sub {
  font-size: clamp(0.9rem, 1.3vw, 1.04rem);
  color: var(--mid);
  line-height: 1.75;
  max-width: 520px;
  font-weight: 300;
}

section { padding: clamp(64px, 8vw, 110px) 5%; position: relative; z-index: 1; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(77, 166, 232, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(77, 166, 232, 0.4);
  filter: brightness(1.05);
}

.btn-full { width: 100%; justify-content: center; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 251, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--blue-dark); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--teal-dark); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal-dark); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--teal)) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 16px rgba(77, 166, 232, 0.3);
}

.nav-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-ham span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 63px; left: 0; right: 0;
  background: rgba(245, 251, 255, 0.97);
  backdrop-filter: blur(16px);
  padding: 20px 5%;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--mid); padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .m-cta { background: linear-gradient(135deg, var(--blue), var(--teal)); color: white; text-align: center; padding: 14px; border-radius: 100px; border: none; margin-top: 12px; font-weight: 600; }

/* ── BLOBS ── */
.bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.blob1 {
  width: clamp(300px, 45vw, 560px); height: clamp(300px, 45vw, 560px);
  background: radial-gradient(circle, rgba(77, 166, 232, 0.18) 0%, transparent 70%);
  top: -15%; right: -8%;
}
.blob2 {
  width: clamp(200px, 30vw, 380px); height: clamp(200px, 30vw, 380px);
  background: radial-gradient(circle, rgba(61, 203, 168, 0.18) 0%, transparent 70%);
  bottom: 5%; left: -5%;
}

/* ── SUPPORT HERO ── */
.support-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 12vw, 140px) 5% clamp(60px, 8vw, 90px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #EBF6FF 0%, #E5FAF4 100%);
}

.support-hero-inner {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.support-hero-text .hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--mid);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  gap: 12px;
  box-shadow: var(--shadow-blue);
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--blue); }

.search-icon { font-size: 1rem; flex-shrink: 0; opacity: 0.5; }

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  flex: 1;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--light); }

.search-btn {
  padding: 11px 22px;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── QUICK ACCESS CARDS ── */
.quick-access {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
  border-color: rgba(77, 166, 232, 0.35);
}

.qa-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wi-blue { background: rgba(77, 166, 232, 0.12); }
.wi-teal { background: rgba(61, 203, 168, 0.12); }
.wi-warm { background: rgba(245, 180, 100, 0.12); }

.qa-card > div { flex: 1; }
.qa-card h4 { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--charcoal); margin-bottom: 3px; }
.qa-card p  { font-size: 0.8rem; color: var(--mid); }

.qa-arrow {
  font-size: 1.1rem;
  color: var(--blue);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.qa-card:hover .qa-arrow { opacity: 1; transform: translateX(4px); }

/* ── STATUS BAR ── */
.status-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 5%;
  position: relative;
  z-index: 1;
}

.status-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(61, 203, 168, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 203, 168, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(61, 203, 168, 0.1); }
}

.status-text { font-size: 0.83rem; color: var(--mid); flex: 1; }
.status-link { font-size: 0.83rem; color: var(--blue-dark); text-decoration: none; font-weight: 500; white-space: nowrap; }
.status-link:hover { text-decoration: underline; }

/* ── CATEGORIES ── */
.categories-section {
  background: white;
  padding: clamp(52px, 7vw, 90px) 5%;
}

.section-header { margin-bottom: 44px; }
.section-header .section-sub { margin-top: 10px; }

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: rgba(77, 166, 232, 0.05);
}

.cat-card.active {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(77, 166, 232, 0.3);
}

.cat-icon { font-size: 1rem; }

/* ── FAQ ── */
.faq-section {
  background: var(--cream);
  padding: clamp(64px, 8vw, 110px) 5%;
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item.hidden { display: none; }

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(77, 166, 232, 0.35);
  box-shadow: var(--shadow-blue);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--blue-dark); }

.faq-question span:first-child { flex: 1; }

.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(77, 166, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-dark);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 26px 24px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--blue-dark);
  font-weight: 500;
}

/* ── SEM RESULTADOS ── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-results-icon { font-size: 2.5rem; }
.no-results p { font-size: 1rem; color: var(--mid); }

/* ── CONTACT SUPPORT SECTION ── */
.contact-support-section {
  background: linear-gradient(160deg, #EBF6FF 0%, #E5FAF4 100%);
  padding: clamp(64px, 8vw, 110px) 5%;
  position: relative;
  overflow: hidden;
}

.blob-contact1 {
  width: clamp(300px, 40vw, 500px); height: clamp(300px, 40vw, 500px);
  background: radial-gradient(circle, rgba(61, 203, 168, 0.2) 0%, transparent 70%);
  bottom: -10%; right: -5%;
}

.cs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Info cards */
.cs-info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.cs-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}

.cs-info-icon {
  font-size: 1.3rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(77, 166, 232, 0.1), rgba(61, 203, 168, 0.1));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cs-info-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.cs-info-card p {
  font-size: 0.82rem;
  color: var(--mid);
}

.cs-info-card p a {
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.cs-info-card p a:hover {
  color: var(--teal-dark);
}

/* ── FORMULÁRIO ── */
.cs-form-wrap {
  background: white;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-blue);
}

.cs-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  width: 100%;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--light); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #E06060;
}

/* Attach area */
.form-attach label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }

.attach-area {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  color: var(--mid);
  font-size: 0.85rem;
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}

.attach-area:hover { border-color: var(--blue); background: rgba(77, 166, 232, 0.03); }

.attach-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.attach-name {
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 500;
}

/* Mensagem de sucesso */
.form-success {
  background: rgba(61, 203, 168, 0.1);
  border: 1px solid rgba(61, 203, 168, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-success span { font-size: 1.5rem; }
.form-success p { font-size: 0.9rem; color: var(--teal-dark); font-weight: 500; }

/* ── FOOTER ── */
footer {
  background: #111820;
  color: rgba(255, 255, 255, 0.4);
  padding: clamp(36px, 5vw, 52px) 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.footer-logo      { display: flex; align-items: center; gap: 10px; }
.footer-logo img  { width: 28px; height: 28px; object-fit: contain; opacity: 0.85; }
.footer-logo-text { font-family: 'DM Serif Display', serif; font-size: 1rem; color: rgba(255,255,255,0.75); }
.footer-logo-text span { color: var(--teal-light); }

.footer-links     { display: flex; gap: clamp(14px, 2.5vw, 28px); flex-wrap: wrap; }
.footer-links a   { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-legal { font-size: 0.75rem; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible     { opacity: 1; transform: none; }
.reveal-delay-1     { transition-delay: 0.12s; }
.reveal-delay-2     { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .support-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .cs-inner           { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 14px 4%; }
  .nav-links { display: none; }
  .nav-ham   { display: flex; }

  .support-hero {
    min-height: auto;
    padding: 100px 4% 52px;
    text-align: center;
  }

  .support-hero-inner { text-align: left; }
  .support-hero-text .hero-sub { max-width: 100%; }

  .search-bar { flex-wrap: wrap; border-radius: 20px; padding: 12px 16px; gap: 10px; }
  .search-btn { width: 100%; }

  .faq-list { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .status-inner { gap: 8px; }

  .categories-section,
  .faq-section { padding: 52px 4%; }
  .contact-support-section { padding: 60px 4%; }

  .cs-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.05rem; }
  .cat-grid { gap: 8px; }
  .cat-card { padding: 8px 16px; font-size: 0.82rem; }

  .footer-links { justify-content: center; }
  footer { flex-direction: column; text-align: center; align-items: center; }
}

/* ── FEEDBACK DO FORMULÁRIO ──────────────────────────────── */

/* Sucesso */
.form-success {
  background: rgba(61, 203, 168, 0.1);
  border: 1px solid rgba(61, 203, 168, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeInUp 0.35s ease;
}

.form-success > span       { font-size: 1.5rem; flex-shrink: 0; }
.form-success p            { font-size: 0.9rem; color: var(--teal-dark); font-weight: 500; margin: 0; }
.ticket-label              { font-size: 0.8rem !important; color: var(--mid) !important;
                             font-weight: 400 !important; margin-top: 4px !important; }
.ticket-id                 { font-family: monospace; letter-spacing: 0.05em; color: var(--charcoal); }

/* Erro */
.form-error {
  background: rgba(224, 96, 96, 0.07);
  border: 1px solid rgba(224, 96, 96, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeInUp 0.35s ease;
}

.form-error > span  { font-size: 1.4rem; flex-shrink: 0; }
.form-error .error-msg { font-size: 0.9rem; color: #C0392B; font-weight: 500; margin: 0; }

/* Spinner no botão */
.btn-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeInUp   {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── LISTA DE ARQUIVOS ANEXADOS ──────────────────────────────── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--mid);
  animation: fadeInUp 0.2s ease;
}

.file-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.file-item .file-type {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(77, 166, 232, 0.1);
  color: var(--blue-dark);
  flex-shrink: 0;
}

.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light);
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.file-remove:hover { color: #C0392B; }