/*Import Adobe Fonts*/
@import url("https://use.typekit.net/yzf4lmv.css");

/*Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /*colors*/
  --clr-accent-100: #ffffff; /*Yellow*/
  --clr-accent-400: #39a0b9; /*Yellow*/
  --clr-accent-500: #ba688c; /*pink*/
  --clr-accent-900: #b63425; /*brick red*/

  --clr-primary-400: #414042; /*dark gray*/

  --clr-neutral-100: #f5f5f5; /*White*/
  --clr-neutral-150: #f9f6f4; /*Off-White*/
  --clr-neutral-200: #39a0b9; /*light blue*/
  --clr-neutral-300: #EEEEEE; /*gray*/
  --clr-neutral-400: #4f6b7b; /*mid blue*/
  --clr-neutral-900: #093146; /*dark blue*/

  /*font family*/
  --ff-primary: "area-normal", sans-serif;
  --ff-secondary: "condor", sans-serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);

  /*font weight*/
  --fw-light: 100;
  --fw-regular: 400;
  --fw-semi-bold: 600;
  --fw-bold: 700;

  /*font sizes*/
  --fs-100: 0.5rem;
  --fs-200: 0.7rem;
  --fs-300: 0.875rem;
  --fs-400: 1.25rem;
  --fs-500: 1.5rem;
  --fs-600: 2rem;
  --fs-650: 2.25rem;
  --fs-700: 2.5rem;
  --fs-900: 3.5rem;

  --fs-body: var(--fs-400);
  --fs-primary-heading: var(--fs-700);
  --fs-secondary-heading: var(--fs-500);
  --fs-nav: var(--fs-500);
  --fs-button: var(--fs-400);

  /*line heights*/
  --flh-300: 1.4;
  --flh-400: 1.7;
  --flh-500: 2;
}

/*Modify variables for mobile devices*/
@media (max-width: 50em) {
  :root {
    --fs-100: 0.5rem;
    --fs-200: 0.6rem;
    --fs-300: 0.7rem;
    --fs-400: 1.25rem;
    --fs-500: 1.75rem;
    --fs-600: 2.25rem;
    --fs-700: 2.5rem;

    --fs-body: var(--fs-500);
    --fs-primary-heading: var(--fs-600);
    --fs-secondary-heading: var(--fs-400);
    --fs-nav: var(--fs-500);
    --fs-button: var(--fs-400);
  }
}

/* https://piccalil.li/blog/a-modern-css-reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  font-size: 18px;
  font-family: var(--ff-primary);
  color: var(--clr-primary-400);
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.7;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4{
  text-wrap: balance;
}

/* Utility Classes */

.text-primary-400 {
  color: var(--clr-primary-400);
}
.text-accent-400 {
  color: var(--clr-accent-400);
}
.text-accent-100 {
  color: var(--clr-accent-100);
}
.text-neutral-100 {
  color: var(--clr-neutral-100);
}
.text-neutral-900 {
  color: var(--clr-neutral-900);
}

.text-neutral-100 {
  color: var(--clr-neutral-100);
}

.text-neutral-400 {
  color: var(--clr-neutral-400);
}

.fw-light {
  font-weight: var(--fw-light);
}

