/* ==========================================================================
   Fluent Forms
   ========================================================================== */

.pulse-pen-fluent-form .fluentform {
  margin: 0;
}

.pulse-pen-fluent-form form,
.pulse-pen-fluent-form fieldset {
  display: grid;
  gap: 28px 16px;
}

.pulse-pen-fluent-form fieldset {
  width: 100%;
}

.pulse-pen-fluent-form .ff-el-group {
  margin: 0;
}

.pulse-pen-fluent-form .ff-t-container {
  display: flex;
  gap: 17px;
  margin: 0;
}

.pulse-pen-fluent-form .ff-t-cell {
  min-width: 0;
  padding: 0;
}

.pulse-pen-fluent-form .ff-el-input--label {
  margin: 0 0 9px;
}

.pulse-pen-fluent-form .ff-el-input--label label,
.pulse-pen-fluent-form .ff-el-input--label label.ff-el-form-check-label {
  display: inline;
  margin: 0;
  color: var(--color-navy);
  font: 700 22px/1.48 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.pulse-pen-fluent-form .ff-el-is-required.asterisk-right label::after {
  margin-left: 3px;
  color: var(--color-coral);
}

.pulse-pen-fluent-form .ff-el-form-control,
.pulse-pen-fluent-form textarea.ff-el-form-control,
.pulse-pen-fluent-form select.ff-el-form-control {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 10px;
  color: var(--color-navy);
  font: 400 22px/1.3 var(--font-sans);
  background-color: #f3f3f5;
}

.pulse-pen-fluent-form select.ff-el-form-control {
  appearance: none;
  padding-right: 52px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-navy) 50%),
    linear-gradient(135deg, var(--color-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 25px) 50%,
    calc(100% - 17px) 50%;
  background-repeat: no-repeat;
  background-size: 8px 8px, 8px 8px;
}

.pulse-pen-fluent-form .contact-select-field {
  position: relative;
}

.pulse-pen-fluent-form .contact-select-field .native-select {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pulse-pen-fluent-form .custom-select {
  position: relative;
  display: block;
  width: 100%;
}

.pulse-pen-fluent-form .custom-select-trigger {
  position: relative;
  display: flex;
  min-height: 54px;
  width: 100%;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 12px 52px 12px 10px;
  color: var(--color-navy);
  font: 400 22px/1.3 var(--font-sans);
  text-align: left;
  background: #f3f3f5;
  cursor: pointer;
}

.pulse-pen-fluent-form .custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 9px solid var(--color-navy);
  transform: translateY(-38%);
  transition: transform 180ms ease;
}

.pulse-pen-fluent-form .custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-62%) rotate(180deg);
}

.pulse-pen-fluent-form .custom-select-trigger:hover,
.pulse-pen-fluent-form .custom-select-trigger:focus-visible {
  color: #013252;
}

.pulse-pen-fluent-form .custom-select-trigger:focus-visible {
  outline: 3px solid rgba(0, 87, 199, 0.25);
  outline-offset: 4px;
}

.pulse-pen-fluent-form .custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(1, 50, 82, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.pulse-pen-fluent-form .custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pulse-pen-fluent-form .custom-select-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--color-navy);
  font: 400 18px/1.2 var(--font-sans);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.pulse-pen-fluent-form .custom-select-menu button:hover,
.pulse-pen-fluent-form .custom-select-menu button:focus-visible {
  color: var(--color-coral);
  outline: 0;
  background: rgba(255, 91, 69, 0.08);
}

.pulse-pen-fluent-form .custom-select-menu button[aria-selected="true"] {
  color: #ffffff;
  background: var(--color-navy);
}

.pulse-pen-fluent-form .custom-select-menu button:disabled {
  color: #7c8795;
  cursor: default;
}

.pulse-pen-fluent-form textarea.ff-el-form-control {
  min-height: 136px;
  resize: vertical;
}

.pulse-pen-fluent-form .ff-el-form-control:focus {
  border: 0;
  box-shadow: none;
  outline: 3px solid rgba(0, 87, 199, 0.25);
  outline-offset: 4px;
}

.pulse-pen-fluent-form .ff-el-help-message {
  margin: 8px 0 0;
  color: #7c8795;
  font: 400 14px/1.35 var(--font-sans);
}

.pulse-pen-fluent-form .ff-el-is-error .ff-el-form-control {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.pulse-pen-fluent-form .text-danger,
.pulse-pen-fluent-form .ff-el-is-error .error,
.pulse-pen-fluent-form .ff-el-form-error {
  margin: 8px 0 0;
  color: #b42318;
  font: 400 14px/1.35 var(--font-sans);
}

.pulse-pen-fluent-form .ff_upload_btn.ff-btn,
.pulse-pen-fluent-form .ff-el-input--content input[type="file"] {
  position: relative;
  display: grid;
  min-height: 128px;
  width: 100%;
  align-content: center;
  justify-items: center;
  border: 1px dashed #aeb8c5;
  border-radius: 18px;
  color: var(--color-navy);
  font: 700 18px/1.25 var(--font-sans);
  text-align: center;
  background: #fbfcfd;
}

.pulse-pen-fluent-form .ff_submit_btn_wrapper {
  margin: 16px 0 0;
}

.pulse-pen-fluent-form .ff-btn-submit,
.pulse-pen-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
  display: inline-flex;
  width: 100%;
  height: 40px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  padding: 0 28px;
  color: #ffffff;
  font: 700 17px/1 var(--font-sans);
  text-decoration: none;
  background: var(--color-coral);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.pulse-pen-fluent-form .ff-btn-submit:hover,
.pulse-pen-fluent-form .ff-btn-submit:focus-visible {
  background: #ef513d;
  transform: translateY(-1px);
}

.pulse-pen-fluent-form .ff-btn-submit:focus-visible {
  outline: 3px solid rgba(0, 87, 199, 0.25);
  outline-offset: 4px;
}

.pulse-pen-fluent-form .ff-message-success {
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--color-navy);
  font: 400 18px/1.4 var(--font-sans);
  background: #fbfcfd;
  box-shadow: none;
}

@media (max-width: 767px) {
  .pulse-pen-fluent-form form,
  .pulse-pen-fluent-form fieldset {
    gap: 20px;
  }

  .pulse-pen-fluent-form .ff-t-container {
    flex-direction: column;
    gap: 20px;
  }

  .pulse-pen-fluent-form .ff-t-cell {
    flex-basis: auto;
    width: 100%;
  }

  .pulse-pen-fluent-form .ff-el-input--label {
    margin-bottom: 11px;
  }

  .pulse-pen-fluent-form .ff-el-input--label label,
  .pulse-pen-fluent-form .ff-el-input--label label.ff-el-form-check-label {
    font-size: 17px;
    line-height: 1.18;
  }

  .pulse-pen-fluent-form .ff-el-form-control,
  .pulse-pen-fluent-form textarea.ff-el-form-control,
  .pulse-pen-fluent-form select.ff-el-form-control {
    min-height: 52px;
    font-size: 18px;
  }

  .pulse-pen-fluent-form .custom-select-trigger {
    min-height: 52px;
    font-size: 18px;
  }

  .pulse-pen-fluent-form .custom-select-menu {
    max-height: 320px;
  }

  .pulse-pen-fluent-form .custom-select-menu button {
    padding: 11px 12px;
    font-size: 16px;
  }

  .pulse-pen-fluent-form .ff_upload_btn.ff-btn,
  .pulse-pen-fluent-form .ff-el-input--content input[type="file"] {
    min-height: 132px;
    font-size: 18px;
  }
}
