/* Estilos aplicados do formfilia.css para presdir.php */

/* —— Header (estilo do formfilia.php) —— */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: black;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  color: #d32f2f;
  text-decoration: none;
}

.logo-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.logo-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-30deg);
  z-index: 2;
  pointer-events: none;
}

.logo:hover .logo-wrapper::after {
  left: 150%;
  transition: left 0.6s ease;
}

.logo img {
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: 400;
  font-family: 'Bebas Neue', sans-serif;
  color: #f24b16;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: rgb(255, 191, 146);
  font-weight: 500;
  width: 100px;
  position: relative;
  z-index: 1;
  font-size: 12px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, rgba(56, 18, 0, 1) 0%, rgba(171, 34, 0, 1) 100%);
  transform: skewX(-45deg);
  border-radius: 2px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #121212;
  transform: skewX(-45deg);
  border-radius: 2px;
  z-index: -1;
  border-bottom: 2px solid #f24b16;
  transition: width 0.3s ease;
  opacity: 0;
}

.nav-menu a:hover {
  color: #f24b16;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
  opacity: 1;
}

.nav-menu a:hover::before {
  border-color: rgba(242, 75, 22, 0.2);
}

.nav-menu a.active::before {
  border-color: rgba(242, 75, 22, 0.4);
}

header h2 {
  color: #f24b16;
  font-family: 'Bebas Neue', sans-serif;
  margin: 0 5px;
  font-weight: 400;
  opacity: 0.7;
}

.login-btn {
  font-family: 'Lexend Tera', sans-serif;
  letter-spacing: -2px;
  background: linear-gradient(180deg, rgba(251, 105, 0, 0.8) 0%, rgba(255, 116, 46, 0.2) 50%, rgba(184, 40, 0, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 12px;
  height: 30px;
  cursor: pointer;
  border-radius: 50px 10px 61px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.8), 0 0 0 6.4px #f63700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.login-btn:hover {
  box-shadow: 0 0 0 7px black, 0 0 0 12px #1f0808ff;
  color: #ffe2daff;
  animation: piscar2 0.3s ease-in-out;
}

@keyframes piscar2 {
  0% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #ffddd0ff;
  }

  10% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #ff7044be;
  }

  20% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #2b0900ff;
  }

  40% {
    box-shadow: 0 0 0 5.3px rgba(0, 0, 0, 0.8), 0 0 0 6.4px #ff6944be;
  }

  60% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #2b0a00ff;
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.8), 0 0 0 7px #ffddd0ff;
  }

  80% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #ff8944be;
  }

  100% {
    box-shadow: 0 0 0 7px black, 0 0 0 12px #2b0e00ff;
  }
}