.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-semi-bold {
  font-weight: var(--fw-semi-bold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}

.fs-hero-heading {
  font-size: 5rem;
  line-height: 1.25em;
}

.fs-primary-heading {
  font-size: var(--fs-primary-heading);
  line-height: 1.25em;
  text-wrap: balance;
}
.fs-secondary-heading {
  font-size: var(--fs-secondary-heading);
  line-height: 1.4;
}

.ff-secondary-heading {
  font-family: var(--ff-secondary);
}

.fs-100 {
  font-size: var(--fs-100);
}

.fs-200 {
  font-size: var(--fs-200);
}

.fs-300 {
  font-size: var(--fs-300);
}

.fs-400 {
  font-size: var(--fs-400);
  line-height: 1.25;
}

.fs-500 {
  font-size: var(--fs-500);
  line-height: 1.25;
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-900 {
  font-size: var(--fs-900);
}

.flh-300{
  line-height: var(--flh-300);
}

.flh-400{
  line-height: var(--flh-400);
}

.flh-500{
  line-height: var(--flh-500);
}

.text-neutral-400 {
  color: var(--clr-neutral-400);
}

.bg-accent-100 {
  background-color: var(--clr-accent-100);
}

.bg-neutral-100 {
  background-color: var(--clr-neutral-100);
}

.bg-neutral-150 {
  background-color: var(--clr-neutral-150);
}

.bg-neutral-300 {
  background-color: var(--clr-neutral-300);
}

.bg-neutral-400 {
  background-color: var(--clr-neutral-400);
}

.bg-neutral-900 {
  background-color: var(--clr-neutral-900);
}
.bg-accent-400 {
  background-color: var(--clr-accent-400);
}

.bg-accent-500 {
  background-color: var(--clr-accent-500);
}
.primary-logo {
  width: 14rem;
  margin: 1.25rem auto;
}

a[href^="tel"] {
  text-decoration: none !important; /* Remove underlines */
  color: inherit !important; /* Inherit text color */
}

.content-section {
  position: relative;
  z-index: 2;
}

.content {
  position: relative;
  padding: 5rem 2.5rem;
  text-align: left;
  width: 100%;
  max-width: 1260px;
}

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

.margin-top {
  margin-top: 1.5rem !important;
}

.quote {
  padding: 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  border-radius: 0.3em;
}
.quote img {
  max-width: 7vw;
}

.fade-translate {
  opacity: 0.1;
  transform: translateY(2em);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-translate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.image-container {
  padding: 1.5rem;
  min-width: 300px; /* Set the minimum width to 450px */
  width: 30vw;
  max-width: 100%; /* Ensure the image doesn't exceed the container width */
  text-align: center;
  margin: auto;
}

.image-container img {
  display: block;
  margin: auto auto;
}

.fst-italic {
  font-style: italic;
}

.sticky-parent {
  height: 500vh;
}

.sticky {
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
}

.scroll-section {
  position: absolute;
  top: 0;
  height: 100%;
  width: 500vw;
  will-change: transform;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
}

.scroll-box {
  width: 400px;
  height: 80%;
  background-color: #ba688c;
}

.text-cta {
  font-weight: var(--fw-bold);
  text-decoration: underline;
  color: var(--clr-neutral-400);
  transition: color 0.25s ease;
}

.text-cta:hover {
  color: var(--clr-accent-400);
}

/* Form Styling */

/* Style the form container */
.form-container {
  position: relative;
  display: flex;
  flex-direction: row; /* Change to 'row' for horizontal layout */
  max-width: 1000px; /* Adjust as needed */
  width: 61.8%;
  margin: 2.5rem auto;
  padding: 3rem 2rem 50px 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0rem;
  border: 1.5px solid var(--clr-accent-400);
  background: transparent;
  background-color: rgba(0, 0, 0, 0.3);
}

#user-data-form {
  display: flex;
  flex-direction: column;
  max-width: 600px; /* Adjust based on preference */
  margin: 0 auto;
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-family: var(--ff-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #ffffff;
}

/* Styles for the submit button */
.form-group button[type="submit"] {
  background-color: var(--clr-neutral-900);
  color: white; /* Adjust text color as needed */
  font-family: var(--ff-secondary);
  padding: 0.5rem 1rem; /* Adjust padding as needed */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Hover effect for the submit button */
.form-group button[type="submit"]:hover {
  background-color: var(--clr-accent-400);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  #user-data-form {
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0rem;
  }
}

.button-container {
  position: relative;
  padding-top: 0.8rem;
}

.button-container button {
  position: relative;
  background: transparent;
  padding: 0.5rem 3.5rem;
  text-transform: uppercase;
  color: var(--clr-accent-400);
  text-shadow: 0 0 15px var(--clr-accent-400);
  border: 1px solid var(--clr-accent-400);
  transition: 0.3s;
}

.button-container button:hover {
  cursor: pointer;
  color: var(--clr-neutral-900);
  text-shadow: 0 0 0 var(--clr-accent-400);
}

.button-container button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-accent-400);
  z-index: -1;
  transform: scale(0);
  transition: 0.3s;
}

.button-container button:hover::before {
  transform: scale(1);
  transition-delay: 0.3s;
  box-shadow: 0 0 10px var(--clr-accent-400), 0 0 30px var(--clr-accent-400),
    0 0 60px var(--clr-accent-400);
}

.button-container button span {
  position: absolute;
  background: var(--clr-accent-400);
  pointer-events: none;
  box-shadow: 0 0 10px var(--clr-accent-400), 0 0 20px var(--clr-accent-400),
    0 0 30px var(--clr-accent-400), 0 0 50px var(--clr-accent-400),
    0 0 100px var(--clr-accent-400);
}

.button-container button span:nth-child(1),
.button-container button span:nth-child(3) {
  width: 40px;
  height: 2px;
}

.button-container button span:nth-child(4) {
  width: 2px;
  height: 20px;
}

.button-container button span:nth-child(1) {
  top: calc(50% - 2px);
  left: -50px;
  transform-origin: left;
  transition: 0.3s ease-in-out;
  transition-delay: 0.25s;
}

.button-container button:hover span:nth-child(1) {
  left: -50%;
  transform: scaleX(0);

  transition-delay: 0s;
}

.button-container button span:nth-child(3) {
  top: calc(50% - 2px);
  right: -50px;
  transform-origin: right;
  transition: 0.3s ease-in-out;
  transition-delay: 0.25s;
}

.button-container button:hover span:nth-child(3) {
  right: -50%;
  transform: scaleX(0);

  transition-delay: 0s;
}

.button-container button span:nth-child(4) {
  left: calc(50% - 2px);
  bottom: -30px;
  transform-origin: bottom;
  transition: 0.3s ease-in-out;
  transition-delay: 0.25s;
}

.button-container button:hover span:nth-child(4) {
  bottom: -50%;
  transform: scaleY(0);
  transition-delay: 0s;
}

/* Style the submit button 
.form-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
*/

/* Style the flash notification */
.flash-notification {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: #fff; /* White text */
}

.flash-notification.success {
  background-color: #4caf50; /* Green for success messages */
}

.flash-notification.error {
  background-color: #f44336; /* Red for error messages */
}

html,
main,
body {
  background-color: var(--clr-neutral-100);
  width: 100%;
  height: 100%;
}

.wrapper {
  position: relative;

  /*height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 100px;
  width: 100%;*/
}

header {
  position: relative;
  height: 100vh;
  /*transform-style: preserve-3d;*/
  z-index: -1;
  width: 100%;
}

#video-background,
.video-overlay {
  /*transform: translateZ(-100px) scale(2);*/
  z-index: -1;
}

#video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the video covers the entire header */
}

