/* Full-page blue */
body:not([class*="elementor-page"]) {
  background-color: #87ceeb;
  background-image: url("https://scoopdoocrew.com/wp-content/uploads/2025/07/Group-9-3.svg");
  background-repeat: repeat; /* Repeat */
  background-position: center bottom; /* Position: Bottom Center */
  background-attachment: scroll; /* Attachment: Scroll (default) */
  background-size: 75%;
  z-index: 0;
}

/* Base spacing (mobile-first) */
body:not([class*="elementor-page"]) .site-main {
  /* let the blue show through */
}

.typages {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Blue band around the white card */
#primary.content-area {
  background: transparent; /* let the blue show through */
  padding: 100px 16px; /* controls blue space above/below the card */
  position: relative; /* needed for the overlay pseudo-element */
  overflow: hidden; /* clips overlay to this area */
}

/* Hearts/Bones/Dogs overlay — match Elementor settings */
#primary.content-area {
  position: relative;
  overflow: hidden;
}

/* Default white card */
#content.site-main {
  background: #ffffff;
  border-radius: 16px;
  margin-top: 200px !important;
  margin-bottom: 100px;
  max-width: 1000px; /* contain content width */
  background-clip: padding-box; /* avoids radius “bleed” */
  position: relative;
  z-index: 1; /* keep above the overlay */
}

/* ≥600px */
@media (min-width: 600px) {
  body:not([class*="elementor-page"]) .site-main {
    padding: 64px 24px;
    background-size: 150% auto;
    background-position: center bottom;
  }
  #primary.content-area {
    padding: 100px 24px;
  }
  #content.site-main {
    border-radius: 24px;
    padding: 24px;
  }
}

/* ≥768px (tablets) */
@media (min-width: 768px) {
  body:not([class*="elementor-page"]) .site-main {
    padding: 80px 32px;
    background-size: 65% auto;
    background-position: center bottom;
  }
  #primary.content-area {
    padding: 100px 32px;
  }
  #content.site-main {
    border-radius: 32px;
    padding: 32px;
  }
}

/* ≥1024px (desktops) */
@media (min-width: 1024px) {
  body:not([class*="elementor-page"]) .site-main {
    padding: 100px 32px;
    background-size: 75% auto;
    background-position: center bottom;
  }
  #primary.content-area {
    padding: 100px 32px;
  }
  #content.site-main {
    border-radius: 50px;
    padding: 50px;
  }
}

/* =========================================================

/* Keep the same blue band sizing on these pages (overlay is on #primary) */
@media (min-width: 600px) {
  .site-main:is(.post-1307, .post-1308, .post-1309) #primary.content-area {
    padding: 100px 24px;
  }
}
@media (min-width: 768px) {
  .site-main:is(.post-1307, .post-1308, .post-1309) #primary.content-area {
    padding: 100px 32px;
  }
}
@media (min-width: 1024px) {
  .site-main:is(.post-1307, .post-1308, .post-1309) #primary.content-area {
    padding: 100px 32px;
  }
}

/* =========================================================
   UNIFIED BRAND BUTTONS (Submit / Free Quote / Complete Payment)
   ========================================================= */
/* Targets:
   - Custom submit: .sng-submit-button
   - Free Quote:    #sng_zip_code_submit and button.sng-button.sng-button-submit
   - Complete Pay:  #complete-payment
*/
.sng-submit-button,
#sng_zip_code_submit,
button.sng-button.sng-button-submit,
#complete-payment {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  background-color: #fedd87 !important; /* default (non-hover) */
  color: #000000 !important; /* default text */
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1.53px;

  border: 0 !important; /* kill plugin borders */
  border-radius: 100px; /* pill shape */
  padding: 15px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

/* Hover = brand green + white text */
.sng-submit-button:hover,
#sng_zip_code_submit:hover,
button.sng-button.sng-button-submit:hover,
#complete-payment:hover {
  background-color: #7cb57f !important;
  border-color: #7cb57f !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Active / pressed */
