*,
:before,
:after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}

/* Remove scroll e ajuste de altura/width para 100% da viewport */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Container principal da página */
.container {
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #18181b;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* Main container for the whole page */
.main-container {
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin-top: -2.5rem;
}

/* Conteúdo principal centralizado */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
  z-index: 1;
  animation: slideInFromBottom 0.8s ease-out 0.3s both;
  border-radius: 1rem;
}

/* Background image wrapper */
.background-image {
  position: fixed;
  inset: 0;
  z-index: -10;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Background image itself */
.background-image img,
.background-image picture {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

/* Overlay for background image */
.background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000b 100%, #101016 0%);
  z-index: -1;
  opacity: 0.85;
}

/* Título principal */
.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.5rem auto;
  line-height: 1.25;
  text-shadow: 0 2px 8px #000a;
  animation: slideInFromBottom 0.8s ease-out 0.5s both;
}

/* Logos header */
.header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: slideInFromTop 0.6s ease-out 0.4s both;
}

/* Logo image */
.logo {
  width: clamp(80px, 20vh, 160px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px #0008);
}

/* Main description paragraph */
.main-description {
  font-size: 1.125rem;
  color: #e5e7eb;
  line-height: 1.625;
  text-shadow: 0 1px 4px #0007;
  animation: slideInFromBottom 0.8s ease-out 0.7s both;
}

/* Arrow icon inside CTA */
.arrow-icon {
  margin-left: 0.75rem;
  transition: transform 0.3s;
}

.button:hover .arrow-icon {
  transform: translateX(0.25rem);
}

/* Overlay do modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #0009;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: none;
}

/* Show utility (for toggling visibility) */
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

/* Modal */
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px; /* scrollbar space */
  background-color: #404040;
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  width: 100%;
  max-width: 42rem;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: none;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.05s;
}

.modal-overlay.hide .modal-content {
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  transition-delay: 0s;
}

/* Título do modal */
.modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

/* Botão de fechar modal */
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Corrige sobreposição e espaçamento dos campos do formulário */
.modal-form-group {
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.modal-form-label {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #d4d4d4;
  text-align: left;
}

.modal-form-input,
.modal-form-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* Grupo de formulário do modal */
.modal-form-group {
  margin-bottom: 1.25rem;
}

/* Rótulo do formulário do modal */
.modal-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #d4d4d4;
  font-size: 1rem;
}

/* Inputs do modal */
.modal-form-input {
  border: 1px solid #525252;
  background-color: #525252;
  color: #fff;
  padding: 1rem;
  width: 100%;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.modal-form-input::placeholder {
  color: #a3a3a3;
  opacity: 1;
}

/* Textarea do modal */
.modal-form-textarea {
  border: 1px solid #525252;
  background-color: #525252;
  color: #fff;
  padding: 1rem;
  width: 100%;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  min-height: 120px;
  margin-bottom: 1.75rem;
  resize: vertical;
}

.modal-form-textarea::placeholder {
  color: #a3a3a3;
  opacity: 1;
}

.button {
  margin: 0.5rem auto;
  width: 60%;
  padding: 1rem;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  animation: springIn 0.6s ease-out 0.7s both;
  transform: scale(0.8);
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.button:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
}

.button:hover::before {
  left: 100%;
}

.button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  color: #d4d4d4;
  background-color: #404040f2;
  backdrop-filter: blur(4px);
  font-size: 0.875rem;
  animation: fadeIn 1.5s ease-in;
}

.footer p {
  margin: 0;
}

/* Toast notification container */
.toast-container .toast-success,
.toast-container .toast-error,
.toast-container .toast-default {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 260px;
  width: 60%;
  max-width: 90vw;
  padding: 1.25rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  pointer-events: auto;
  animation: slideInFromRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-container .toast-success {
  background: linear-gradient(90deg, #16a34a 80%, #22c55e 100%);
  color: #fff;
}

.toast-container .toast-error {
  background: linear-gradient(90deg, #dc2626 80%, #ef4444 100%);
  color: #fff;
}

.toast-container .toast-default {
  background: #404040;
  color: #fff;
}

/* Toast content */
.toast-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 0.25rem;
}

/* Toast title */
.toast-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  color: #fff;
  text-shadow: 0 1px 4px #0004;
}

/* Toast description */
.toast-description {
  font-size: 0.98rem;
  color: #f3f4f6;
  text-shadow: 0 1px 2px #0002;
  word-break: break-word;
}

/* Toast close button */
.toast-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
  align-self: flex-start;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-height: 720px) {
  .main-title {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (max-height: 720px) {
  .main-description {
    font-size: 1rem;
    line-height: 1.1;
  }
}

@media (max-height: 480px) {
  .button {
    margin: 0 auto;
    padding: 0.5rem;
    width: 50%;
    font-size: 1rem;
  }
}
