#email-trigger {
    height: 20px;
    width: auto;
    /*display: inline-block;*/
    cursor: pointer;
    vertical-align: middle;
  }
  
  #email-trigger-container {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  
  
  /* Overlay */
  #email-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
  }
  
  .email-overlay-hidden {
    display: none !important;
  }
  
  /* Popup box */
  #email-box {
    width: min(90vw, 520px);
    background: rgba(20, 24, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 30px 28px 24px;
    box-shadow:
      0 0 28px rgba(255, 170, 50, 0.10),
      0 18px 45px rgba(0, 0, 0, 0.45);
    animation: emailFadeIn 0.28s ease;
  }
  
  @keyframes emailFadeIn {
    from {
      opacity: 0;
      transform: translateY(-16px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  #email-box h3 {
    margin: 0 0 20px 0;
    text-align: center;
    /*font-family: "Bungee Hairline", sans-serif;*/
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
  }
  
  /* Form layout */
  #email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  #email-box input,
  #email-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  
  #email-box textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  #email-box input::placeholder,
  #email-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.58);
  }
  
  #email-box input:focus,
  #email-box textarea:focus {
    border-color: rgba(80, 200, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(80, 200, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
  }
  
  .email-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
  }
  
  .email-buttons button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #35cfff;
    border-radius: 12px;
    padding: 10px 16px;
    /*font-family: "Bungee Hairline", sans-serif;*/
    font-size: 0.88rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }
  
  .email-buttons button:hover {
    background: rgba(53, 207, 255, 0.12);
    border-color: rgba(53, 207, 255, 0.45);
    transform: translateY(-1px);
  }
  
  .email-buttons button:active {
    transform: translateY(0);
  }
  
  .human-check {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .human-check label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
  }
  
  .email-error {
    min-height: 20px;
    color: #ff8f8f;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  #message-counter{
    color: white;
  }

  .pulse-glow-box {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
  }