/* Prevent any horizontal overflow globally */
html, body {
  overflow-x: hidden !important;
}

/* ==========================================
   1. Base Styles
   ========================================== */
html {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'FreeSerif', serif;
  font-size: 1rem;
  line-height: 1.2;
  background: #f9dcda;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ==========================================
   2. Font-face Declarations
   ========================================== */
@font-face {
  font-family: 'FreeSerif';
  src: url('/fonts/FreeSerif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('/fonts/FreeSerifItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('/fonts/FreeSerifBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('/fonts/FreeSerifBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* ==========================================
   3. Logo and Title Styles
   ========================================== */
.spam-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 20px;
}
.spam-logo {
  width: 380px; /* you can increase this size */
  height: auto;
}
/* Center title and subtitle under logo */
.spam-title,
.spam-subhead {
  text-align: center;
}
.spam-title {
  font-family: 'FreeSerif';
  font-weight: normal;
  font-size: 2.4rem;
  margin-top: 10px;
  margin-bottom: 4px;
  text-decoration: underline;
}
.spam-subhead {
  font-family: 'FreeSerif';
  font-size: 1.5rem;
}

/* ==========================================
   4. Testimonial Section
   ========================================== */
.spam-quote-block {
  text-align: center;
  margin: 80px 30px;
}
.spam-quote-block img {
  width: 130px;
  height: auto;
}
.spam-quote {
  font-family: 'FreeSerif';
  font-style: italic;
  font-size: 1.8rem;
  margin-top: 10px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Force line break in quote text using <br> in HTML */
.spam-quote-source {
  font-family: 'FreeSerif';
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 5px;
}

/* ==========================================
   5. Description Block
   ========================================== */
.spam-description {
  text-align: center;
  margin: 0px;
}
.spam-description p {
  font-family: 'FreeSerif';
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   6. Signup Section (Image + Form)
   ========================================== */
.spam-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  gap: 40px;
  margin-top: 80px;
  line-height: .4rem;
}
.spam-image-col {
  flex: 1 1 300px;
  max-width: 400px;
}
.spam-image-col img {
  width: 100%;
  height: auto;
  display: block;
}
.spam-form-col {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'FreeSerif';
  font-size: 1.2rem;
  width: 100%;
  margin: 60px 0;
}
.spam-form-col form input,
.spam-form-col form button {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 1.1rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
/* Restyle the button to green, rounded, white text */
.spam-form-col form button {
  border-radius: 6px;
  background-color: blue;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-family: 'FreeSerif';
  font-size: 1.1rem;
  width: 100%;
}
.spam-form-col form button:hover {
  background-color: #00cc44;
}


/* ==========================================
   7. Footer Styles
   ========================================== */
   .spam-footer {
    padding: 40px 0;  /* 40px top and bottom */
    text-align: center;
    font-family: 'FreeSerif';
    font-size: 0.9rem;
    color: gray;
}
.spam-footer hr {
  max-width: 100%;
}

/* ==========================================
   8. Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {

  .spam-container {
    background-color:rgb(248, 248, 248);
    flex-direction: column;
    gap: 0px;
    padding: 0px;
  }
  .spam-image-col,
  .spam-form-col {
    max-width: 100%;
    flex-basis: 100%;
  }
  .spam-description {
    padding: 0 30px;
  }
  /* Change stacking order on mobile */
  .spam-form-col {
    order: 1;
    align-items: center;
    /* Remove margin and use padding instead for spacing inside the border */
    padding: 0px 0;
    margin: 0;
  }
  .spam-form-inner {
    padding: 60px 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .spam-form-col form input,
  .spam-form-col form button {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .spam-image-col {
    order: 2;
  }

  /* Hide <hr> in the footer on mobile */
  .spam-footer hr {
    display: none;
  }
  /* Remove top margin or padding above the footer to eliminate the space */
  .spam-footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .spam-image-col {
    padding: 0;
    width: 100%;
  }
}


  /* Make MailerLite form full-width on mobile */
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper.embedDefault,
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper.embedPopup,
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Ensure embed wrapper encloses its contents and has no inline-block gap */
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper {
    display: block !important;
    overflow: hidden !important;       /* include floated children */
    vertical-align: top !important;    /* remove inline-block baseline gap */
  }

  /* Remove any bottom padding or extra margin inside the embed body */
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
  #mlb2-27047697.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }


/* ==========================================
   9. Link Styles
   ========================================== */
a {
  color: blue;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ==========================================
   Top Banner
   ========================================== */
.spam-banner-top {
  width: 100%;
  background-color: #feffbd;
  text-align: center;
  font-family: 'FreeSerif';
  font-weight: normal;
  padding: 10px 0;
  box-sizing: border-box;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spam-banner-text {
  display: inline-block;
  padding: 0 5px;
}



/* ==========================================
   Spam Video Wrapper (Vimeo Responsive 4:5)
   ========================================== */
.spam-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
}

.spam-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Overlay for video poster image */
.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/sp/show-poster.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  opacity: 1;
}

.poster-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .spam-video-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }
}
@media (max-width: 768px) {
  .spam-title {
    font-size: clamp(2.2rem, 5vw, 2.4rem);
    padding: 0 10px;
    max-width: calc(100% - 20px);
    /* Allow wrapping to next line rather than ellipsis */
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.1;
    margin: 5px 0;
  }
  .spam-subhead {
    font-size: clamp(1.4rem, 4vw, 1.5rem);
    padding: 8px;
    max-width: calc(100% - 20px);
    white-space: normal;
    overflow: visible;
  }
}
/* Reduce line spacing and margin for <p> inside .spam-form-inner */
.spam-form-inner p {
  margin-bottom: 15px;
}
/* Match the main signup title */
#mlb2-27047697.ml-form-embedContainer .ml-form-successContent h4 {
  font-family: 'FreeSerif', serif !important;
  font-size: 1.5rem !important;
  font-weight: normal !important;
  margin: 10px 0 !important;
  text-align: center !important;
  text-decoration: underline !important;
  margin-bottom: 12px !important;
}

/* Match the main signup subhead */
#mlb2-27047697.ml-form-embedContainer .ml-form-successContent p {
  font-family: 'FreeSerif', serif !important;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  margin: 0 auto !important;
  text-align: center !important;
  max-width: 500px !important;
  padding: 0 15px;
}


/* Hide breaks by default */
.mobile-only {
  display: none !important;
}
@media (max-width: 768px) {
  /* Enable real line-breaks on small screens */
  .mobile-only {
    display: block !important;
  }
}