.sng-submit-button:active,
#sng_zip_code_submit:active,
button.sng-button.sng-button-submit:active,
#complete-payment:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Accessible focus */
.sng-submit-button:focus-visible,
#sng_zip_code_submit:focus-visible,
button.sng-button.sng-button-submit:focus-visible,
#complete-payment:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Full width on small screens (optional) */
@media (max-width: 767px) {
  .sng-submit-button,
  #sng_zip_code_submit,
  #complete-payment {
    width: 100%;
  }
}

/* Interactive Free Quote Form - Copy & Paste Ready */
#sng_zip_code_form {
  --pill-height: 50px;
  --button-width: 120px;
  --border-radius: 25px;

  position: relative;
  display: flex !important;
  align-items: center;
  width: min(320px, 100%);
  height: var(--pill-height);
  margin: 20px auto;
  padding: 0;
  background: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: visible; /* Changed from hidden to visible to allow error message to show outside */
  transition: box-shadow 0.3s ease;
}

#sng_zip_code_form:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Input styling */
#sng_zip_code_form input[type="text"],
#sng_zip_code_form input[type="search"],
#sng_zip_code_form input[type="tel"] {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 20px;
  padding-right: calc(var(--button-width) + 10px);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1;
}

#sng_zip_code_form input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Button styling */
#sng_zip_code_submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--button-width);
  height: calc(var(--pill-height) - 10px);
  border: none;
  border-radius: calc(var(--border-radius) - 5px);
  background: #fedd87;
  color: #fff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(254, 221, 135, 0.3);
}

#sng_zip_code_submit:hover {
  background: #7bb47f;
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 180, 127, 0.4);
}

#sng_zip_code_submit:active {
  transform: translateY(-50%) translateY(0px);
  box-shadow: 0 2px 10px rgba(123, 180, 127, 0.3);
}

/* Alternative red button version (uncomment to use) */
/*
#sng_zip_code_submit {
  background: linear-gradient(135deg, #FF4757 0%, #FF3742 100%);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  color: #fff;
}

#sng_zip_code_submit:hover {
  background: linear-gradient(135deg, #FF3742 0%, #FF2D3A 100%);
  box-shadow: 0 6px 20px rgba(255, 45, 58, 0.4);
}
*/

/* Responsive design */
@media (max-width: 480px) {
  #sng_zip_code_form {
    --pill-height: 45px;
    --button-width: 100px;
    width: min(280px, calc(100% - 40px));
  }

  #sng_zip_code_form input {
    font-size: 15px;
    padding-left: 16px;
  }

  #sng_zip_code_submit {
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  /* Move error message below on mobile for better visibility */
  .error-message {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    transform: translateY(-10px);
    white-space: normal;
    text-align: center;
  }

  #sng_zip_code_form.has-error .error-message {
    transform: translateY(0);
  }
}

@media (max-width: 320px) {
  #sng_zip_code_form {
    --pill-height: 42px;
    --button-width: 90px;
  }

  #sng_zip_code_submit {
    font-size: 11px;
  }
}

/* Focus states for accessibility */
#sng_zip_code_form input:focus {
  outline: 2px solid #4a90e2;
  outline-offset: -2px;
}

#sng_zip_code_submit:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* Error message styling to appear to the right of the form */
.error-message {
  position: absolute;
  top: 50%;
  left: calc(100% + 15px);
  transform: translateY(-50%);
  background: #ff4757;
  color: #fff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* Show error message when form has error class */
#sng_zip_code_form.has-error .error-message {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Add red border to input when there's an error */
#sng_zip_code_form.has-error {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 2px #ff4757;
}

/* Improved CSS for your existing .sng-sac-popup */
.sng-sac-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 1000;

  /* Responsive width */
  width: 90vw;
  max-width: 400px;
  min-width: 280px;

  /* Responsive padding */
  padding: 2rem 1.5rem;

  /* Smooth animations */
  transition: all 0.3s ease-in-out;
}

/* Error message styling to appear to the right of the form */
.just-validate-error-label {
  position: absolute;
  top: 120%;
  left: calc(5%);
  transform: translateY(0%);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  
}
