/* ==========================================================================
   EV Urjavahan - WhatsApp Enquiry System Styles
   WhatsApp Number: +91 92641 24078
   ========================================================================== */

:root {
  --wa-green: #25D366;
  --wa-green-hover: #1EBE5D;
  --wa-green-dark: #128C7E;
  --wa-green-teal: #075E54;
  --wa-shadow: rgba(37, 211, 102, 0.35);
}

/* --- WhatsApp Buttons --- */
.btn-whatsapp {
  background: var(--wa-green) !important;
  color: #ffffff !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 4px 14px var(--wa-shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: var(--wa-green-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg,
.btn-whatsapp i {
  font-size: 18px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-whatsapp-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 20px;
}

.btn-whatsapp-outline {
  background: transparent !important;
  color: var(--wa-green) !important;
  border: 2px solid var(--wa-green) !important;
  box-shadow: none;
}

.btn-whatsapp-outline:hover {
  background: var(--wa-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* --- Floating WhatsApp Widget --- */
.wa-float-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
  font-family: inherit;
}

.wa-float-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-btn:hover {
  background: var(--wa-green-hover);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.wa-float-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

/* Pulse animation rings */
.wa-float-btn::before,
.wa-float-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  opacity: 0.8;
  animation: waPulse 2s infinite ease-out;
}

.wa-float-btn::after {
  animation-delay: 1s;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wa-float-tooltip {
  background: #ffffff;
  color: #222222;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  animation: waFadeIn 0.5s ease;
}

.wa-float-tooltip span.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--wa-green);
  border-radius: 50%;
  display: inline-block;
}

@keyframes waFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Mobile Bottom Enquiry Bar --- */
.mobile-enquiry-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-enquiry-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.12);
    z-index: 99997;
    border-top: 1px solid #e9ecef;
  }

  .mobile-enquiry-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
  }

  .mobile-enquiry-bar .mob-call {
    background: #111111;
    color: #ffffff;
  }

  .mobile-enquiry-bar .mob-wa {
    background: var(--wa-green);
    color: #ffffff;
  }

  .mobile-enquiry-bar a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  /* Reposition floating button so it sits above mobile bar */
  .wa-float-container {
    bottom: 68px;
    right: 18px;
  }

  .wa-float-tooltip {
    display: none; /* Hide tooltip on small mobile screens to keep view clean */
  }

  .wa-float-btn {
    width: 52px;
    height: 52px;
  }

  .wa-float-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Padding at bottom of body to prevent bar from blocking footer */
  body {
    padding-bottom: 56px;
  }
}

/* --- Contact & Enquiry Page Specific Styles --- */
.enquiry-quick-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.enquiry-quick-card .eq-text h4 {
  color: #14532d;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
}

.enquiry-quick-card .eq-text p {
  color: #166534;
  margin-bottom: 0;
  font-size: 14px;
}

.enquiry-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef0f2;
}

.enquiry-form-card .form-control,
.enquiry-form-card .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

.enquiry-form-card .form-control:focus,
.enquiry-form-card .form-select:focus {
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.enquiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(37, 211, 102, 0.12);
  color: #15803d;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* --- EV Scooter Spare Parts Section Styles --- */
.spare-part-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.spare-part-card:hover {
  transform: translateY(-6px);
  border-color: #86efac;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spare-part-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}

.spare-part-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.spare-part-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 18px;
}

.spare-part-card .card-enquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.spare-part-card .card-enquire-btn:hover {
  background: var(--wa-green);
  color: #ffffff;
  transform: translateX(3px);
}

.spare-seo-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.seo-keyword-tag {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  margin: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.seo-keyword-tag:hover {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

.spare-cta-card {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-radius: 22px;
  padding: 34px 28px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.spare-cta-card > div {
  min-width: 0;
  width: 100%;
}

.spare-cta-card h3 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}

.spare-cta-card p {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  min-width: 0;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.spare-cta-card .contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14.5px;
  min-width: 0;
  width: 100%;
  white-space: normal !important;
}

.spare-cta-card .contact-detail-item i {
  flex-shrink: 0;
  margin-top: 3px;
}

.spare-cta-card .contact-detail-item > div {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.45;
}

.spare-cta-card .contact-detail-item a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.spare-cta-card .contact-detail-item a:hover {
  color: #86efac;
}

/* Spare Parts Section Responsive Styles */
@media (max-width: 991px) {
  #ev-spare-parts {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .spare-cta-card {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .spare-cta-card {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .spare-cta-card h3 {
    font-size: 22px;
  }
  .spare-cta-card p {
    font-size: 14px;
  }
  .spare-cta-card .contact-detail-item {
    font-size: 13.5px;
  }
  .spare-seo-box {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .spare-seo-box h4 {
    font-size: 19px;
  }
  .spare-part-card {
    padding: 24px 18px;
  }
  .seo-keyword-tag {
    font-size: 12px;
    padding: 5px 12px;
    margin: 3px;
  }
}

@media (max-width: 480px) {
  .spare-cta-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .spare-cta-card h3 {
    font-size: 20px;
  }
  .spare-seo-box {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .spare-seo-box h4 {
    font-size: 17px;
  }
  .spare-part-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 14px;
  }
  .seo-keyword-tag {
    font-size: 11.5px;
    padding: 4px 10px;
  }
}


