/* Bester Sample Request Modal — premium B2B drawer v5.4 */

.bsr-modal-open {
  overflow: hidden;
}

#bester-sample-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#bester-sample-modal.is-open {
  pointer-events: auto;
}

#bester-sample-modal.is-visible {
  opacity: 1;
}

#bester-sample-modal .bsr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#bester-sample-modal .bsr-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 0 env(safe-area-inset-bottom, 0);
}

#bester-sample-modal.is-visible .bsr-sheet {
  transform: translateY(0);
}

@media (min-width: 768px) {
  #bester-sample-modal {
    align-items: center;
    padding: 24px;
  }

  #bester-sample-modal .bsr-sheet {
    border-radius: 16px;
    max-height: 88vh;
    transform: translateY(24px) scale(0.98);
  }

  #bester-sample-modal.is-visible .bsr-sheet {
    transform: translateY(0) scale(1);
  }
}

.bsr-sheet__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef1f4;
}

.bsr-sheet__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 6px;
}

.bsr-sheet__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.bsr-sheet__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bsr-sheet__body {
  padding: 8px 22px 24px;
}

.bsr-field {
  margin-bottom: 16px;
}

.bsr-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.bsr-field input,
.bsr-field textarea {
  width: 100%;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsr-field input:focus,
.bsr-field textarea:focus {
  outline: none;
  border-color: #0076c0;
  box-shadow: 0 0 0 3px rgba(0, 118, 192, 0.12);
}

.bsr-field textarea {
  min-height: 96px;
  resize: vertical;
}

.bsr-email-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #b45309;
}

.bsr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.bsr-preset-chip {
  border: 1px solid #dbe3ea;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
}

.bsr-preset-chip:hover {
  border-color: #0076c0;
  color: #0076c0;
  background: #f0f9ff;
}

.bsr-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0076c0 0%, #005a94 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bsr-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.bsr-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.bsr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bsr-spin 0.7s linear infinite;
}

@keyframes bsr-spin {
  to { transform: rotate(360deg); }
}

.bsr-success {
  text-align: center;
  padding: 36px 12px 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bsr-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bsr-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 28px;
  line-height: 56px;
}

.bsr-success__msg {
  font-size: 17px;
  line-height: 1.5;
  color: #0f172a;
  margin: 0 0 18px;
  font-weight: 600;
}

.bsr-success__close {
  border: 1px solid #dbe3ea;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

[data-sample-request] {
  cursor: pointer;
}

.prod-tabs__inline-cta {
  border: 0;
  background: none;
  color: #0076c0;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}

.prod-mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.prod-mobile-cta-bar .btn {
  width: 100%;
  font-weight: 700;
}

@media (min-width: 992px) {
  .prod-mobile-cta-bar {
    display: none;
  }
}

@media (max-width: 991px) {
  .premium-en.prod-page #main {
    padding-bottom: 84px;
  }
}
