.uscis-forms-container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f4f6fa;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  font-family: 'Poppins', sans-serif;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.category-tabs .tab {
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #e0e5ec);
  color: #1E2A57;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.08), -3px -3px 8px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease-in-out;
  text-align: center;
  flex: 0 0 auto;
  width: 160px;
}

.category-tabs .tab:hover {
  background: linear-gradient(145deg, #eef3ff, #ffffff);
  transform: translateY(-2px);
}

.category-tabs .active {
  background: #1E2A57;
  color: white;
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.15), inset -2px -2px 6px rgba(255, 255, 255, 0.1);
}

.form-controls, #dropdownWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#dropdownWrapper {
  background: linear-gradient(145deg, #ffffff, #e0e5ec); /* fundo claro */
  padding: 0.75rem 1rem;        /* espaço interno */
  border-radius: 12px;          /* cantos arredondados */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.08), -3px -3px 8px rgba(255,255,255,0.9);
}

#dropdownWrapper select.form-select-dropdown {
  background: transparent;
  border: none;
  outline: none;
}

.form-select-dropdown,
#shareBtn {
  height: 48px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #e0e5ec);
  color: #1E2A57;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.08), -3px -3px 8px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease-in-out;
}

.form-select-dropdown {
  width: 100%;
  max-width: 400px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%231E2A57' viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select-dropdown:hover,
#shareBtn:hover {
  background: linear-gradient(145deg, #eef3ff, #ffffff);
  transform: translateY(-1px);
}

#shareBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  max-width: 400px;
  width: 100%;
  justify-content: center;
}

.share-buttons {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.12);
  color: white;
  transform: translateY(0);
}

.share-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#whatsappShare {
  background: linear-gradient(145deg, #25D366, #1ebe5c);
}

#smsShare {
  background: linear-gradient(145deg, #007aff, #005fcc);
}

#instagramShare {
  background: linear-gradient(145deg, #C13584, #ad2c73);
}

.share-buttons a i {
  font-size: 1.1rem;
}

/* Iframe wrapper */
.form-wrapper{
  background: transparent !important;
  padding: 0 !important;
}

.form-wrapper iframe{
  width:100%!important;
  border:0!important;
}

#placeholderMsg {
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  color: #333;
}

/* Share Dropdown Styles */
.share-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.share-dropdown-btn {
  height: 48px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #1E2A57;
  background: linear-gradient(145deg, #ffffff, #e0e5ec);
  color: #1E2A57;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.08), -3px -3px 8px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.share-dropdown-btn .dropdown-arrow {
  font-size: 1.2em;
  margin-left: 0.5em;
  color: #1E2A57;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s;
}

.share-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  bottom: 100%;
  background: white !important;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 10000 !important;
  padding: 1rem !important;
  margin-bottom: 0.5rem;
  opacity: 1 !important;
}

.share-dropdown-content.show {
  display: block;
  left: 0;
  right: auto;
  min-width: 180px;
  background: white !important;
  opacity: 1 !important;
}

/* Remove the hover display */
.share-dropdown:hover .share-dropdown-content {
  display: none;
}

.share-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #1E2A57;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.share-dropdown-content a:hover {
  background: #f4f6fa;
}

.share-dropdown-content a i {
  width: 20px;
  text-align: center;
}

.btn-whatsapp {
  color: #25D366 !important;
}

.btn-messenger {
  color: #0084FF !important;
}

.btn-sms {
  color: #007aff !important;
}

.copy-link {
  color: #1E2A57 !important;
}

/* Remove old share button styles */
#shareBtn,
.share-buttons {
  display: none;
}

/* Responsivo */
@media (max-width: 600px) {
  .category-tabs {
    justify-content: space-between;
  }

  .category-tabs .tab {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }

  .form-controls, #dropdownWrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-select-dropdown {
    width: 100%;
  }

  .share-dropdown {
    width: 100%;
  }

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

  .share-dropdown-content {
    width: 100%;
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid #e0e5ec;
  }
  /* --- FUNDO DO POP-UP DE COMPARTILHAMENTO --- */
.share-dropdown-content,
.share-dropdown-fixed {                     /* classe que o script injeta no <body> */
  background: linear-gradient(145deg, #ffffff, #e0e5ec) !important;
  border: none !important;                 /* remove a borda cinza inline */
  border-radius: 12px !important;          /* mesmo raio dos botões */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.08),
              -3px -3px 8px rgba(255,255,255,0.9) !important;
  padding: 1rem !important;                /* garante espaço interno uniforme */
}

/* itens internos mantêm cor de texto e recuo coerentes */
.share-dropdown-content a,
.share-dropdown-fixed a {
  color: #1E2A57;
  font-weight: 600;
}

/* seta gira quando o menu está aberto (opcional) */
.share-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}
}
