/* ====================================================
   1. SOLID EDGE-TO-EDGE FIXED HEADER
   ==================================================== */

.is-position-sticky,
header.wp-block-template-part,
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  min-height: 64px !important;
  background: #070a12 !important; /* 100% solid background: nothing shows through */
  background-color: #070a12 !important;
  z-index: 999999999 !important; /* Higher than all cards, titles, and video */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 1.5rem !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Ensure contents of the sticky bar stay visible on top */
.is-position-sticky *,
header * {
  z-index: 999999999 !important;
}

/* Center Logo & constrain height */
.wp-block-site-logo,
.custom-logo-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.wp-block-site-logo img,
.custom-logo,
.is-position-sticky img {
  display: block !important;
  margin: 0 auto !important;
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* WordPress Admin Bar offset (when logged in) */
body.admin-bar .is-position-sticky,
body.admin-bar header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .is-position-sticky,
  body.admin-bar header {
    top: 46px !important;
  }
}

/* ====================================================
   2. RESTORE FULL PAGE SCROLLING & KEEP CONTENT BEHIND
   ==================================================== */

html, body, .wp-site-blocks {
  overflow-x: clip !important;
  overflow-y: auto !important; /* Guarantees smooth scrolling */
}

/* Push the page content down so hero starts naturally below the bar */
body {
  padding-top: 75px !important;
}
body.admin-bar {
  padding-top: 107px !important;
}

/* Ensure all page sections, cards, and video stay underneath the header */
.wp-block-cover,
main,
section,
.wp-block-group:not(.is-position-sticky),
.wp-block-columns,
.wp-block-column,
.wp-block-embed,
iframe,
h1, h2, h3, h4, p {
  position: relative;
  z-index: 1 !important;
}

/* ====================================================
   3. REPAIRED FORM STYLES (BACKEND UNTOUCHED)
   ==================================================== */

.wp-block-jetpack-contact-form,
.contact-form,
form.wp-block-group {
  max-width: 680px !important;
  margin: 2.5rem auto !important;
  background: rgba(14, 20, 36, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.wp-block-jetpack-contact-form label,
.contact-form label,
.grunion-field-label,
form label {
  display: block !important;
  color: #f8fafc !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.45rem !important;
}

.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1rem !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form select:focus,
form input:focus,
form select:focus {
  border-color: #f2a547 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 14px rgba(242, 165, 71, 0.3) !important;
}

form select option,
.wp-block-jetpack-contact-form select option {
  background: #0b0f19 !important;
  color: #f8fafc !important;
}

.wp-block-jetpack-contact-form input[type="checkbox"],
form input[type="checkbox"] {
  accent-color: #f2a547 !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 0.6rem !important;
}

.contact-form .grunion-field-checkbox-wrap label,
.wp-block-jetpack-contact-form-field.checkbox label {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-jetpack-contact-form input[type="submit"],
.contact-form input[type="submit"],
form button[type="submit"],
form input[type="submit"] {
  width: 100% !important;
  background: #f2a547 !important;
  color: #070a12 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.95rem 1.5rem !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 1.25rem !important;
}

.wp-block-jetpack-contact-form button[type="submit"]:hover,
.wp-block-jetpack-contact-form input[type="submit"]:hover,
form button[type="submit"]:hover {
  background: #ffb65c !important;
  box-shadow: 0 0 22px rgba(242, 165, 71, 0.45) !important;
}