/* Contact-only integration with the existing Doex header and base styles. */
html:has(body.doex-contact){scroll-behavior:auto;scroll-padding-top:100px;scrollbar-gutter:stable}
body.doex-contact{margin:0;background:#0a0a0a;color-scheme:dark;--contact-header-height:76px;--contact-menu-edge:clamp(22px,4.4vw,76px);--contact-toolbar-offset:0px}
body.doex-contact #jomaa-contact :is(h1,h2,h3,p,a,label,figcaption){font-family:inherit;text-transform:none;font-style:normal}
body.doex-contact #jomaa-contact :is(h1,h2,h3,p){padding:0;text-align:left}
body.doex-contact #jomaa-contact a{letter-spacing:inherit}
/* Align the EXISTING theme control; its markup, menu and handlers stay native. */
body.doex-contact #jomaa-contact .jc-header{z-index:40;top:var(--contact-toolbar-offset)}
body.doex-contact .navigation-fire.navigation-icon-wrapper{top:calc(var(--contact-toolbar-offset) + (var(--contact-header-height) - 44px)/2);right:calc(var(--contact-menu-edge) - 4.5px);width:44px;height:44px;display:grid;place-items:center}
body.doex-contact #navigation-icon{display:flex;flex-direction:column;gap:8px}
body.doex-contact #navigation-icon .line{margin:0;background-color:#fff}
body.doex-contact .navigation-icon-wrapper-bg{top:calc(var(--contact-toolbar-offset) + (var(--contact-header-height) - 60px)/2);right:calc(var(--contact-menu-edge) - 12.5px);width:60px;height:60px}
body.doex-contact.admin-bar{--contact-toolbar-offset:32px}
@media(max-width:782px){body.doex-contact.admin-bar{--contact-toolbar-offset:46px}}
@media(max-width:780px){body.doex-contact{--contact-header-height:67px}}
@media(max-width:600px){body.doex-contact.admin-bar{--contact-toolbar-offset:0px}body.doex-contact .panel-from-right{width:max(50%,224px)}}
@media(prefers-reduced-motion:reduce){html:has(body.doex-contact){scroll-behavior:auto}}

/* ImpulZ contact entrance: unfold the glass without scaling the form fields. */
#jomaa-contact .jc-form-surface{position:relative;isolation:isolate;border-color:transparent;background:none;box-shadow:none}
#jomaa-contact .jc-form-surface::before{content:'';position:absolute;inset:-1px;z-index:-1;pointer-events:none;border:1px solid #ffffff29;border-radius:inherit;background:linear-gradient(145deg,#ffffff06,#ffffff02);box-shadow:inset 0 1px 0 #ffffff05,0 18px 70px #00000026;transform-origin:top}
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){
  #jomaa-contact.jc-entering .jc-form-surface::before{animation:jc-entry-surface 760ms linear(0,0.025 14%,0.07 28%,0.34 42%,0.65 57%,0.835 71%,0.95 85%,1) backwards}
  #jomaa-contact.jc-entering .jc-hero-copy>*{--jc-entry-blur:8px}
  #jomaa-contact.jc-entering .jc-hero-copy>*,
  #jomaa-contact.jc-entering .jc-form-heading,
  #jomaa-contact.jc-entering .wpcf7-form>p:has(.wpcf7-text,.wpcf7-textarea):not(.akismet-fields-container),
  #jomaa-contact.jc-entering .wpcf7-form>:has(.wpcf7-submit){animation-name:jc-entry-content;animation-duration:540ms;animation-timing-function:cubic-bezier(0.22,0,0.3,1);animation-fill-mode:backwards}
  #jomaa-contact.jc-entering h1{animation-delay:90ms}
  #jomaa-contact.jc-entering .jc-hero-intro{animation-delay:180ms}
  #jomaa-contact.jc-entering .jc-about-link{animation-delay:260ms}
  #jomaa-contact.jc-entering .jc-form-heading{animation-duration:440ms;animation-delay:760ms}
  #jomaa-contact.jc-entering .wpcf7-form>p:has([name="your-name"],[name="your-email"]){animation-delay:960ms}
  #jomaa-contact.jc-entering .wpcf7-form>p:has([name="your-subject"]){animation-delay:1040ms}
  #jomaa-contact.jc-entering .wpcf7-form>p:has([name="your-message"]){animation-delay:1120ms}
  #jomaa-contact.jc-entering .wpcf7-form>:has(.wpcf7-submit){animation-delay:1280ms}
  #jomaa-contact.jc-entering:focus-within *,
  #jomaa-contact.jc-entering:focus-within *::before{animation:none!important}
}
@keyframes jc-entry-surface{from{transform:scaleY(.025);opacity:.7}to{transform:scaleY(1);opacity:1}}
@keyframes jc-entry-content{from{opacity:0;filter:blur(var(--jc-entry-blur,0px));transform:translateY(.375rem)}to{opacity:1;filter:blur(0);transform:translateY(0)}}
