.b2b-contact-trigger {
  display: inline-flex;
  box-sizing: border-box;
  min-width: 12.5rem;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .72rem 1.4rem;
  border: 2px solid #d29438;
  border-radius: clamp(.7rem, 1.3vw, 1rem);
  background: linear-gradient(135deg, #061a33, #082449);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 20px rgb(4 27 54 / 17%), 0 3px 9px rgb(188 136 66 / 16%);
  animation: b2b-contact-cta-flash 1.5s ease-in-out infinite;
  text-transform: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.b2b-contact-trigger svg,
.b2b-form__submit svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.b2b-contact-trigger svg {
  color: #edbd69;
}

.b2b-contact-trigger:hover {
  border-color: #efbd64;
  background: linear-gradient(135deg, #09254a, #0b345c);
  box-shadow: 0 16px 28px rgb(4 27 54 / 20%), 0 3px 13px rgb(188 136 66 / 22%);
  transform: translateY(-2px);
}

@keyframes b2b-contact-cta-flash {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 10px 20px rgb(4 27 54 / 17%), 0 3px 9px rgb(188 136 66 / 16%), 0 0 0 1px rgb(214 177 108 / 12%);
  }
  50% {
    filter: brightness(1.15);
    box-shadow: 0 10px 20px rgb(4 27 54 / 17%), 0 3px 9px rgb(188 136 66 / 16%), 0 0 0 3px rgb(244 213 158 / 42%), 0 0 18px rgb(244 213 158 / 76%);
  }
}

.b2b-contact-trigger:focus-visible,
.b2b-modal button:focus-visible,
.b2b-modal a:focus-visible,
.b2b-modal input:focus-visible,
.b2b-modal select:focus-visible,
.b2b-modal textarea:focus-visible {
  outline: 3px solid #c99b5d;
  outline-offset: 3px;
}

.b2b-modal[hidden],
.b2b-success[hidden] {
  display: none !important;
}

.b2b-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: .75rem;
  box-sizing: border-box;
  color: #101e36;
  font-family: var(--arx-preset--font-family--poppins, Poppins, system-ui, sans-serif);
}

.b2b-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(3 15 31 / 78%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: b2b-fade-in .2s ease both;
}

.b2b-modal__panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(94vw, 1120px);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgb(190 148 83 / 72%);
  border-radius: clamp(1.35rem, 2.7vw, 2.35rem);
  background: #fbf9f6;
  color: #101e36;
  box-shadow: 0 30px 80px rgb(0 8 20 / 40%), 0 3px 14px rgb(195 145 78 / 15%);
  animation: b2b-rise-in .3s cubic-bezier(.2,.75,.25,1) both;
}

.b2b-modal__panel::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 850px);
  height: clamp(4rem, 7vw, 6rem);
  background: url("/assets/images/b2b-modal-bottom-wave.svg?v=b2b-modal-20261102-1") right bottom / 100% 100% no-repeat;
  content: "";
  opacity: .72;
  pointer-events: none;
}

.b2b-modal__header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 5.75rem;
  box-sizing: border-box;
  padding: 1.15rem clamp(1.2rem, 4vw, 2.6rem) 1.25rem;
  overflow: visible;
  background:
    radial-gradient(ellipse at 57% 88%, rgb(22 76 123 / 36%), transparent 53%),
    linear-gradient(125deg, #061a33 0%, #082448 58%, #061a33 100%);
  color: #fff;
}

.b2b-modal__header::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(ellipse at 55% 82%, rgb(80 130 170 / 12%), transparent 52%);
  content: "";
  pointer-events: none;
}

.b2b-modal__header::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -.7rem;
  left: 0;
  height: 3.8rem;
  background: url("/assets/images/b2b-modal-header-wave.svg?v=b2b-modal-20261102-1") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.b2b-modal__header h2 {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 4.5rem);
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgb(0 0 0 / 14%);
}

.b2b-modal__close {
  position: absolute;
  z-index: 3;
  top: .7rem;
  right: clamp(.8rem, 1.8vw, 1.2rem);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0 0 .12em;
  border: 2px solid #d39b43;
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  color: #fff;
  font: inherit;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.b2b-modal__close:hover {
  border-color: #f2c574;
  background: rgb(211 155 67 / 15%);
  box-shadow: 0 0 0 5px rgb(211 155 67 / 10%);
  transform: rotate(4deg);
}

.b2b-modal__content {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem clamp(1.2rem, 4vw, 2.6rem) 1.15rem;
  scrollbar-color: rgb(185 143 80 / 35%) transparent;
  scrollbar-width: thin;
}

.b2b-modal__content::-webkit-scrollbar {
  width: 8px;
}

.b2b-modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.b2b-modal__content::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgb(185 143 80 / 35%);
  background-clip: padding-box;
}

