/**
 * Theme Name: Site Starter
 * Template:   twentytwentyfive
 * Author:    Lucian Androne
 * Description: Reusable block child theme starter.
 * Version: 1.0.0
 * Text Domain: theme
 */
.header-absolute:not(.is-scrolled),
header.wp-block-template-part:not(.is-scrolled) .header-absolute {
  position: absolute !important;
  width: 100%;
  z-index: 99;
}

header.wp-block-template-part.header-absolute:not(.is-scrolled) {
  position: absolute !important;
}

header.wp-block-template-part.header-absolute.is-scrolled {
  position: sticky !important;
  width: 100%;
}

.header-absolute.is-scrolled,
header.wp-block-template-part.is-scrolled .header-absolute {
  position: relative !important;
  width: 100%;
}

header.wp-block-template-part {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

header.wp-block-template-part:not(.is-scrolled) .blur-background {
  --header-pill-opacity: calc(1 - var(--header-glass-progress, 0));
  border-radius: 999px !important;
  background-color: rgba(255, 255, 255, calc(0.73 * var(--header-pill-opacity))) !important;
  -webkit-backdrop-filter: blur(calc(8px * var(--header-pill-opacity))) !important;
  backdrop-filter: blur(calc(8px * var(--header-pill-opacity))) !important;
}

header.wp-block-template-part.is-scrolled .blur-background,
.blur-background.is-scrolled {
  border-radius: 999px !important;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Header glass: fades in over .site-hero exit (--header-glass-progress, scripts.js) */
header.wp-block-template-part.header-absolute,
header.wp-block-template-part .header-glass,
header.wp-block-template-part .header-absolute {
  --header-glass-progress: 0;
  --header-glass-bg: rgba(255, 255, 255, calc(0.73 * var(--header-glass-progress)));
  --header-glass-blur: calc(8px * var(--header-glass-progress));
}

header.wp-block-template-part.header-absolute:not(.is-scrolled),
header.wp-block-template-part:not(.is-scrolled) .header-glass,
header.wp-block-template-part:not(.is-scrolled) .header-absolute {
  background-color: var(--header-glass-bg);
  -webkit-backdrop-filter: blur(var(--header-glass-blur));
  backdrop-filter: blur(var(--header-glass-blur));
}

header.wp-block-template-part.header-absolute.is-scrolled,
header.wp-block-template-part.is-scrolled .header-glass,
header.wp-block-template-part.is-scrolled .header-absolute,
.header-absolute.is-scrolled,
.header-glass.is-scrolled {
  background-color: #ffffffba !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

@media (prefers-reduced-motion: reduce) {
  header.wp-block-template-part.header-absolute,
  header.wp-block-template-part .header-glass,
  header.wp-block-template-part .header-absolute {
    --header-glass-progress: 1;
  }
}

/* Footer / block glass — add class footer-glass or glass-blur in the editor */
.footer-glass,
.glass-blur,
footer.wp-block-template-part.footer-glass,
footer.wp-block-template-part .footer-glass,
footer.wp-block-template-part .glass-blur {
  --footer-glass-bg: rgba(255, 255, 255, 0.73);
  --footer-glass-blur: 8px;
  background-color: var(--footer-glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--footer-glass-blur)) !important;
  backdrop-filter: blur(var(--footer-glass-blur)) !important;
}

footer.wp-block-template-part {
  background-color: var(--footer-glass-bg, rgba(255, 255, 255, 0.73));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.absolute {
  position: absolute;
  bottom: 0;
  right: 0;

}

.absolute-left {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: var(--wp--style--global--wide-size)!important;
}


/**
Custom buttons — arrow variants append an icon; colors come from the block editor.
 */

.wp-block-button.theme-btn-arrow .wp-block-button__link,
.wp-block-button__link.theme-btn-arrow,
.wpcf7.wpcf7-contact-card button.wpcf7-submit {
  --theme-btn-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --theme-btn-duration: 0.28s;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

.wp-block-button.theme-btn-arrow .wp-block-button__link::after,
.wp-block-button__link.theme-btn-arrow::after,
.wpcf7.wpcf7-contact-card button.wpcf7-submit::after {
  content: "";
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  margin-inline-start: 0.1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform var(--theme-btn-duration) var(--theme-btn-ease);
}

.wp-block-button.theme-btn-arrow-circle .wp-block-button__link,
.wp-block-button__link.theme-btn-arrow-circle {
  --theme-btn-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --theme-btn-duration: 0.28s;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  padding: 0 !important;
  gap: 0;
  line-height: 0;
  font-size: 0;
  border-radius: 50%;
}

.wp-block-button.theme-btn-arrow-circle .wp-block-button__link::after,
.wp-block-button__link.theme-btn-arrow-circle::after {
  content: "";
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H9M17 7v8'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform var(--theme-btn-duration) var(--theme-btn-ease);
}

.wp-block-button.theme-btn-arrow .wp-block-button__link:hover::after,
.wp-block-button.theme-btn-arrow .wp-block-button__link:focus-visible::after,
.wp-block-button__link.theme-btn-arrow:hover::after,
.wp-block-button__link.theme-btn-arrow:focus-visible::after,
.wpcf7.wpcf7-contact-card button.wpcf7-submit:hover::after,
.wpcf7.wpcf7-contact-card button.wpcf7-submit:focus-visible::after,
.wp-block-button.theme-btn-arrow-circle .wp-block-button__link:hover::after,
.wp-block-button.theme-btn-arrow-circle .wp-block-button__link:focus-visible::after,
.wp-block-button__link.theme-btn-arrow-circle:hover::after,
.wp-block-button__link.theme-btn-arrow-circle:focus-visible::after {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-button.theme-btn-arrow .wp-block-button__link,
  .wp-block-button.theme-btn-arrow .wp-block-button__link::after,
  .wp-block-button__link.theme-btn-arrow,
  .wp-block-button__link.theme-btn-arrow::after,
  .wpcf7.wpcf7-contact-card button.wpcf7-submit,
  .wpcf7.wpcf7-contact-card button.wpcf7-submit::after,
  .wp-block-button.theme-btn-arrow-circle .wp-block-button__link,
  .wp-block-button.theme-btn-arrow-circle .wp-block-button__link::after,
  .wp-block-button__link.theme-btn-arrow-circle,
  .wp-block-button__link.theme-btn-arrow-circle::after {
    transition-duration: 0.01ms;
  }
}

/**
 * Global button hover — subtle lift + shadow (colors stay from editor).
 */
.wp-block-button .wp-block-button__link,
.wp-block-button__link,
.wp-element-button,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.mobile-menu-btn,
button.acceptCookies,
button.denyCookies {
  --theme-btn-push-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --theme-btn-push-duration: 0.22s;
  transition:
    transform var(--theme-btn-push-duration) var(--theme-btn-push-ease),
    box-shadow var(--theme-btn-push-duration) var(--theme-btn-push-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wp-block-button .wp-block-button__link:hover,
  .wp-block-button .wp-block-button__link:focus-visible,
  .wp-block-button__link:hover,
  .wp-block-button__link:focus-visible,
  .wp-element-button:hover,
  .wp-element-button:focus-visible,
  .wpcf7 input[type="submit"]:hover,
  .wpcf7 input[type="submit"]:focus-visible,
  .wpcf7 button[type="submit"]:hover,
  .wpcf7 button[type="submit"]:focus-visible,
  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible,
  button.acceptCookies:hover,
  button.acceptCookies:focus-visible,
  button.denyCookies:hover,
  button.denyCookies:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  }
}

.wp-block-button .wp-block-button__link:active,
.wp-block-button__link:active,
.wp-element-button:active,
.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active,
.mobile-menu-btn:active,
button.acceptCookies:active,
button.denyCookies:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  transition-duration: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-button .wp-block-button__link,
  .wp-block-button__link,
  .wp-element-button,
  .wpcf7 input[type="submit"],
  .wpcf7 button[type="submit"],
  .mobile-menu-btn,
  button.acceptCookies,
  button.denyCookies {
    transition-duration: 0.01ms;
  }
}

 html {
    scroll-behavior: smooth;
  }
  
  /* header.wp-block-template-part {
      -webkit-backdrop-filter: blur(5px) !important;
      backdrop-filter: blur(5px) !important;
  } */

  :where(.wp-site-blocks :focus) {
    outline: none!important;
    font-weight: 600!important;
  }
  
  .wp-block-video video {
      border-radius:30px;
  }
  
  .view-more-button  {
    border-radius:30px;
  }
  
  iframe {
    border-radius:30px!important;
  }

  .wp-block-media-text__media img, .wp-block-media-text__media video {
    border-radius:30px;
  }
  
  :where(.wp-site-blocks :focus) {
    outline: none;
  }
  
  :where(.wp-site-blocks) > * {
      margin-block-start: 0;
  }
  
  /* Custom checkbox bullets for lists */
  ul.wp-block-list {
      list-style: none;
      padding-left: 0;
  }
  
  ul.wp-block-list > li {
      position: relative;
      padding-left: 2em;
      margin-bottom: 0.5em;
  }
  
  ul.wp-block-list > li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.35em;
      width: 1.125em;
      height: 1.125em;
      background-color: var(--wp--preset--color--primary);
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-position: center;
  }
  
  .wp-block-media-text__media img {
      border-radius:30px;
  }
  
  .location-card:hover {
      transform: translateY(-0.3rem);
      transition: transform 0.3s ease;
  }

  .icon-text-wrapper {
      display: flex;
      align-items: center;  /* Vertical alignment */
      gap: 8px;             /* Space between icon and text */
    }
    
    .icon {
      width: 20px;          /* Set consistent icon size */
      height: 20px;
      flex-shrink: 0;       /* Prevent icon from shrinking */
    }
  
  

  
  .loan_pricing {
      font-weight: 600!important;
      color: #25a39d!important;
  }
  
  
  
  .feature-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .feature-card:hover {
    transform: translateY(-0.5rem);
    transition: transform 0.3s ease;
  }
  
  /*Media Queries*/
  
  
  
  /* ========================================
     MOBILE MENU STYLES
     ======================================== */
  
  /* Hide the default Twenty Twenty-Five mobile menu */
  .wp-block-navigation__responsive-container.is-menu-open {
      display: none !important;
  }
  
  /* Ensure the menu toggle button is visible */
  .wp-block-navigation__responsive-container-open {
      z-index: 1001 !important;
  }
  
  /* Lock horizontal scroll when mobile menu is open */
  body.mobile-menu-open {
      overflow: hidden !important;
  }

  @media screen and (max-width: 1024px) {
      .wp-site-blocks,
      footer.wp-block-template-part {
          transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
          will-change: transform;
      }

      body.mobile-menu-open .wp-site-blocks,
      body.mobile-menu-open footer.wp-block-template-part {
          transform: translateX(calc(-1 * min(85vw, 400px)));
      }
  }

  /* Tap pushed page area to close */
  .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: transparent;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 998;
  }

  .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  /* Mobile Menu Panel — slides in as page pushes left */
  .mobile-menu-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: min(85vw, 400px);
      height: 100%;
      overflow-y: auto;
      transform: translateX(100%);
      transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
      display: flex;
      flex-direction: column;
      box-shadow: -16px 0 48px rgba(0, 0, 0, 0.28);
      isolation: isolate;
      color: #ffffff;
      background-color: #0f172a;
      background-image:
          linear-gradient(rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.82)),
          url('/wp-content/uploads/2026/05/OxyGo-Center19.jpeg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      -webkit-backdrop-filter: blur(18px) saturate(125%);
      backdrop-filter: blur(18px) saturate(125%);
  }

  .mobile-menu-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.28);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      z-index: 0;
      pointer-events: none;
  }

  .mobile-menu-panel > * {
      position: relative;
      z-index: 1;
  }

  .mobile-menu-panel.active {
      transform: translateX(0);
  }
  
  /* Menu Header */
  .mobile-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  
  .mobile-menu-logo {
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .mobile-menu-logo .custom-logo-link {
      display: flex;
      align-items: center;
      line-height: 0;
  }
  
  .mobile-menu-logo .custom-logo {
      max-height: 60px;
      width: auto;
      height: auto;
  }
  
  .mobile-menu-close {
      width: 40px;
      height: 40px;
      background: none;
      border: none;
      color: #ffffff;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      opacity: 0.8;
      transition: opacity 0.2s ease;
  }
  
  .mobile-menu-close:hover {
      opacity: 1;
  }
  
  /* Menu Content */
  .mobile-menu-content {
      flex: 1;
      padding: 24px;
  }
  
  /* Navigation Menu */
  .mobile-menu-nav {
      list-style: none;
      padding: 0;
      margin: 0 0 40px 0;
  }
  
  .mobile-menu-nav li {
      margin: 0;
      padding: 0;
  }
  
  .mobile-menu-nav li::before {
      display: none !important;
  }
  
  .mobile-menu-nav a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 0;
      color: #ffffff;
      text-decoration: none;
      font-size: 1.125rem;
      line-height: 1.35;
      font-weight: 500;
      transition: color 0.2s ease, opacity 0.2s ease;
  }
  
  .mobile-menu-nav a:hover,
  .mobile-menu-nav a:focus-visible {
      color: rgba(255, 255, 255, 0.82);
  }
  
  /* Submenu parent items */
  .mobile-menu-nav .has-submenu > a::after,
  .mobile-menu-nav .menu-item-has-children > a::after {
      content: "›";
      font-size: 28px;
      color: rgba(255, 255, 255, 0.55);
      transition: transform 0.3s ease;
  }
  
  .mobile-menu-nav .has-submenu.open > a::after,
  .mobile-menu-nav .menu-item-has-children.open > a::after {
      transform: rotate(90deg);
  }
  
  /* Submenu */
  .mobile-submenu,
  .mobile-menu-nav .sub-menu {
      list-style: none;
      padding: 0 0 0 16px;
      margin: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }
  
  .mobile-submenu.open,
  .mobile-menu-nav .sub-menu.open {
      max-height: 500px;
  }
  
  .mobile-submenu li::before,
  .mobile-menu-nav .sub-menu li::before {
      display: none !important;
  }
  
  .mobile-submenu a,
  .mobile-menu-nav .sub-menu a {
      padding: 14px 0;
      font-size: 1rem;
      line-height: 1.4;
      color: rgba(255, 255, 255, 0.78);
  }

  .mobile-submenu a:hover,
  .mobile-submenu a:focus-visible,
  .mobile-menu-nav .sub-menu a:hover,
  .mobile-menu-nav .sub-menu a:focus-visible {
      color: #ffffff;
  }
  
  /* Footer Links */
  .mobile-menu-footer {
      padding: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  
  .mobile-menu-footer-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 24px;
      margin-bottom: 24px;
      list-style: none;
      padding: 0;
      margin-top: 0;
  }
  
  .mobile-menu-footer-links li {
      margin: 0;
      padding: 0;
  }
  
  .mobile-menu-footer-links li::before {
      display: none !important;
  }
  
  .mobile-menu-footer-links a {
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;
      font-size: 1rem;
      font-weight: 500;
      transition: color 0.2s ease;
  }
  
  .mobile-menu-footer-links a:hover,
  .mobile-menu-footer-links a:focus-visible {
      color: #ffffff;
  }
  
  /* Action Buttons */
  /* TEMP: hide Call us & Schedule visit — remove display:none to restore */
  .mobile-menu-actions {
      display: none !important;
      flex-direction: column;
      gap: 12px;
  }
  
  .mobile-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px 24px;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid rgba(255, 255, 255, 0.22);
  }
  
  .mobile-menu-btn-primary {
      background-color: #017f30;
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.28);
  }
  
  .mobile-menu-btn-primary:hover {
      background-color: #024c1e;
  }
  
  .mobile-menu-btn-secondary {
      background-color: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.28);
      color: #ffffff;
  }
  
  .mobile-menu-btn-secondary:hover {
      background-color: rgba(255, 255, 255, 0.18);
  }
  
  @media screen and (max-width: 1024px) {
      header.wp-block-template-part .wp-block-button {
          display: none;
      }
  }
  
  @media screen and (max-width: 480px) {
      .mobile-menu-panel {
          width: min(90vw, 400px);
      }

      body.mobile-menu-open .wp-site-blocks,
      body.mobile-menu-open footer.wp-block-template-part {
          transform: translateX(calc(-1 * min(90vw, 400px)));
      }
  }

  @media (prefers-reduced-motion: reduce) {
      .wp-site-blocks,
      footer.wp-block-template-part,
      .mobile-menu-panel {
          transition-duration: 0.01ms;
      }
  }
  
  
  /* ---------- Contact Form 7 ---------- */

  /* Constrained card: [contact-form-7 … html_class="wpcf7-contact-card"] */
  .wpcf7.wpcf7-contact-card {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1.35rem, 4vw, 2.6rem);
    background-color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.09);
    box-sizing: border-box;
  }

  .wpcf7.wpcf7-contact-card form.wpcf7-form {
    margin: 0;
  }

  .wpcf7.wpcf7-contact-card .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
  }

  .wpcf7.wpcf7-contact-card .wpcf7-form > p {
    margin: 0;
  }

  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(textarea),
  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(.wpcf7-acceptance),
  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(input[type="submit"]),
  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(button[type="submit"]),
  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(.wpcf7-recaptcha) {
    grid-column: 1 / -1;
  }

  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(button.wpcf7-submit),
  .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(input[type="submit"]) {
    justify-self: start;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="number"],
  .wpcf7 input[type="date"],
  .wpcf7 select,
  .wpcf7 textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2a2a2a;
    background-color: #eeeeee;
    border: none;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
  }

  .wpcf7.wpcf7-contact-card input[type="text"],
  .wpcf7.wpcf7-contact-card input[type="email"],
  .wpcf7.wpcf7-contact-card input[type="tel"],
  .wpcf7.wpcf7-contact-card input[type="url"],
  .wpcf7.wpcf7-contact-card input[type="number"],
  .wpcf7.wpcf7-contact-card input[type="date"],
  .wpcf7.wpcf7-contact-card select,
  .wpcf7.wpcf7-contact-card textarea {
    margin-bottom: 0;
  }

  .wpcf7 input[type="text"]:focus,
  .wpcf7 input[type="email"]:focus,
  .wpcf7 input[type="tel"]:focus,
  .wpcf7 input[type="url"]:focus,
  .wpcf7 input[type="number"]:focus,
  .wpcf7 input[type="date"]:focus,
  .wpcf7 select:focus,
  .wpcf7 textarea:focus {
    outline: none;
    background-color: #e6e6e6;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  }

  .wpcf7 input::placeholder,
  .wpcf7 textarea::placeholder {
    color: #6a6a6a;
    opacity: 1;
  }

  .wpcf7 textarea {
    min-height: 9rem;
    resize: vertical;
  }

  .wpcf7 select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
  }

  .wpcf7 label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
  }

  /* Non–contact-card forms: simple primary pill (no arrow; use html_class="wpcf7-contact-card" for arrow) */
  .wpcf7:not(.wpcf7-contact-card) input[type="submit"],
  .wpcf7:not(.wpcf7-contact-card) button[type="submit"] {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    color: #000;
    background-color: var(--wp--preset--color--primary);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .wpcf7:not(.wpcf7-contact-card) input[type="submit"]:hover,
  .wpcf7:not(.wpcf7-contact-card) button[type="submit"]:hover {
    background-color: #000;
    color: #fff;
  }

  .wpcf7.wpcf7-contact-card input[type="checkbox"],
  .wpcf7.wpcf7-contact-card input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.65rem;
    margin-bottom: 0;
    border-radius: 4px;
    accent-color: var(--wp--preset--color--primary);
    cursor: pointer;
    vertical-align: middle;
  }

  .wpcf7 input[type="checkbox"],
  .wpcf7 input[type="radio"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    cursor: pointer;
  }

  .wpcf7 .wpcf7-list-item {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
  }

  .wpcf7 .wpcf7-list-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #333;
  }

  .wpcf7 input[type="file"] {
    padding: 10px 0;
    border: none;
    background: transparent;
  }

  .wpcf7 .wpcf7-acceptance {
    margin: 0;
  }

  .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
  }

  .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: 0.75rem;
    font-size: 14px;
    font-weight: 500;
  }

  .wpcf7-validation-errors {
    background-color: #fff3cd;
    border: 2px solid var(--wp--preset--color--contrast);
    color: #856404;
  }

  .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
  }

  .wpcf7-mail-sent-ng,
  .wpcf7-aborted {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
  }

  .wpcf7-form-control.wpcf7-not-valid {
    box-shadow: 0 0 0 2px #dc3545;
  }

  .wpcf7-form-control.wpcf7-not-valid:focus {
    box-shadow: 0 0 0 2px #c82333;
  }

  .wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
  }

  .wpcf7 .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
  }

  .wpcf7 .form-row > * {
    flex: 1;
  }

  @media (max-width: 640px) {
    .wpcf7.wpcf7-contact-card .wpcf7-form {
      grid-template-columns: 1fr;
    }

    .wpcf7.wpcf7-contact-card .wpcf7-form > p {
      grid-column: 1 / -1;
    }

    .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(button.wpcf7-submit),
    .wpcf7.wpcf7-contact-card .wpcf7-form > p:has(input[type="submit"]) {
      justify-self: stretch;
    }

    .wpcf7.wpcf7-contact-card button.wpcf7-submit {
      width: 100%;
      justify-content: center;
    }
  }

  @media (max-width: 768px) {
    .wpcf7 .form-row {
      flex-direction: column;
      gap: 0;
    }
  }

    button.denyCookies {
      background: none;
      border: none;
      padding: 0 40px;
      font-size: 16px;
      cursor: pointer;
      color: #000;
  }
  button.acceptCookies {
      background: #ee9721;
      cursor: pointer;
      border: none;
      padding: 16px 70px;
      border-radius: 11px;
      font-size: 20px;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-weight: 600;
      color: #000;
  }
  
  
  .cookieFlex {
      margin: 40px 0 0 0;
  }
  div#cookieBanner {
      display: none;
      position: fixed;
      bottom: 0;
      width: 100%;
      background: #0000008f;
      text-align: center;
      z-index: 999999;
      height: 100%;
      justify-content: center;
      align-items: center;
  }
  p.info {
      font-size: 15px;
  }
  .cookieBannerWrapper {
      background: white;
      padding: 25px;
      max-width: 500px;
      border-radius: 11px;
      box-shadow: 5px 5px 40px #0000005c;
  }
  .cookieFlex a {
      color: #000;
      font-size: 12px;
  }
    
    /* Optional: Floating Label Effect */
    .wpcf7 .floating-label {
      position: relative;
      margin-bottom: 20px;
    }
    
    .wpcf7 .floating-label input,
    .wpcf7 .floating-label textarea {
      margin-bottom: 0;
    }
    
    .wpcf7 .floating-label label {
      position: absolute;
      left: 16px;
      top: 14px;
      transition: all 0.3s ease;
      pointer-events: none;
      color: #999;
      font-weight: normal;
    }
    
    .wpcf7 .floating-label input:focus + label,
    .wpcf7 .floating-label input:not(:placeholder-shown) + label,
    .wpcf7 .floating-label textarea:focus + label,
    .wpcf7 .floating-label textarea:not(:placeholder-shown) + label {
      top: -10px;
      left: 12px;
      font-size: 12px;
      background-color: #fff;
      padding: 0 4px;
      color: var(--wp--preset--color--contrast);
      font-weight: 500;
    }

    /* ========================================
       DESKTOP NAVIGATION DROPDOWN (CUSTOM)
       ======================================== */
    @media (min-width: 782px) {
      /* Dropdown panel */
      .wp-block-navigation .wp-block-navigation__submenu-container {
        background-color: rgba(255, 255, 255, 0.97) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
        color: #000;
        overflow: hidden; /* enables rounded corners */
      }

      /* Dropdown items */
      .wp-block-navigation
        .wp-block-navigation__submenu-container
        > .wp-block-navigation-item
        > .wp-block-navigation-item__content {
        padding: 0.75em 1em;
      }

      /* Text + icon color */
      .wp-block-navigation .wp-block-navigation__submenu-container,
      .wp-block-navigation .wp-block-navigation__submenu-container a,
      .wp-block-navigation .wp-block-navigation__submenu-container button,
      .wp-block-navigation .wp-block-navigation__submenu-container
        .wp-block-navigation-item__content {
        color: inherit;
      }

      /* Subtle row separators */
      .wp-block-navigation
        .wp-block-navigation__submenu-container
        > .wp-block-navigation-item:not(:last-child)
        > .wp-block-navigation-item__content {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      }

      /* Hover / focus state */
      .wp-block-navigation
        .wp-block-navigation__submenu-container
        a:hover,
      .wp-block-navigation
        .wp-block-navigation__submenu-container
        a:focus-visible {
        background: rgba(0, 0, 0, 0.06);
      }

      /* ---- Top-level nav item underline animation ---- */

      /* Direct children of the top-level <ul> only — excludes submenu items */
      .wp-block-navigation .wp-block-navigation__container
        > .wp-block-navigation-item
        > .wp-block-navigation-item__content {
        position: relative;
        text-decoration: none !important;
      }

      .wp-block-navigation .wp-block-navigation__container
        > .wp-block-navigation-item
        > .wp-block-navigation-item__content::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--wp--preset--color--primary);
        transition: width 0.25s ease;
      }

      .wp-block-navigation .wp-block-navigation__container
        > .wp-block-navigation-item:hover
        > .wp-block-navigation-item__content::after,
      .wp-block-navigation .wp-block-navigation__container
        > .wp-block-navigation-item
        > .wp-block-navigation-item__content:focus-visible::after {
        width: 100%;
      }
    }
