/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

/* ========== WHATSAPP MOCKUP ========== */
.mockup-scroll-container {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 48px;
  padding: 8px 48px 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
}

.mockup-scroll-hint {
  position: absolute;
  top: -24px;
  right: 48px;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.mockup-scroll-container::-webkit-scrollbar {
  display: none;
}

.mockup-scroll-item {
  flex: 0 0 calc(100vw - 80px);
  scroll-snap-align: start;
  min-height: 620px;
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .mockup-scroll-item {
    flex: 0 0 320px;
  }
}

.mockup-scroll-item .whatsapp-mockup {
  display: flex;
  flex-direction: column;
}

.mockup-scroll-item .whatsapp-chat {
  flex: 1;
}

.whatsapp-mockup {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #e5ddd5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}

.whatsapp-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.whatsapp-header {
  background: #075e54;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.whatsapp-header-back {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.whatsapp-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.whatsapp-header-info {
  flex: 1;
}

.whatsapp-header-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.whatsapp-header-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.whatsapp-chat {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 340px;
  position: relative;
  z-index: 1;
}

.whatsapp-date-divider {
  text-align: center;
  margin: 6px 0;
}

.whatsapp-date-divider span {
  background: #e1f3fb;
  color: #54656f;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.whatsapp-msg {
  max-width: 85%;
  padding: 7px 10px 6px;
  position: relative;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.45;
  animation: msgIn 0.3s ease-out;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-msg.received {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  align-self: flex-start;
  color: #303030;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.whatsapp-msg.sent {
  background: #d9fdd3;
  border-radius: 8px 0 8px 8px;
  align-self: flex-end;
  color: #303030;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.whatsapp-msg .msg-time {
  font-size: 10px;
  color: #667781;
  float: right;
  margin: 3px 0 -2px 6px;
  line-height: 1;
}

.whatsapp-msg.sent .msg-time {
  color: #8696a0;
}

.whatsapp-msg .msg-checks {
  display: inline-block;
  margin-left: 2px;
  font-size: 10px;
  letter-spacing: -6px;
  color: #53bdeb;
}

.whatsapp-input-area {
  background: #f0f2f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.whatsapp-input-bar {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #667781;
}

.whatsapp-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

/* Typing dots */
.typing-dots {
  display: flex;
  gap: 3px;
  padding: 3px 0;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #075e54;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #6b7280;
  border-radius: 1px;
  transition: transform 0.3s ease, background 0.2s;
}

.faq-icon::before {
  top: 11px;
  left: 4px;
  right: 4px;
  height: 2px;
}

.faq-icon::after {
  top: 4px;
  bottom: 4px;
  left: 11px;
  width: 2px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: #075e54;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 0 18px;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 15px;
}

/* ========== MOBILE NAV ========== */
.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========== FORM ========== */
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ========== SMOOTH SCROLL ========== */
html {
  scroll-behavior: smooth;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