.b2b-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem clamp(.9rem, 1.7vw, 1.4rem);
}

.b2b-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.b2b-form__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .28rem;
}

.b2b-form__field--full,
.b2b-form__consents,
.b2b-form__footer {
  grid-column: 1 / -1;
}

.b2b-form__consents {
  display: grid;
  gap: .38rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.b2b-form__consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  color: #27344b;
  font-size: .78rem;
  line-height: 1.45;
}

.b2b-form__consent input[type="checkbox"] {
  appearance: none;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: .08rem 0 0;
  border: 1.5px solid #586678;
  border-radius: .2rem;
  background: #fff;
  cursor: pointer;
}

.b2b-form__consent input[type="checkbox"]:checked {
  border-color: #b6813f;
  background-color: #b6813f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3.2 3.2L13 4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: .78rem;
}

.b2b-form__consent input[type="checkbox"]:focus-visible {
  outline: 3px solid rgb(182 129 63 / 35%);
  outline-offset: 2px;
}

.b2b-form__consents[aria-invalid="true"] .b2b-form__consent input[type="checkbox"] {
  border-color: #b42318;
}

.b2b-form__consent a {
  color: #a8752d;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.b2b-form__field label {
  color: #101e36;
  font-size: clamp(.88rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
}

.b2b-form__field label > span:not(.b2b-form__optional) {
  color: #b78337;
}

.b2b-form__optional {
  color: #343a4c;
  font-size: .94em;
  font-weight: 400;
}

.b2b-form__field input,
.b2b-form__field select,
.b2b-form__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.85rem;
  margin: 0;
  padding: .55rem .8rem;
  border: 1.5px solid #c0c4d3;
  border-radius: .7rem;
  background: rgb(255 255 255 / 46%);
  color: #101e36;
  font: inherit;
  font-size: .95rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgb(12 28 52 / 3%);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.b2b-form__field select {
  min-height: 2.95rem;
  border-color: #c49553;
  box-shadow: 0 6px 16px rgb(12 28 52 / 5%);
  cursor: pointer;
}

.b2b-form__field textarea {
  min-height: 5rem;
  resize: vertical;
}

.b2b-form__field input::placeholder,
.b2b-form__field textarea::placeholder {
  color: #65718f;
  opacity: 1;
}

.b2b-form__field select:invalid {
  color: #101e36;
}

.b2b-form__field input:focus,
.b2b-form__field select:focus,
.b2b-form__field textarea:focus {
  border-color: #bc8842;
  background-color: #fffdfa;
  box-shadow: 0 0 0 4px rgb(192 145 78 / 16%), 0 7px 20px rgb(12 28 52 / 5%);
  outline: 0;
}

.b2b-form__field [aria-invalid="true"] {
  border-color: #b42318;
}

.b2b-form__error {
  min-height: 0;
  color: #a3201b;
  font-size: clamp(.78rem, 1.05vw, .94rem);
  line-height: 1.4;
}

.b2b-form__error:empty {
  display: none;
}

.b2b-form__privacy {
  margin: 0;
  color: #505a72;
  font-size: .78rem;
  line-height: 1.4;
}

.b2b-form__privacy a {
  color: #a8752d;
  font-weight: 700;
  text-underline-offset: .2em;
  text-decoration-thickness: 1.5px;
}

.b2b-form__footer {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.b2b-form__submit {
  display: inline-flex;
  min-width: 9.5rem;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .55rem 1.2rem;
  border: 2px solid #d29438;
  border-radius: clamp(.7rem, 1.3vw, 1rem);
  background: linear-gradient(135deg, #061a33, #082449);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgb(4 27 54 / 17%), 0 3px 9px rgb(188 136 66 / 16%);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.b2b-form__submit svg {
  width: 1.4em;
  height: 1.4em;
  color: #edbd69;
}

.b2b-form__submit:hover:not(:disabled) {
  border-color: #efbd64;
  background: linear-gradient(135deg, #09254a, #0b345c);
  box-shadow: 0 16px 28px rgb(4 27 54 / 20%), 0 3px 13px rgb(188 136 66 / 22%);
  transform: translateY(-2px);
}

.b2b-form__submit:disabled {
  cursor: wait;
  opacity: .72;
}

.b2b-form__feedback {
  margin: 0;
  color: #a3201b;
  font-size: clamp(.84rem, 1.2vw, 1rem);
  line-height: 1.5;
}

.b2b-form__feedback:empty {
  display: none;
}

.b2b-success {
  position: relative;
  z-index: 1;
  padding: .8rem 0 .4rem;
  text-align: center;
}

.b2b-success__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: #e6f5f3;
  color: #087f72;
  font-size: 1.65rem;
  font-weight: 700;
}

.b2b-success h3 {
  margin: 0;
  color: #0b2f5b;
  font-size: 1.35rem;
  line-height: 1.35;
}

.b2b-success p {
  margin: .65rem 0 1.3rem;
  color: #505a72;
  font-size: .9rem;
  line-height: 1.6;
}

.arxedo-dark .b2b-modal__panel {
  border-color: rgb(190 148 83 / 72%);
  background: #fbf9f6;
  color: #101e36;
}

.arxedo-dark .b2b-form__field input,
.arxedo-dark .b2b-form__field select,
.arxedo-dark .b2b-form__field textarea {
  border-color: #c0c4d3;
  background: rgb(255 255 255 / 46%);
  color: #101e36;
}

.arxedo-dark .b2b-form__privacy a {
  color: #a8752d;
}

@keyframes b2b-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes b2b-rise-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .b2b-modal {
    padding: .6rem;
  }

  .b2b-modal__panel {
    width: min(96vw, 34rem);
    height: auto;
    max-height: calc(100vh - 1.2rem);
    max-height: calc(100dvh - 1.2rem);
    min-height: 0;
    border-radius: 1.15rem;
  }

  .b2b-modal__header {
    min-height: 5rem;
    padding: .95rem 1rem 1.05rem;
  }

  .b2b-modal__header h2 {
    max-width: calc(100% - 3rem);
    font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  }

  .b2b-modal__header::after {
    bottom: -.55rem;
    height: 3.2rem;
  }

  .b2b-modal__close {
    top: .6rem;
    right: .6rem;
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.5rem;
  }

  .b2b-modal__content {
    padding: .8rem 1rem 1rem;
  }

  .b2b-form {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
  }

  .b2b-form__field--full,
  .b2b-form__privacy,
  .b2b-form__footer {
    grid-column: auto;
  }

  .b2b-form__field label {
    font-size: .88rem;
  }

  .b2b-form__field input,
  .b2b-form__field select,
  .b2b-form__field textarea {
    min-height: 2.65rem;
    padding: .5rem .75rem;
    border-radius: .65rem;
    font-size: .92rem;
  }

  .b2b-form__field select {
    min-height: 2.75rem;
  }

  .b2b-form__field textarea {
    min-height: 4rem;
  }

  .b2b-form__privacy {
    font-size: .76rem;
  }

  .b2b-form__footer {
    align-items: center;
    flex-direction: row;
    gap: .55rem;
  }

  .b2b-form__submit {
    min-width: 9rem;
    min-height: 2.65rem;
    padding: .5rem .85rem;
    font-size: .92rem;
  }

  .b2b-form__feedback {
    font-size: .75rem;
  }
}

@media (max-width: 380px) {
  .b2b-modal__header {
    padding-inline: .85rem;
  }

  .b2b-modal__content {
    padding-inline: .85rem;
  }

  .b2b-form__field textarea {
    min-height: 3.5rem;
  }
}

@media (max-height: 700px) {
  .b2b-modal__header {
    min-height: 4.7rem;
    padding-block: .85rem 1rem;
  }

  .b2b-modal__header::after {
    height: 2.8rem;
  }

  .b2b-modal__content {
    padding-block: .7rem .85rem;
  }

  .b2b-form {
    gap: .55rem .8rem;
  }

  .b2b-form__field input,
  .b2b-form__field select {
    min-height: 2.45rem;
  }

  .b2b-form__field textarea {
    min-height: 3.5rem;
  }

  .b2b-form__submit {
    min-height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-contact-trigger,
  .b2b-modal__backdrop,
  .b2b-modal__panel,
  .b2b-modal button {
    animation: none !important;
    transition: none !important;
  }
}
