/* AJVESTOR Phase 3 / Step 4 — Contact chapter (EN 628, SV 8763).
   Keep the existing Fluent Form 5, accessible phone/email disclosures,
   privacy consent and Intelligence-demo routing untouched.
   Deliberately match the newly published site chapter geometry. */
html body:is(.page-id-628,.page-id-8763) {
  --ajv-contact-frame-inset:clamp(6px,.85vw,14px);
  --ajv-contact-chapter-gap:clamp(8px,1vw,14px);
  --ajv-contact-content-inset:max(clamp(24px,5vw,66px),calc(50% - 570px));
  --ajv-contact-outline:rgba(118,132,148,.23);
}
html body:is(.page-id-628,.page-id-8763) :is(
  .elementor-628,.elementor-8763,
  .elementor-element-cdcc3a71,
  .elementor-element-22812104
) {
  background:#eef0f2!important;
}
html body:is(.page-id-628,.page-id-8763) .elementor-element-cdcc3a71 {
  padding:var(--ajv-contact-frame-inset) 0 var(--ajv-contact-frame-inset)!important;
  margin:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
}
html body:is(.page-id-628,.page-id-8763) .elementor-element-22812104 {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
html body:is(.page-id-628,.page-id-8763) .elementor-element-22812104 > .e-con-inner {
  width:calc(100% - 2 * var(--ajv-contact-frame-inset))!important;
  max-width:none!important;
  min-width:0;
  padding:0!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  display:flex;
  flex-direction:column;
  gap:0;
}
/* Distinct first chapter: measured introduction and two concise contact choices. */
html body:is(.page-id-628,.page-id-8763) .ajv-contact-wrap,
html body:is(.page-id-628,.page-id-8763) .elementor-element-927de7b0 {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-hero {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:clamp(40px,5.25vw,75px) var(--ajv-contact-content-inset) clamp(35px,4.6vw,61px)!important;
  border:1px solid var(--ajv-contact-outline)!important;
  border-radius:clamp(15px,2vw,26px)!important;
  background:linear-gradient(145deg,#fafbfc,#f0f3f7)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96)!important;
  overflow:hidden;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-kicker {
  margin:0 0 13px!important;
  color:#2f6bff!important;
  font-size:11px!important;
  font-weight:750!important;
  letter-spacing:.14em!important;
  text-transform:uppercase;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-hero h1 {
  max-width:1000px!important;
  margin:0!important;
  color:#202832!important;
  font-size:clamp(43px,5.25vw,72px)!important;
  font-weight:590!important;
  line-height:1.07!important;
  letter-spacing:-.039em!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-lede {
  max-width:765px!important;
  margin:18px 0 0!important;
  color:#56616e!important;
  font-size:clamp(15px,1.3vw,17px)!important;
  line-height:1.7!important;
}
/* Phone and email share the same height, internal grid and interaction states.
   Keep the native <details>/<summary> reveal behavior. */
html body:is(.page-id-628,.page-id-8763) .ajv-contact-options {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;
  max-width:1010px!important;
  gap:clamp(12px,1.6vw,22px)!important;
  margin:clamp(24px,3vw,38px) 0 0!important;
  padding:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-card {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:188px!important;
  min-height:188px!important;
  margin:0!important;
  border:1px solid rgba(118,132,148,.26)!important;
  border-radius:16px!important;
  background:linear-gradient(155deg,#fff,#f8f9fb)!important;
  box-shadow:inset 0 1px 0 #fff,0 2px 8px rgba(20,29,41,.025)!important;
  overflow:hidden!important;
  transform:none!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-card:is(:hover,:focus-within,[open]) {
  border-color:rgba(47,107,255,.43)!important;
  background:linear-gradient(155deg,#fff,#f5f8ff)!important;
  box-shadow:inset 0 1px 0 #fff,0 4px 13px rgba(20,29,41,.04)!important;
}
html body:is(.page-id-628,.page-id-8763) :is(.ajv-phone-card > summary,.ajv-phone-reveal) {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  min-width:0!important;
  width:100%!important;
  height:186px!important;
  min-height:186px!important;
  margin:0!important;
  padding:22px clamp(18px,2.5vw,28px)!important;
  border:0!important;
  border-radius:15px!important;
  background:transparent!important;
  color:#202832!important;
  text-decoration:none!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-card :is(.ajv-card-title,.ajv-phone-number) {
  font-size:clamp(20px,2vw,27px)!important;
  font-weight:610!important;
  line-height:1.26!important;
  letter-spacing:-.02em!important;
  color:#202832!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-contact-card .ajv-card-action {
  color:#245ce0!important;
  font-size:13px!important;
  font-weight:660!important;
}
/* Enquiry heading is a bridge between the hero and the form,
   not an additional heavy card or a large empty chapter. */
html body:is(.page-id-628,.page-id-8763) .ajv-form-intro {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(35px,4vw,50px) var(--ajv-contact-content-inset) 23px!important;
  border:0!important;
  background:transparent!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-head {
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:clamp(15px,3vw,43px)!important;
  align-items:start!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-head h2 {
  margin:0!important;
  color:#202832!important;
  font-size:clamp(27px,3.2vw,42px)!important;
  font-weight:610!important;
  line-height:1.19!important;
  letter-spacing:-.03em!important;
  text-wrap:balance;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-head p {
  margin:0!important;
  color:#586371!important;
  font-size:clamp(14px,1.25vw,16px)!important;
  line-height:1.7!important;
}
/* Form occupies the same outer framed width as the hero and the footer. */
html body:is(.page-id-628,.page-id-8763) .elementor-element-22812104 .ajv-form-panel {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:clamp(29px,4.5vw,64px) var(--ajv-contact-content-inset)!important;
  border:1px solid var(--ajv-contact-outline)!important;
  border-radius:clamp(15px,2vw,26px)!important;
  background:#fff!important;
  box-shadow:inset 0 1px 0 #fff!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel :is(.elementor-widget-container,.elementor-shortcode,.fluentform) {
  box-sizing:border-box!important;
  min-width:0;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1050px!important;
  margin:0 auto!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 fieldset {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(16px,1.9vw,24px) clamp(15px,2.2vw,27px)!important;
  min-width:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff-el-group {
  min-width:0!important;
  margin:0!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff-el-group:has(
  select,textarea,input[type=checkbox]
),
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff_submit_btn_wrapper {
  grid-column:1 / -1!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff-el-input--label {
  margin:0 0 7px!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff-el-input--label label {
  color:#2c3744!important;
  font-weight:625!important;
  font-size:13px!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 :is(
  input.ff-el-form-control,select.ff-el-form-control,textarea.ff-el-form-control
) {
  box-sizing:border-box!important;
  width:100%!important;
  min-height:48px!important;
  padding:11px 14px!important;
  border:1px solid #cbd2dc!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#202832!important;
  font-size:14px!important;
  box-shadow:none!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 textarea.ff-el-form-control {
  min-height:133px!important;
  resize:vertical;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff_t_c {
  color:#596574!important;
  font-size:13px!important;
  font-weight:440!important;
  line-height:1.6!important;
}
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff_t_c a {
  color:#245ce0!important;
}
/* Preserve the existing AJVESTOR pill submit button; simply align its row. */
html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff_submit_btn_wrapper {
  margin-top:3px!important;
  padding:0!important;
}
/* The existing empty legacy text widget should not introduce footer whitespace. */
html body:is(.page-id-628,.page-id-8763) .elementor-element-47385476 {
  display:none!important;
}
html body:is(.page-id-628,.page-id-8763) #ajv-site-footer.site-footer {
  margin-top:0!important;
}
@media(max-width:760px) {
  html body:is(.page-id-628,.page-id-8763) {
    --ajv-contact-content-inset:clamp(20px,5.5vw,28px);
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-contact-hero {
    padding:35px var(--ajv-contact-content-inset) 29px!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-contact-hero h1 {
    font-size:clamp(38px,8.7vw,51px)!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-form-head {
    grid-template-columns:minmax(0,1fr)!important;
    gap:11px!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-form-intro {
    padding:30px var(--ajv-contact-content-inset) 21px!important;
  }
  html body:is(.page-id-628,.page-id-8763) .elementor-element-22812104 .ajv-form-panel {
    padding:28px var(--ajv-contact-content-inset)!important;
  }
}
@media(max-width:600px) {
  html body:is(.page-id-628,.page-id-8763) .ajv-contact-options {
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-contact-card {
    height:169px!important;
    min-height:169px!important;
  }
  html body:is(.page-id-628,.page-id-8763) :is(.ajv-phone-card > summary,.ajv-phone-reveal) {
    height:167px!important;
    min-height:167px!important;
    padding:18px 20px!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 fieldset {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff-el-group,
  html body:is(.page-id-628,.page-id-8763) .ajv-form-panel #fluentform_5 .ff_submit_btn_wrapper {
    grid-column:1 / -1!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html body:is(.page-id-628,.page-id-8763) .ajv-contact-card {
    transition:none!important;
  }
}

/* Contact EN/SV — final form chapter to footer spacing.
 * Footer's existing outer frame supplies its own 6–14px top margin.
 * Avoid a second gap from Elementor or the English theme content wrapper. */
html body:is(.page-id-628,.page-id-8763) :is(
  #content,
  #content > .inner-wrap,
  #content > .inner-wrap > article,
  .elementor-628,
  .elementor-8763,
  .elementor-element-cdcc3a71
) {
  margin-bottom:0!important;
  padding-bottom:0!important;
}
html body:is(.page-id-628,.page-id-8763) .elementor-element-cdcc3a71 {
  padding-top:var(--ajv-contact-frame-inset)!important;
}
html body:is(.page-id-628,.page-id-8763) #ajv-site-footer.site-footer {
  margin-top:0!important;
  padding-top:0!important;
}

/* Contact EN/SV — keep all native Fluent Forms select menus in a LIGHT
 * colour scheme, including options opened in dark-mode browsers.
 * Only colour presentation changes; field values/events are untouched. */
html body:is(.page-id-628,.page-id-8763) #fluentform_5 select.ff-el-form-control,
html body:is(.page-id-628,.page-id-8763) #fluentform_5 select.ff-el-form-control:is(:focus,:active,:hover) {
  color-scheme:light!important;
  background-color:#fff!important;
  color:#202832!important;
  border-color:#cbd2dc!important;
}
html body:is(.page-id-628,.page-id-8763) #fluentform_5 select.ff-el-form-control :is(option,optgroup) {
  color-scheme:light!important;
  background-color:#fff!important;
  color:#202832!important;
}
html body:is(.page-id-628,.page-id-8763) #fluentform_5 select.ff-el-form-control option:checked {
  background-color:#f1f5fb!important;
  color:#202832!important;
}
