/* BGT homepage assistance popup */
body.bgt-request-modal-open {
  overflow: hidden;
}

.bgt-request-modal[hidden] {
  display: none !important;
}

.bgt-request-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Century Gothic", Arial, sans-serif;
}

.bgt-request-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 45, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bgt-request-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 22px 8px 22px 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 34px 38px 36px;
  color: #414141;
  animation: bgtRequestIn 0.28s ease-out;
}

@keyframes bgtRequestIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bgt-request-accent {
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: #FC9B3A;
  margin-bottom: 18px;
}

.bgt-request-panel h2 {
  margin: 0 42px 8px 0;
  color: #34849B;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.bgt-request-intro {
  margin: 0 0 24px;
  color: #676767;
  font-size: 15px;
  line-height: 1.55;
}

.bgt-request-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f6;
  color: #414141;
  font-size: 25px;
  line-height: 36px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bgt-request-close:hover,
.bgt-request-close:focus {
  background: #34849B;
  color: #fff;
  outline: none;
}

.bgt-request-fieldset {
  padding: 0;
  margin: 0 0 24px;
  border: 0;
}

.bgt-request-fieldset legend,
.bgt-request-field > label {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  color: #25383d;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.bgt-request-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bgt-request-option {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce6e9;
  border-radius: 12px 5px 12px 5px;
  background: #fafcfc;
  color: #414141;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bgt-request-option:hover {
  border-color: #34849B;
  background: #f5fafb;
}

.bgt-request-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 9px 0 0;
  accent-color: #34849B;
}

.bgt-other-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.bgt-other-row .bgt-request-option {
  white-space: nowrap;
}

.bgt-request-field {
  margin-bottom: 20px;
}

.bgt-request-input,
.bgt-request-textarea {
  display: block;
  width: 100%;
  border: 1px solid #cfdcdf;
  border-radius: 12px 5px 12px 5px;
  background: #fff;
  color: #2f3d41;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bgt-request-textarea {
  min-height: 122px;
  resize: vertical;
}

.bgt-request-input:focus,
.bgt-request-textarea:focus {
  border-color: #34849B;
  box-shadow: 0 0 0 3px rgba(52, 132, 155, 0.12);
}

.bgt-request-input:disabled {
  background: #f3f5f5;
  color: #8a979a;
  cursor: not-allowed;
}

.bgt-request-submit {
  width: 100%;
  min-height: 50px;
  border: 2px solid #FC9B3A;
  border-radius: 15px 5px 15px 5px;
  background: #FC9B3A;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.bgt-request-submit:hover,
.bgt-request-submit:focus {
  background: #fff;
  color: #FC9B3A;
  outline: none;
}

.bgt-request-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bgt-request-status {
  min-height: 20px;
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.bgt-request-status.is-error { color: #a93535; }
.bgt-request-status.is-success { color: #267044; }

.bgt-request-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .bgt-request-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .bgt-request-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 28px 20px 24px;
    border-radius: 20px 8px 20px 8px;
  }

  .bgt-request-panel h2 {
    font-size: 27px;
  }

  .bgt-request-options {
    grid-template-columns: 1fr;
  }

  .bgt-other-row {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgt-request-panel {
    animation: none;
  }
}
