:root {
  --modal-bg: rgba(20, 20, 20, 0.95);
  --modal-border: rgba(255, 255, 255, 0.2);
  --modal-radius: 12px;
  --input-bg: #1a1a1a;
  --input-text: #fff;
  --accent-color: #68743d;
}

#newsletterModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  inset: 0;
}

#newsletterModal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#newsletterTrigger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}


.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: var(--modal-radius);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#newsletterModal.active .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: none;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--input-text);
}

.modal-content .checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5em;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.modal-content input[type="checkbox"] {
  accent-color: var(--accent-color);
}

.modal-content form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: #df8433;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1rem;             
  color: rgba(255, 255, 255, 0.4); 
  cursor: pointer;
  padding: 0.01rem;             
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}


@keyframes pulsePlane {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
  }
}
@keyframes flyIn {
  0% { transform: translateX(-100%) rotate(0); opacity: 0; }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}


.dotlottie-plane {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 120px;
  height: 120px;
  z-index: 1001;
  cursor: pointer;
  display: block;
  opacity: 1;
  transition: transform 0.3s ease;
  pointer-events: auto;
}
.dotlottie-plane.static {
  width: 150px;
  height: 150px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  z-index: 1001;
  animation: idleFloat 3s ease-in-out infinite;
}


.dotlottie-plane:hover {
  transform: scale(1.1) rotate(-5deg);
}

.dotlottie-plane.idle {
  animation: idleFloat 3s ease-in-out infinite;
}

@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 480px) {
  .dotlottie-plane {
    width: 64px;
    height: 64px;
  }
}





