/* 
   IZZIE - Premium Components CSS 
   Este arquivo contém os estilos customizados que não dependem da compilação do Tailwind.
*/

/* Language Selector */
#lang-selector {
  position: relative;
}

#lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  padding: 12px 0;
  border-radius: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #213759;
  color: #ffffff;
}

/* Invisible bridge for hover stability */
#lang-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dark #lang-dropdown {
  background-color: rgba(255, 255, 255, 0.95);
  color: #213759;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.12);
}

#lang-selector:hover #lang-dropdown,
#lang-selector.is-active #lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: "Manrope", sans-serif;
}

.lang-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.dark .lang-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.lang-link-active {
  color: #ff8a00 !important;
  font-weight: 800;
}

.lang-link img {
  width: 28px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 24px;
}

.dark .lang-divider {
  background: rgba(0, 0, 0, 0.04);
}

/* --- LGPD Banner Styling --- */
#lgpd-banner {
  z-index: 9999 !important;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#lgpd-banner.hidden-state {
  opacity: 0 !important;
  transform: translateY(100px) translateX(-50%) !important;
  pointer-events: none;
}

#lgpd-banner.visible-state {
  opacity: 1 !important;
  transform: translateY(0) translateX(-50%) !important;
  pointer-events: auto;
}

#lgpd-banner .inner-container {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px 40px;
  border-radius: 20px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.dark #lgpd-banner .inner-container {
  background: rgba(33, 55, 89, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.izzie-callout {
  margin-bottom: 5.5rem !important;
}

#lgpd-banner p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  font-weight: 500;
  font-family: "Manrope", sans-serif;
}

#lgpd-banner button {
  background: #2299d6;
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: "Manrope", sans-serif;
  text-transform: none;
  box-shadow: 0 10px 20px rgba(34, 153, 214, 0.2);
}

#lgpd-banner button:hover {
  background: #f07d3b;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(240, 125, 59, 0.3);
}

/* Mobile Adjustments for Banner */
@media (max-width: 991px) {
  #lgpd-banner {
    width: 95% !important;
    max-width: calc(100% - 20px) !important;
  }

  #lgpd-banner.hidden-state {
    transform: translateY(100px) translateX(-50%) !important;
  }

  #lgpd-banner.visible-state {
    transform: translateY(0) translateX(-50%) !important;
  }

  #lgpd-banner .inner-container {
    flex-direction: column;
    padding: 20px 24px;
    text-align: center;
    gap: 16px;
  }

  #lgpd-banner p {
    font-size: 14px;
  }

  #lgpd-banner button {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* replacing text in images with real texts */
.izzie-lp-chat-1 span,
.izzie-lp-chat-2 span,
.izzie-lp-chat-3 span {
  position: absolute;
  display: block !important;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  width: 190px;
}

.izzie-lp-chat-1 span {
  padding-left: 1.6rem;
  top: 21px;
  left: 70px;
  z-index: 999;
}

.izzie-lp-chat-2 span {
  top: 22px;
  left: -6px;
  z-index: 999;
  color: #fff;
  width: 170px !important;
}

.izzie-lp-chat-3 span {
  padding-left: 0.7rem;
  top: 30px;
  left: 84px;
  z-index: 999;
}

.izzie-chat-interact-wrapper {
  position: relative;
}

.izzie-chat-interact-wrapper img {
  z-index: 8;
}

.izzie-chat-interact-wrapper {
  position: relative;
}

.izzie-chat-interact-wrapper img {
  z-index: 8;
}

.izzie-lp-interact-1,
.izzie-lp-interact-2 {
  position: absolute;
  display: block;
  z-index: 9 !important;
  font-size: 0.75rem;
  line-height: 1.1;
  padding: 0.5rem;
}

.izzie-lp-interact-1 {
  top: 114px;
  right: 4px;
  width: 128px;
  padding: 0.5rem;
}

.izzie-lp-interact-2 {
  top: 170px;
  right: 70px;
  width: 126px;
  padding: 0.35rem 0.45rem;
  color: #fff;
}

[class*="izzie-chat-como-"] {
  position: relative;
}

[class*="izzie-chat-como-"] span {
  position: absolute;
  display: block;
  z-index: 999;
}

.izzie-chat-como-wrapper,
.izzie-chat-interact-wrapper {
  position: relative;
  container-type: inline-size;
  width: 100%;
}

.izzie-chat-como-1-1 {
  top: 126px;
  left: 76px;
  font-size: 1.1rem;
  width: 256px;
  line-height: 1.3;
}

.izzie-chat-como-1-2 {
  top: 256px;
  left: 56px;
  font-size: 1.1rem;
  width: 256px;
  line-height: 1.4;
}