.video-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 49, 70, 0.7);
}

.logo-intro {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /*transform: translateZ(-50px) scale(1.5);*/
  z-index: 0;
}

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

.logo-intro-inner-wrapper {
  padding: 2rem;
}

.logo-white-svg {
  width: 75%;
  margin: auto auto;
  /*filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));*/
}

.st0 {
  fill: #ffffff;
}

.video-header {
  position: relative;
  height: 100vh; /* Make the header fill the entire viewport height */
  z-index: -1;
}

.content-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-section {
  width: 100vw;
  padding-bottom: 56.25%;
}

.section-capacity {
  background-image: url(/images/01-capacity.jpg);
  background-position: center center;
  background-size: cover;
  background-color: rgba(9, 49, 70, 0.7);
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.capacity {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(-50px);
}

.img-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 49, 70, 0.7);
}

.mobile-only {
  display: none;
}

footer {
}

.footer-section-reveal {
  width: 100%;
  height: 100px;
  background-color: rgba(255, 0, 0, 0.3);
  pointer-events: none;
}

.fixed-footer {
  width: 100%;
  background-color: var(--clr-neutral-900);
  padding: 5rem 3rem;
}

.fixed-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
}

.footer-logo img {
  width: 20vw;
  max-width: 400px;
  display: block;
  margin: 1rem auto;
}

.dark-link {
  color: var(--clr-neutral-100);
  transition: all 0.3s ease-in-out;
}

.dark-link:hover {
  color: var(--clr-accent-400);
}

.social-sharing svg {
  width: 50px;
  height: 50px;
  display: block;
  text-align: center;
}

.social-sharing a {
  display: block;
  text-align: center;
  width: 50px;
  height: 50px;
}

.social path {
  transform: rotate(0deg);
  transform-origin: center center;
  fill: #ffffff;
  transition: all 0.3s ease-in-out;
}

.social:hover path {
  transform: rotate(360deg);
  fill: var(--clr-accent-400);
}

.social-sharing {
  gap: 20px;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--clr-accent-400);
  padding-bottom: 2rem;
}

.social-sharing-header {
  max-width: 500px;
  padding-bottom: 1rem;
}

