/* ═══════════════════════════════════════════════════════
   Stellar Dental Clinic - FAB & Zoho Modal Styles
   ═══════════════════════════════════════════════════════ */

/* ── FAB Container ── */
.stellar-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0;
}

/* ── Main Toggle Button ── */
.fab-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2bb3c3, #1a8a97);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(43, 179, 195, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.fab-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(43, 179, 195, 0.55);
}

.fab-toggle .fab-icon-close {
  display: none;
}

.fab-open .fab-toggle {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
  transform: rotate(0deg);
}

.fab-open .fab-toggle .fab-icon-open {
  display: none;
}

.fab-open .fab-toggle .fab-icon-close {
  display: flex;
}

/* Pulse animation */
.fab-pulse {
  animation: fabPulseAnim 0.6s ease;
}

@keyframes fabPulseAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ── FAB Options ── */
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.fab-open .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* ── Individual Option ── */
.fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.fab-option:hover {
  transform: translateX(-4px);
}

.fab-option-label {
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.2px;
}

.fab-option-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* WhatsApp option */
.fab-whatsapp .fab-option-icon {
  background: #25D366;
}
.fab-whatsapp:hover .fab-option-label {
  color: #25D366;
}

/* Contact Us option */
.fab-contact .fab-option-icon {
  background: linear-gradient(135deg, #2bb3c3, #1a8a97);
}
.fab-contact:hover .fab-option-label {
  color: #2bb3c3;
}

/* Book Appointment option */
.fab-appointment .fab-option-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}
.fab-appointment:hover .fab-option-label {
  color: #e67e22;
}

/* Staggered animation */
.fab-open .fab-option:nth-child(1) { transition-delay: 0.05s; }
.fab-open .fab-option:nth-child(2) { transition-delay: 0.1s; }
.fab-open .fab-option:nth-child(3) { transition-delay: 0.15s; }

/* ═══════════════════════════════════════
   Zoho Form Modal
   ═══════════════════════════════════════ */

.zoho-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.zoho-modal-overlay.zoho-modal-active {
  opacity: 1;
  visibility: visible;
}

.zoho-modal {
  background: #fff;
  border-radius: 16px;
  width: 92%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoho-modal-active .zoho-modal {
  transform: translateY(0) scale(1);
}

.zoho-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #2bb3c3, #1a8a97);
  color: #fff;
}

.zoho-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.zoho-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.zoho-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.zoho-modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

.zoho-modal-body iframe {
  display: block;
  min-height: 500px;
}

/* ═══════════════════════════════════════
   Mobile Responsive
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .stellar-fab {
    bottom: 20px;
    right: 16px;
  }

  .fab-toggle {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }

  .fab-option-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .fab-option-label {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .fab-options {
    gap: 10px;
    margin-bottom: 12px;
  }

  .zoho-modal {
    width: 95%;
    max-height: 85vh;
    border-radius: 12px;
  }

  .zoho-modal-header {
    padding: 14px 18px;
  }

  .zoho-modal-header h3 {
    font-size: 1rem;
  }

  .zoho-modal-body iframe {
    min-height: 450px;
  }
}

@media (max-width: 480px) {
  .fab-option-label {
    display: none;
  }

  .fab-options {
    gap: 10px;
  }

  .zoho-modal-body iframe {
    min-height: 400px;
  }
}

/* Hide old WhatsApp float if it still exists */
a.whatsapp-float {
  display: none !important;
}
