/* BGT Global RFQ Popup — v2026.60 */
body.bgt-rfq-popup-open {
  overflow: hidden !important;
}

.bgt-rfq-popup[hidden] {
  display: none !important;
}

.bgt-rfq-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}

.bgt-rfq-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 34, var(--bgt-rfq-overlay-opacity, .76));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bgt-rfq-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, var(--bgt-rfq-popup-width, 650px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--bgt-rfq-card-radius, 20px);
  box-shadow: 0 28px 90px rgba(1, 18, 26, .34);
  overscroll-behavior: contain;
}

.bgt-rfq-popup__card.bgt-bulk-quote__card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 30px 28px;
  background: var(--bgt-rfq-card-bg, #fff);
  border-radius: var(--bgt-rfq-card-radius, 20px);
  border-color: color-mix(in srgb, var(--bgt-rfq-input-border, #cfddd7) 90%, #fff);
  box-shadow: none;
}

.bgt-rfq-popup .bgt-bulk-quote__form-head {
  padding-right: 48px;
}

.bgt-rfq-popup .bgt-bulk-quote__form-title {
  color: var(--bgt-rfq-title, #071e2a);
}

.bgt-rfq-popup .bgt-bulk-quote__label {
  color: var(--bgt-rfq-label, #17343e);
}

.bgt-rfq-popup .bgt-bulk-quote__input,
.bgt-rfq-popup .bgt-bulk-quote__select,
.bgt-rfq-popup .bgt-bulk-quote__textarea {
  background: var(--bgt-rfq-input-bg, #fbfcfc);
  border-color: var(--bgt-rfq-input-border, #cfddd7);
}

.bgt-rfq-popup .bgt-bulk-quote__input:focus,
.bgt-rfq-popup .bgt-bulk-quote__select:focus,
.bgt-rfq-popup .bgt-bulk-quote__textarea:focus {
  border-color: var(--bgt-rfq-accent, #00a978);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bgt-rfq-accent, #00a978) 14%, transparent);
}

.bgt-rfq-popup .bgt-bulk-quote__upload-icon {
  color: var(--bgt-rfq-accent, #00a978);
  font-size: 22px;
  font-weight: 600;
}

.bgt-rfq-popup .bgt-bulk-quote__checkbox {
  accent-color: var(--bgt-rfq-accent, #00a978);
}

.bgt-rfq-popup .bgt-bulk-quote__submit {
  background: var(--bgt-rfq-submit-bg, #0a83d7);
  color: var(--bgt-rfq-submit-text, #fff);
}

.bgt-rfq-popup .bgt-bulk-quote__submit:hover,
.bgt-rfq-popup .bgt-bulk-quote__submit:focus-visible {
  color: var(--bgt-rfq-submit-text, #fff);
  filter: brightness(.93);
}

.bgt-rfq-popup__close {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  color: var(--bgt-rfq-close-color, #071e2a);
  background: var(--bgt-rfq-close-bg, #eef5f1);
  border: 1px solid color-mix(in srgb, var(--bgt-rfq-close-color, #071e2a) 12%, transparent);
  border-radius: 50%;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.bgt-rfq-popup__close:hover,
.bgt-rfq-popup__close:focus-visible {
  transform: scale(1.06);
}

.bgt-rfq-popup__close:focus-visible {
  outline: 2px solid var(--bgt-rfq-accent, #00a978);
  outline-offset: 2px;
}

@media (max-width: 650px) {
  .bgt-rfq-popup {
    padding: 10px;
    align-items: flex-start;
  }

  .bgt-rfq-popup__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    margin-top: 10px;
  }

  .bgt-rfq-popup__card.bgt-bulk-quote__card {
    padding: 22px 18px;
  }

  .bgt-rfq-popup__close {
    top: 11px;
    right: 11px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .bgt-rfq-popup .bgt-bulk-quote__form-head {
    padding-right: 44px;
  }
}


/* v2026.60 — Mobile-only compact fields.
   JavaScript adds the modifier class only after each visible label has been
   copied into its matching control as the mobile placeholder. This keeps
   desktop/tablet presentation untouched and preserves accessible <label>s. */
@media (max-width: 650px) {
  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__fields {
    row-gap: 9px;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__input,
  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__select {
    height: 44px;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__textarea {
    min-height: 82px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__upload {
    min-height: 60px;
    margin-top: 11px;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__consent {
    margin-top: 11px;
  }

  .bgt-rfq-popup.bgt-rfq-popup--mobile-label-placeholders .bgt-bulk-quote__submit {
    min-height: 48px;
    margin-top: 13px;
  }
}