@media (max-width: 767px) {
  /* Your CSS rules for small screens go here */
  /* For example, you can adjust font sizes, margins, padding, or hide/show elements */

  .fs-300 {
    font-size: var(--fs-200);
  }

  .fs-500 {
    font-size: 1.75rem;
  }
  .fs-600 {
    font-size: var(--fs-500);
  }
  .fs-700 {
    font-size: var(--fs-300);
  }
  .fs-900 {
    font-size: var(--fs-500);
  }

  .fs-primary-heading {
    font-size: var(--fs-500);
  }

  .fs-body {
    font-size: var(--fs-300);
  }

  .fs-hero-heading {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .content {
    padding: 5rem 1.5rem;
  }

  .margin-top {
    margin-top: 1.5rem !important;
  }

  .header-text {
    margin-top: 3rem;
    line-height: 1.25;
  }

  body {
    line-height: 1.7;
  }

  .quote img {
    display: none;
  }

  .form-container {
    width: 95%;
  }

  .logo-white-svg {
    width: 65%;
    margin: auto auto;
    /*filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));*/
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .form-input {
    width: 90%;
  }

  .flash-notification {
    padding: 0 2rem;
  }

  .fixed-footer {
    padding: 5rem 2rem;
  }

  .footer-logo img {
    width: 55vw;
  }
}

.big-blue {
  min-height: 500px;
  width: 100%;
  background-color: #4f6b7b;
}

.big-red {
  min-height: 500px;
  width: 100%;
  background-color: #b94e33;
}

/* Responsive Video */

.video-wrapper {
  width: 100%;
  max-width: 1260px;
  text-align: center;
  margin: 2rem auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* HEADINGS */
.fw-heading {
  position: relative;
  z-index: 3;
}

.shadowed {
  -webkit-box-shadow: 0px 12px 14px -9px rgba(209, 209, 209, 1);
  -moz-box-shadow: 0px 12px 14px -9px rgba(209, 209, 209, 1);
  box-shadow: 0px 12px 14px -9px rgba(209, 209, 209, 1);
}

.content-heading {
  position: relative;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  text-align: left;
  width: 100%;
  max-width: 1260px;
  margin: auto auto;
  display: flex;
  align-items: center;
}

.content-generic {
  max-width: 1260px;
  margin: auto auto;
  padding: 0 2.5rem 1.5rem 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-heading {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .content-generic {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .content-heading {
    line-height: 1.3;
  }
}

.content-inner {
  position: relative;
  padding: 1rem 2.5rem 2rem 2.5rem;
  text-align: left;
  width: 100%;
  max-width: 1260px;
}

.content-upper {
  text-transform: uppercase;
}

.heading-icon {
  min-width: 80px;
  max-width: 120px;
  padding-right: 1.5rem;
}

.container-padded {
  padding: 2rem;
}

.bottom-pad {
  padding-bottom: 50px;
}

.bg-gradient-blue {
  background: rgb(9, 49, 70);
  background: -moz-linear-gradient(
    27deg,
    rgba(9, 49, 70, 1) 2%,
    rgba(57, 161, 186, 1) 75%
  );
  background: -webkit-linear-gradient(
    27deg,
    rgba(9, 49, 70, 1) 2%,
    rgba(57, 161, 186, 1) 75%
  );
  background: linear-gradient(
    27deg,
    rgba(9, 49, 70, 1) 2%,
    rgba(57, 161, 186, 1) 75%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#093146",endColorstr="#39a1ba",GradientType=1);
}

  .bottom-pad {
    padding-bottom: 50px;
  }

  .bg-gradient-blue {
    background: rgb(9, 49, 70);
    background: -moz-linear-gradient(
      27deg,
      rgba(9, 49, 70, 1) 2%,
      rgba(57, 161, 186, 1) 75%
    );
    background: -webkit-linear-gradient(
      27deg,
      rgba(9, 49, 70, 1) 2%,
      rgba(57, 161, 186, 1) 75%
    );
    background: linear-gradient(
      27deg,
      rgba(9, 49, 70, 1) 2%,
      rgba(57, 161, 186, 1) 75%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#093146",endColorstr="#39a1ba",GradientType=1);
  }

  .bg-red-accent {
    border-left: 1rem solid var(--clr-accent-900);
  }

  /* Email Modal Styles */
  .nhca-email-modal {
    position: fixed;
    z-index: 10000; /* Ensure it's above other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .nhca-email-modal.show {
    opacity: 1;
    visibility: visible;
  }

  .nhca-modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Darker overlay for dark theme */
    cursor: pointer;
  }

  .nhca-modal-content {
    background-color: var(--clr-neutral-900, #093146); /* Dark Blue BG */
    color: var(--clr-neutral-100, #f5f5f5); /* White text */
    padding: 30px;
    border: 2px solid var(--clr-accent-400, #39a0b9); /* Light Blue/Teal border */
    border-radius: 8px;
    width: 90vw;
    max-width: 500px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    transform: scale(0.95);
    position: relative; /* For overlay and close button positioning */
    z-index: 10001; /* Above overlay */
    text-align: center; /* Center content like title and form */
  }

  .nhca-email-modal.show .nhca-modal-content {
    transform: scale(1);
  }

  .nhca-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--clr-accent-400, #39a0b9); /* Light Blue/Teal close */
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
  }

  .nhca-modal-close:hover,
  .nhca-modal-close:focus {
    color: var(--clr-neutral-100, #f5f5f5); /* White on hover */
    text-decoration: none;
  }

  .nhca-modal-title {
    color: var(--clr-accent-400 , #39a0b9); /* White title */
    font-size: 1.25rem; 
    margin-bottom: 25px;
    text-align: center;
    font-weight: var(--fw-bold);
    text-transform:uppercase;
    font-family: var(--ff-secondary);
  }

  /* Styles for Member365 Form Container and its contents */
  #member365FormContainer {
    margin-top: 15px;
    line-height:0.8;
  }

  #member365FormContainer span[id^="optin_"] {
    display: block; 
    min-height: 1px; 
  }

  #member365FormContainer form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Increased gap for better spacing in dark theme */
  }

  #member365FormContainer label {
    display: block;
    margin-bottom: 0;
    color: var(--clr-neutral-150, #f9f6f4); /* Off-white labels */
    text-align: left;
    font-size: 1.1rem;
    font-weight: var(--fw-semi-bold);
    font-family: var(--ff-primary) !important;
  }

  #member365FormContainer input[type="text"],
  #member365FormContainer input[type="email"],
  #member365FormContainer input[type="tel"],
  #member365FormContainer textarea,
  #member365FormContainer select {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 0; /* Gap handled by form's gap property */
    border: 1px solid var(--clr-neutral-400, #4f6b7b); /* Mid blue border */
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    display: block;
    color: var(--clr-neutral-100, #f5f5f5); /* White text in input */
    background-color: var(--clr-primary-400, #414042); /* Dark Gray input BG */
  }

  #member365FormContainer input[type="text"]::placeholder,
  #member365FormContainer input[type="email"]::placeholder,
  #member365FormContainer input[type="tel"]::placeholder,
  #member365FormContainer textarea::placeholder {
    color: var(--clr-neutral-300, #EEEEEE); /* Lighter gray placeholder, but not too light */
    opacity: 0.7;
  }

  #member365FormContainer input[type="submit"],
  #member365FormContainer button[type="submit"],
  #member365FormContainer input[type="button"] {
    width: 100%;
    padding: 1rem 2rem; /* Updated padding */
    background-color: var(--clr-accent-400, #39a0b9); /* Light Blue/Teal BG */
    color: var(--clr-neutral-100, #f5f5f5); /* White text */
    border: none;
    border-radius: 5px;
    font-size: var(--fs-400);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: var(--ff-secondary);
  }

  #member365FormContainer input[type="submit"]:hover,
  #member365FormContainer button[type="submit"]:hover {
    background-color: var(--clr-accent-500, #ba688c); /* Pink on hover for different accent */
    color: var(--clr-neutral-100, #f5f5f5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  #member365FormContainer span[class^="successMessage_"] {
    display: block; 
    padding: 12px 18px;
    margin-top: 20px;
    background-color: var(--clr-accent-400, #39a0b9); /* Light Blue/Teal for success */
    color: var(--clr-neutral-900, #093146); /* Dark text */
    border-radius: 5px;
    text-align: center;
    font-weight: var(--fw-semi-bold);
  }

  #member365FormContainer .m365-loading-message,
  #member365FormContainer .m365-error-message {
    padding: 15px 10px;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 10px;
  }

  #member365FormContainer .m365-loading-message {
    color: var(--clr-neutral-150, #f9f6f4);
  }

  #member365FormContainer .m365-error-message {
    color: var(--clr-accent-100, #ffffff); /* White error text for visibility on dark bg */
    background-color: var(--clr-accent-900, #b63425); /* Brick red BG for errors */
    border-radius: 5px;
    font-weight: var(--fw-semi-bold);
  }

/* Footer Trigger Button Style */
#emailModalTriggerButton {
  display: inline-block;
  padding: 0.5rem 2rem;
  margin-top: 0; /* Space from social icons */
  margin-bottom: 1.5rem; /* Space before footer logo */
  background-color: var(--clr-neutral-200, #39a0b9); /* Light blue */
  color: var(--clr-neutral-100, #ffffff); /* White text */
  border: 2px solid var(--clr-neutral-200, #39a0b9);
  border-radius: 5px;
  font-family: var(--ff-secondary);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  text-align: center;
  text-transform:uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

#emailModalTriggerButton:hover,
#emailModalTriggerButton:focus {
  background-color: var(--clr-neutral-100, #ffffff); /* White background */
  color: var(--clr-neutral-900, #093146); /* Dark blue text */
  border-color: var(--clr-neutral-900, #093146);
}

