.fab-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: Arial, sans-serif;
  transition: bottom 0.3s ease;
}


/* Define the Pulse Animation */
@keyframes fab-pulse {
  0% {
    /* Solid version of your color */
    box-shadow: 0 0 0 0 rgba(3, 136, 75, 0.7);
  }
  70% {
    /* Expand and fade to transparent */
    box-shadow: 0 0 0 15px rgba(3, 136, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 136, 75, 0);
  }
}

.fab {
  width: auto;           /* Allow it to expand */
  height: 50px;          /* Slightly shorter for an oblong look */
  padding: 0 25px;       /* Space on the left and right of the text */
  background-color: #03884B;
  animation: fab-pulse 2.5s infinite;
  border-radius: 25px;   /* Half the height creates perfectly rounded ends */
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 0px 10px rgba(0,0,0,0.6);
  transition: transform 0.2s;

  /* Keep content centered */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;             /* Space between the icon and the word */
font-family: 'Roboto Slab', 'Arial', sans-serif;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0px 2px #111;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.3s ease;
}

.icon {
  font-size: 25px;
  line-height:60px;
  margin-top: -3px; 
font-weight:bold;
}

.env
{
	font-weight:28px;
	font-weight:normal;
}
.

//fab:hover { transform: scale(1.1); }


/* Only apply hover effects to devices with a mouse */
@media (hover: hover) {
  .fab:hover {
    transform: scale(1.05);
    background-color: #026d3c; /* Slightly darker on hover */
  }
}

.fab-card {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 345px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: block; /* Hidden by default */
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

.fab-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);

}

.fab-card.active + .fab {
  animation: none;
  box-shadow: 0 0px 10px rgba(0,0,0,0.5); /* Keep the standard shadow so it doesn't look flat */
}


/* Quick Styling for Form Inputs */
.fab-card input, .fab-card textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.fab-card textarea {
  height: 120px;       /* Adjust this number to your liking */
  min-height: 80px;    /* Prevents it from being too small */
  max-height: 200px;   /* Prevents it from overlapping the top of the screen */
  resize: vertical;    /* Allows the user to pull it down, but not sideways */
  line-height: 1.5;    /* Makes the text easier to read */
  padding: 10px;
}

/* Add a nice highlight when they click into it */
.fab-card textarea:focus, 
.fab-card input:focus {
  outline: none;
  border-color: #2e7d32; /* The same green as the button */
  box-shadow: 0 0 5px rgba(46, 125, 50, 0.3);
}

.submit-btn {
  width: 100%;
  background: #02532c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  border-color: #fff;
    font-family: 'Roboto Slab', 'Arial', sans-serif;
    color: #fff;
    font-size: 21px;
    background-color: #03884B;
    border-color: #fff;
    text-shadow: 0px 2px #111;
  
}

.submit-btn:hover
{
	background:#02532c;
}


#fab-form h3
{
	    margin: 0px 0px 20px 0px;
	letter-spacing: 0px;
	font-weight:bold;
    font-family: 'Roboto Slab', 'Arial', sans-serif;
    color: #333;
    font-size: 28px;
    text-shadow: 0px 2px #fff;
}

#form-content, #success-message {
  transition: opacity 0.3s ease;
}

#success-message p
{
	margin:15px 0px 15px 0px;
}


/* Mobile Styles */
@media (max-width: 480px) {
  .fab-wrapper {
    right: 2.5%; /* Center the wrapper slightly */
    left: 2.5%;
    width: 95%;  /* Make the wrapper wide */
  }

  .fab-card {
    width: 100%; /* Card fills the wrapper */
    right: 0;
    left: 0;
    bottom: 70px; /* Space for the oblong button below it */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .fab {
    //width: 100%;  /* Make the 'Contact' button full width on mobile */
    //box-sizing: border-box;
    //width: 160px !important; 
    width: auto;
    max-width: 100%;
    
    /* Ensure it stays on the right */
    margin-left: auto; 
    
    /* Keep your existing padding for the oblong look */
    padding: 0 20px;
  }
  .fab-card {
    /* Keep the form wide for easy typing */
    width: 100%; 
    right: 0;
  }
}


/* When the form is active, hide the main toggle button */
.fab-wrapper.active .fab {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Ensure the card stays visible while the button is gone */
.fab-wrapper.active .fab-card {
  bottom: 0; /* Drop the card down to where the button used to be */
}

.close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.close-x:hover {
  color: #000;
}