@media (max-width: 639px) {
  .izzie-chat-como-1-1 {
    top: 30.8%;
    left: 19.8%;
    font-size: 4.6cqw;
    width: 66.7%;
  }

  .izzie-chat-como-1-2 {
    top: 65%;
    left: 14.6%;
    font-size: 4.6cqw;
    width: 66.7%;
  }

  .izzie-lp-interact-1 {
    top: 31.4% !important;
    right: 0.7% !important;
    width: 22.2% !important;
    font-size: 2.1cqw !important;
  }

  .izzie-lp-interact-2 {
    top: 47.5% !important;
    right: 12.1% !important;
    width: 21.8% !important;
    font-size: 2.1cqw !important;
  }
}

@media (width <=420px) {
  .izzie-chat-como-2-1 {
    top: 33.6% !important;
    left: 20% !important;
    width: 66.4% !important;
    font-size: 5.1cqw !important;
  }

  .izzie-chat-como-2-2 {
    top: 66.4% !important;
    left: 12.9% !important;
    width: 66.4% !important;
    font-size: 5.1cqw !important;
    height: 37.8cqw !important;
    overflow: hidden !important;
  }

  .izzie-chat-como-3-1 {
    top: 27.8% !important;
    left: 20% !important;
    width: 66.4% !important;
    font-size: 5.1cqw !important;
  }

  .izzie-chat-como-3-2 {
    top: 66.2% !important;
    left: 12.9% !important;
    width: 66.4% !important;
    font-size: 5.1cqw !important;
    height: 32.1cqw !important;
    overflow: hidden !important;
  }
}

.izzie-chat-como-2-1 {
  top: 94px;
  left: 56px;
  font-size: 0.9rem;
  width: 186px;
  line-height: 1.2;
}

.izzie-chat-como-2-2 {
  top: 186px;
  left: 36px;
  font-size: 0.9rem;
  width: 186px;
  line-height: 1.2;
  height: 106px;
  overflow: hidden;
}

.izzie-chat-como-3-1 {
  top: 78px;
  left: 56px;
  font-size: 0.9rem;
  width: 186px;
  line-height: 1.2;
}

.izzie-chat-como-3-2 {
  top: 180px;
  left: 36px;
  font-size: 0.9rem;
  width: 186px;
  line-height: 1.2;
  height: 90px;
  overflow: hidden;
}

.izzie-chat-como-4 {
  color: #fff;
  text-align: right;
}

.izzie-chat-como-4-1 {
  top: 148px;
  right: 114px;
  font-size: 0.9rem;
  width: 142px;
  line-height: 1.1;
  color: #fff;
}

.izzie-chat-como-4-2 {
  top: 290px;
  right: 110px;
  font-size: 0.9rem;
  width: 134px;
  line-height: 1.2;
  color: #fff;
}

@media (width <=1450px) {
  .izzie-chat-como-4-1 {
    top: 32.7% !important;
    right: 14.6% !important;
    width: 17% !important;
    font-size: 1.7cqw !important;
  }

  .izzie-chat-como-4-2 {
    top: 60.7% !important;
    right: 14.2% !important;
    width: 16% !important;
    font-size: 1.7cqw !important;
  }
}

@media (max-width: 1024px) {
  /* #main-header {
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    } */

  #main-header,
  #main-header > div {
    height: auto !important;
  }

  #main-header a[href="#top"] span {
    font-size: 2rem !important;
    margin-top: 1rem;
  }

  #main-header > div {
    flex-direction: column;
    gap: 1rem 0;
    padding: 0 0 1rem 0;
  }
}

/* Dark mode chat styling */
.dark .izzie-lp-interact-1,
.dark .izzie-chat-como-1-1,
.dark .izzie-chat-como-1-2,
.dark .izzie-chat-como-2-1,
.dark .izzie-chat-como-2-2,
.dark .izzie-chat-como-3-1,
.dark .izzie-chat-como-3-2 {
  color: #213759;
}

@media (max-width: 768px) {
  #main-header > div {
    flex-direction: row;
    padding: 1rem;
    align-items: center;
  }

  #main-header a[href="#top"] span {
    margin-top: 0;
  }

  main {
    margin-top: -1rem !important;
  }
}

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

.bg-\[\#2798D5\] {
  --tw-bg-opacity: 1;
  background-color: rgba(39, 152, 213 / var(--tw-bg-opacity, 1));
}

/* Form Response Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

#form-modal-overlay {
  animation: fadeInBg 0.3s ease-out;
}

@keyframes fadeInBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Responsiveness (450px and below) */
@media (max-width: 640px) {
  .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  #lp-contact-form {
    gap: 1rem !important;
  }
}
