/* ==========================================================================
   ELETRONBIKE B2B - Plugin Core Styles & Modal Components
   ========================================================================== */

/* RFQ Modal Overlay */
.b2b-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
}

.b2b-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: eletronModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

@keyframes eletronModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.b2b-modal-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 24px 28px;
  position: relative;
}

.b2b-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #FFFFFF;
}

.b2b-modal-header p {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
}

.b2b-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.b2b-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.b2b-modal-body {
  padding: 28px;
}

/* Form Styles */
.b2b-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.b2b-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b2b-form-group.full-width {
  grid-column: span 2;
}

.b2b-form-label {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.b2b-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
  color: #0F172A;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.b2b-form-control:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.b2b-form-control::placeholder {
  color: #94A3B8;
}

/* Honeypot hidden field */
.eletron-hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Button */
.b2b-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: #059669;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.b2b-btn-submit:hover {
  background: #047857;
}

.b2b-btn-submit:disabled {
  background: #94A3B8;
  cursor: not-allowed;
}

/* Badges */
.b2b-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .b2b-form-grid {
    grid-template-columns: 1fr;
  }
  .b2b-form-group.full-width {
    grid-column: span 1;
  }
  .b2b-modal-body {
    padding: 20px;
  }
}

/* ==========================================================================
   Floating WhatsApp B2B Contact Widget
   ========================================================================== */
.b2b-whatsapp-floating-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99990;
}

.b2b-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-family: inherit;
}

.b2b-whatsapp-btn:hover {
  background: #20BA56;
  color: #FFFFFF !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.18);
}

.b2b-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  color: #25D366;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-wa-icon svg {
  width: 22px;
  height: 22px;
}

.b2b-wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.b2b-wa-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.b2b-wa-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Online Pulse Animation */
.b2b-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  pointer-events: none;
  animation: b2bWaPulse 2.8s infinite;
}

@keyframes b2bWaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile: Compact Floating Action Button */
@media (max-width: 640px) {
  .b2b-whatsapp-floating-wrap {
    bottom: 20px;
    right: 20px;
  }
  .b2b-whatsapp-btn {
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
  }
  .b2b-wa-text {
    display: none;
  }
  .b2b-wa-icon {
    width: 52px;
    height: 52px;
    background: transparent;
    color: #FFFFFF;
    box-shadow: none;
  }
  .b2b-wa-icon svg {
    width: 30px;
    height: 30px;
  }
  .b2b-wa-pulse {
    border-radius: 50%;
  }
}

/* ==========================================================================
   B2B Video Player & Factory Tour Components
   ========================================================================== */
.b2b-video-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.b2b-video-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
}

.b2b-video-player-wrap iframe,
.b2b-video-player-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.b2b-cert-banner {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  border: 1px solid #E2E8F0;
  margin-top: 24px;
}
.b2b-cert-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .b2b-video-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
