/* ===== ABRIR CHAMADO - COM ACESSIBILIDADE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #023882;
  --primary-light: #1a5bb8;
  --secondary: #00a859;
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== ACESSIBILIDADE: SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

/* ===== ACESSIBILIDADE: FOCO VISÍVEL ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
  background-color: rgba(255, 183, 77, 0.1);
}

/* ===== HEADER ===== */
header {
  background: var(--primary);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 45px;
  width: auto;
  display: block;
}

/* ===== MENU HAMBURGUER ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== MENU NAVEGAÇÃO ===== */
#menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.menu-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-link i {
  color: white;
  font-size: 0.9rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== SUBMENU ===== */
.has-submenu {
  position: relative;
}

.submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
  padding: 0.5rem 0;
}

.has-submenu:hover .submenu-container,
.has-submenu:focus-within .submenu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu {
  list-style: none;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.submenu li a i {
  color: var(--primary);
  width: 18px;
}

.submenu li a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3rem 1rem;
  color: white;
  width: 100%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ===== TÍTULO DA PÁGINA ===== */
h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  margin: 2rem 0 1rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  width: 100%;
}

/* ===== VÍDEO CONTAINER ===== */
.video-container {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: fit-content;
}

.video-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.video-text p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== FORMULÁRIO ===== */
.form-container {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 56, 130, 0.1);
}

.form-group input[readonly] {
  background: var(--light-gray);
  border-color: #d0d0d0;
}

.form-help {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge-required {
  background: var(--secondary);
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  margin-left: 4px;
}

.badge-auto {
  background: #22c55e;
  color: white;
  font-size: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  margin-left: 6px;
  text-transform: uppercase;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
  flex-shrink: 0;
}

.checkbox-group label {
  color: var(--dark);
  font-size: 0.95rem;
  margin: 0;
}

.checkbox-group a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-submit:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

/* ===== CONCESSIONÁRIA ===== */
.concessionaria-group {
  border-left: 4px solid #f59e0b;
  padding-left: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

#concessionaria {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

/* ===== OPERADORA ===== */
.operadora-group {
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
  background: rgba(0, 168, 89, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.input-with-icon {
  position: relative;
}

#operadora {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white 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='%236c757d' 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") no-repeat right 12px center;
  background-size: 16px;
}

#operadora:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 56, 130, 0.1);
}

#sugestoes-operadoras {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sugestoes-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sugestoes-badge .badge-concessionaria {
  color: #166534;
  font-size: 0.9rem;
}
.sugestoes-badge .badge-concessionaria strong {
  color: #064e3b;
}

.sugestoes-badge .badge-operadoras {
  color: #1e40af;
  font-size: 0.85rem;
}
.sugestoes-badge .badge-operadoras strong {
  color: #1e3a8a;
}
.sugestoes-badge .badge-operadoras .op-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  margin: 2px 3px 2px 0;
}

/* ===== ANEXO ===== */
.anexo-group {
  border-left: 4px solid #8b5cf6;
  padding-left: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.anexo-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn-anexo {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-anexo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--primary-light);
}

.btn-anexo:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

.btn-anexo.btn-galeria {
  background: var(--secondary);
}

.btn-anexo.btn-galeria:hover {
  background: #008a4a;
}

#anexo {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  margin-top: 4px;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

#anexo:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

#anexo:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
  border-color: var(--primary);
}

#preview-container {
  display: none;
  margin-top: 10px;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: #f0fdf4;
  animation: fadeIn 0.3s ease;
}

#preview-imagem {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  object-fit: contain;
}

#preview-nome {
  font-size: 0.85rem;
  color: #1e2a32;
  font-weight: 500;
  display: inline-block;
  margin-right: 10px;
}

.btn-remover {
  background: #dc3545;
  color: white;
  border: none;
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-remover:hover {
  background: #b02a37;
}

.btn-remover:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

#anexo-status {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0 0;
  width: 100%;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list li i {
  color: var(--secondary);
  width: 18px;
}

.footer-list li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-list li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-address {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.social-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  #menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  #menu.active {
    right: 0;
  }

  .menu-nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .menu-nav li {
    width: 100%;
  }

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .submenu-container {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    display: none;
    margin-top: 0.5rem;
  }

  .has-submenu.active .submenu-container {
    display: block;
  }

  .has-submenu .nav-link i.fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s;
  }

  .has-submenu.active .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
  }

  .submenu li a {
    color: white;
    padding: 0.75rem 0 0.75rem 2rem;
  }

  .submenu li a i {
    color: var(--secondary);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .video-container {
    padding: 1.5rem;
  }

  .video-wrapper {
    max-width: 240px;
  }

  .form-container {
    padding: 1.5rem;
  }

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

  h2 {
    font-size: 1.8rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand,
  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-list li {
    justify-content: center;
  }

  .footer-address {
    justify-content: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .concessionaria-group,
  .operadora-group,
  .anexo-group {
    padding-left: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .logo-container img {
    height: 35px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .video-wrapper {
    max-width: 200px;
  }

  .video-text h3 {
    font-size: 1.5rem;
  }

  .form-container {
    padding: 1rem;
  }

  .checkbox-group {
    flex-wrap: wrap;
  }

  .checkbox-group label {
    font-size: 0.85rem;
  }

  .btn-submit {
    padding: 0.9rem;
  }

  .footer-logo img {
    height: 45px;
  }

  .anexo-buttons {
    flex-direction: column;
  }

  .btn-anexo {
    padding: 14px 16px;
    min-width: unset;
    font-size: 0.95rem;
  }

  #preview-imagem {
    max-height: 180px;
  }
}