.logout-link {
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  font-family: 'Lexend Tera', sans-serif;
  letter-spacing: 2px;
  background: linear-gradient(180deg, rgba(211, 47, 47, 0.8) 0%, rgba(255, 82, 82, 0.2) 50%, rgba(184, 0, 0, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  padding: 5px 12px;
  height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-size: 10px;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f24b16;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 990;
}

.overlay.active {
  display: block;
}

/* —— Página de filiação —— */
.filial-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hidden {
  display: none !important;
}

.filial-hero-title {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.57);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(13.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.filial-hero-title h1 {
  font-family: 'Orbitron', 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, rgb(219, 219, 219), rgb(255, 255, 255), rgb(212, 212, 212));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filial-hero-title h1 i {
  color: #fb6900;
  -webkit-text-fill-color: #fb6900;
  font-size: 1.4rem;
}

.filial-hero-title p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Cards de escolha */
.filial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.filial-card {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.57);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(13.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.filial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 105, 0, 0.5);
  box-shadow: 0 12px 40px rgba(251, 105, 0, 0.15);
}

.filial-card i {
  font-size: 3rem;
  color: #fb6900;
  margin-bottom: 1rem;
  display: block;
}

.filial-card h2 {
  font-family: 'Kanit', 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Formulários (glass como .hero) */
.filial-form-panel {
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.57);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(13.5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2.5rem 1.75rem 2rem;
  position: relative;
  animation: filiaFadeIn 0.45s ease;
}

@keyframes filiaFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filial-form-title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  color: #fb6900;
  margin: 2.5rem 0 1.75rem;
  letter-spacing: 1px;
}

.btn-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgb(255, 191, 146);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 50px 10px 61px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
}

.btn-back:hover {
  color: #f24b16;
  border-color: rgba(242, 75, 22, 0.4);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(255, 191, 146);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label i {
  color: #fb6900;
}

.form-group .optional {
  font-weight: 400;
  text-transform: none;
  opacity: 0.7;
  font-size: 0.75rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus {
  border-color: #fb6900;
  box-shadow: 0 0 0 2px rgba(251, 105, 0, 0.25);
}

.form-group select option {
  background: #121212;
  color: #fff;
}

.file-drop {
  border: 2px dashed rgba(251, 105, 0, 0.35);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: 0.25s;
}

.file-drop i {
  font-size: 2rem;
  color: #fb6900;
  opacity: 0.8;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: #fb6900;
  background: rgba(251, 105, 0, 0.08);
  color: #fff;
}

.file-drop input {
  display: none;
}

.filial-pagamento-info {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(251, 105, 0, 0.1);
  border: 1px solid rgba(251, 105, 0, 0.3);
}

.filial-pagamento-info strong {
  color: #fb6900;
}

.btn-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 14px 24px;
  font-family: 'Lexend Tera', sans-serif;
  letter-spacing: -1px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px 10px 61px 10px;
  background: linear-gradient(180deg, rgba(251, 105, 0, 0.9) 0%, rgba(255, 116, 46, 0.3) 50%, rgba(184, 40, 0, 0.85) 100%);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.8), 0 0 0 6.4px #f63700;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  box-shadow: 0 0 0 7px black, 0 0 0 12px #1f0808ff;
  color: #ffe2daff;
  animation: piscar2 0.3s ease-in-out;
}

/* Toast */
#toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translate(-50%, -12px) scale(0.95);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 14px 28px;
  border-radius: 50px 10px 61px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

#toast.success {
  border-color: rgba(251, 105, 0, 0.6);
}

#toast.success i {
  color: #fb6900;
}

#toast.error {
  border-color: #e74c3c;
}

#toast.error i {
  color: #ff6b6b;
}

/* Autocomplete */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.98);
  border-radius: 8px;
  border: 1px solid rgba(251, 105, 0, 0.35);
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.autocomplete-results.active {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  transition: 0.2s;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(251, 105, 0, 0.15);
  color: #fb6900;
}

/* Modal PIX */
.pix-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pix-modal.active {
  display: flex;
}

.pix-modal-content {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(13.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.57);
}

.pix-modal-content h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #fb6900;
  margin-bottom: 8px;
}

.pix-modal-valor {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.pix-modal-status {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.pix-modal-status.success {
  color: #7fff7f;
}

.pix-qr-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.pix-qr-img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.pix-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pix-copy-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.75rem;
}

.pix-copy-btn {
  background: linear-gradient(180deg, rgba(251, 105, 0, 0.9) 0%, rgba(184, 40, 0, 0.85) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pix-modal-hint {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.pix-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgb(255, 191, 146);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.pix-modal-close:hover {
  color: #f24b16;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 105, 0, 0.4);
  border-radius: 4px;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(251, 105, 0, 0.3);
    gap: 1.25rem;
    align-items: stretch;
  }

  .nav-menu.active {
    right: 0;
  }

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

  .logo-text {
    font-size: 12px;
    max-width: 140px;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 600px) {
  .filial-cards {
    flex-direction: column;
  }

  .filial-card {
    max-width: 100%;
  }

  .filial-form-panel {
    padding: 2rem 1rem 1.5rem;
  }
}