@font-face {
  font-family: Outfit;
  src: url("fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

#xva-bf-root[hidden] { display: none !important; }
#xva-bf-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Manrope, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#xva-bf-root *,
#xva-bf-root *::before,
#xva-bf-root *::after { box-sizing: border-box; }

.xva-bf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.56);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.xva-bf-modal {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  color: #1F1F1F;
  border: 1px solid #E3E3E3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(31, 31, 31, 0.18);
}

.xva-bf-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 480px at 0% 0%, rgba(66,133,244,.10), transparent 62%),
    radial-gradient(560px 420px at 100% 4%, rgba(251,188,4,.12), transparent 62%),
    radial-gradient(720px 520px at 92% 100%, rgba(52,168,83,.09), transparent 62%);
}
.xva-bf-arc {
  position: absolute;
  border: 1.5px solid rgba(31,31,31,.06);
  border-radius: 50%;
  pointer-events: none;
}
.xva-bf-arc-a { width: 900px; height: 900px; left: 420px; top: -520px; }
.xva-bf-arc-b { width: 620px; height: 620px; left: 580px; top: -360px; }

.xva-bf-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #1F1F1F;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.xva-bf-close:hover { background: rgba(31, 31, 31, 0.05); }
.xva-bf-close:focus-visible {
  outline: 2px solid #4285F4;
  outline-offset: 3px;
}

.xva-bf-inner {
  position: relative;
  z-index: 1;
  padding: 32px 48px 40px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}
.xva-bf-logo {
  height: 108px;
  width: auto;
  display: block;
  object-fit: contain;
  align-self: flex-start;
}
.xva-bf-grid {
  display: flex;
  gap: 56px;
  align-items: center;
  flex: 1 1 auto;
  margin-top: 20px;
  min-width: 0;
}
.xva-bf-copy { flex: 1 1 auto; min-width: 0; }
.xva-bf-form-col {
  flex: 0 0 320px;
  width: 320px;
  display: flex;
  flex-direction: column;
}

.xva-bf-eyebrow {
  font-family: Plex, ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A4D51;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  margin: 0;
}
.xva-bf-eyebrow i {
  display: inline-block;
  width: 44px;
  height: 3px;
  flex: none;
  background: linear-gradient(90deg, #34A853, #4FC3F7 55%, #4285F4);
}
.xva-bf-eyebrow-offer {
  color: #D93025;
  font-weight: 700;
}
.xva-bf-title {
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 6vw, 58px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #1F1F1F;
  margin: 16px 0 0;
}
.xva-bf-gt {
  background: linear-gradient(90deg, #34A853, #4FC3F7 55%, #4285F4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  padding-bottom: 0.08em;
}
.xva-bf-sub {
  font-family: Manrope, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: #4A4D51;
  margin: 18px 0 0;
  max-width: 480px;
}
.xva-bf-sub + .xva-bf-sub { margin-top: 12px; }
.xva-bf-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  position: relative;
}
.xva-bf-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.xva-bf-foot {
  margin-top: 22px;
  font-family: Plex, ui-monospace, monospace;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #80868B;
}
.xva-bf-foot span { color: #1F1F1F; }

/* Jetpack / Grunion contact form — match the designed field + button */
#xva-bf-root .xva-bf-form .contact-form-submission.submission-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#xva-bf-root .xva-bf-form .contact-form,
#xva-bf-root .xva-bf-form form,
#xva-bf-root .xva-bf-form .wp-block-jetpack-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#xva-bf-root .xva-bf-form .grunion-field-wrap,
#xva-bf-root .xva-bf-form .jetpack-field,
#xva-bf-root .xva-bf-form .wp-block-jetpack-field-text,
#xva-bf-root .xva-bf-form p,
#xva-bf-root .xva-bf-form .contact-submit {
  margin: 0;
  padding: 0;
  width: 100%;
  border: 0;
  background: transparent;
}
#xva-bf-root .xva-bf-form label,
#xva-bf-root .xva-bf-form .grunion-field-label,
#xva-bf-root .xva-bf-form .jetpack-field-label,
#xva-bf-root .xva-bf-form .grunion-field-label span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
#xva-bf-root .xva-bf-form input[type="text"],
#xva-bf-root .xva-bf-form input[type="email"],
#xva-bf-root .xva-bf-form input[type="tel"],
#xva-bf-root .xva-bf-form input.text,
#xva-bf-root .xva-bf-form .grunion-field,
#xva-bf-root .xva-bf-form .jetpack-field__input {
  width: 100% !important;
  max-width: none !important;
  background: #fff !important;
  border: 1.5px solid #E3E3E3 !important;
  border-radius: 8px !important;
  color: #1F1F1F !important;
  font-family: Manrope, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  padding: 14px 16px !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
}
#xva-bf-root .xva-bf-form input::placeholder {
  color: #80868B !important;
  opacity: 1 !important;
}
#xva-bf-root .xva-bf-form input:focus {
  border-color: #1F1F1F !important;
}
#xva-bf-root .xva-bf-form button[type="submit"],
#xva-bf-root .xva-bf-form input[type="submit"],
#xva-bf-root .xva-bf-form .pushbutton-wide,
#xva-bf-root .xva-bf-form .wp-block-button__link {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  background: #1F1F1F !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-family: Outfit, sans-serif !important;
  font-weight: 500 !important;
  font-size: 17px !important;
  letter-spacing: -0.01em !important;
  padding: 15px 18px !important;
  cursor: pointer !important;
  text-align: center !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
}
#xva-bf-root .xva-bf-form button[type="submit"]:hover,
#xva-bf-root .xva-bf-form input[type="submit"]:hover,
#xva-bf-root .xva-bf-form button[type="submit"]:focus-visible,
#xva-bf-root .xva-bf-form input[type="submit"]:focus-visible {
  background: #333 !important;
}
#xva-bf-root .xva-bf-form button[type="submit"]:focus-visible,
#xva-bf-root .xva-bf-form input[type="submit"]:focus-visible {
  outline: 2px solid #4285F4 !important;
  outline-offset: 3px !important;
}
#xva-bf-root .xva-bf-form .contact-form-submission {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1F1F1F;
}

@media (max-width: 720px) {
  #xva-bf-root { padding: 12px; }
  .xva-bf-modal {
    width: min(440px, 100%);
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 16px;
  }
  .xva-bf-arc-a { width: 700px; height: 700px; left: 80px; top: -420px; }
  .xva-bf-arc-b { width: 500px; height: 500px; left: 200px; top: -300px; }
  .xva-bf-inner {
    padding: 28px 24px 32px;
    min-height: 0;
  }
  .xva-bf-logo { height: 92px; }
  .xva-bf-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-top: 22px;
  }
  .xva-bf-form-col { flex: none; width: 100%; }
  .xva-bf-title { font-size: 40px; }
  .xva-bf-sub { font-size: 16px; max-width: none; }
  .xva-bf-close { top: 12px; right: 12px; }
  .xva-bf-foot { margin-top: 20px; }
}
