/* 1) Hide homepage title */
.home .entry-title {
    display: none;
}
/* 2) Remove ANY top spacing between header and first content on HOME */
.home .site-content,
.home .content-area,
.home .content-wrap,
.home .content-container,
.home .entry-content,
.home .entry-content-wrap,
.home .wp-block-group:first-of-type,
.home .wp-block-kadence-rowlayout:first-of-type,
.home .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 3) If a Spacer block is at the top, kill it */
.home .wp-block-spacer:first-child {
  display: none !important;
  height: 0 !important;
}

/* 4) If Transparent Header is adding offset, cancel it on HOME */
.home.has-transparent-header .site-content,
.home .has-transparent-header .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Home only: remove any top gap from the first content block */
.home .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If Transparent Header adds offset on home, cancel it */
.home.has-transparent-header .site-content,
.home .has-transparent-header .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Keep post content inside the container on desktop */
@media (min-width: 1024px) {
  .single-post .entry-content,
  .single .entry-content {
    overflow-x: hidden;
  }

  /* Reset wide/full blocks to container width */
  .single-post .alignwide,
  .single-post .alignfull,
  .single .alignwide,
  .single .alignfull {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1100px !important; /* match your site content width */
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Constrain embeds & video */
  .single-post .entry-content iframe,
  .single-post .entry-content embed,
  .single-post .entry-content video,
  .single-post .entry-content .wp-block-embed,
  .single-post .entry-content .wp-block-video,
  .single .entry-content iframe,
  .single .entry-content .wp-block-embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
  }

  /* Images never overflow */
  .single-post .entry-content img,
  .single .entry-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}
/* Targets each blog post item in the block */
.wp-block-latest-posts li {
  margin-bottom: 10px; /* Decrease number = tighter spacing */
}
/* === Jetpack CRM Form Styling === */

/* General form container */
.zbscrm_form {
  background-color: #ffffff; /* white background */
  padding: 20px;
  border: 2px solid #009ea5; /* teal border */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Input fields */
.zbscrm_form input[type="text"],
.zbscrm_form input[type="email"],
.zbscrm_form input[type="tel"],
.zbscrm_form textarea,
.zbscrm_form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

.zbscrm_form input:focus,
.zbscrm_form textarea:focus,
.zbscrm_form select:focus {
  border-color: #3b2552; /* deep purple accent */
  outline: none;
}

/* Labels */
.zbscrm_form label {
  font-weight: 600;
  color: #3b2552; /* deep purple */
  margin-bottom: 6px;
  display: block;
}

/* Submit button */
.zbscrm_form input[type="submit"] {
  background-color: #009ea5; /* teal */
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.zbscrm_form input[type="submit"]:hover {
  background-color: #f15a4f; /* coral hover */
}

/* Error messages */
.zbscrm_form .zbscrm_error {
  color: #f15a4f; /* coral for errors */
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* Success message */
.zbscrm_form .zbscrm_success {
  color: #009ea5; /* teal for success */
  font-weight: 600;
  margin-bottom: 12px;
}
