body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.brand-text>span {
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-subtitle {
  font-family: 'Nunito', cursive;
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: -2px;
  color: #6c757d;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: #f8a933;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loading-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.loading-text span {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.loading-text span:nth-child(1) {
  animation-delay: 0.3s;
}

.loading-text span:nth-child(2) {
  animation-delay: 0.9s;
}

.loading-text span:nth-child(3) {
  animation-delay: 1.5s;
}

.loading-text span:nth-child(4) {
  animation-delay: 2.1s;
}

.loading-text span:nth-child(5) {
  animation-delay: 2.7s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.navbar {
  background: #fff;
  transition: all 0.1s ease;
}

.navbar .nav-link {
  font-weight: 500;
  margin: 0 8px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff8ad;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.rotating {
  white-space: nowrap;
  overflow: hidden;
}

.btn-primary {
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  background-color: #f8a933;
  border-color: #f8a933;
  color: #fff;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #f7a01f;
  border-color: #f7a01f;
}

.btn-primary:focus,
.btn-primary:active {
  box-shadow: none !important;
  outline: none !important;
  background-color: #e6951c;
  border-color: #e6951c;
}

a.btn-primary,
a.btn-primary:focus,
a.btn-primary:active,
a.btn-primary:visited {
  outline: none !important;
  box-shadow: none !important;
  background-color: #f8a933 !important;
  border-color: #f8a933 !important;
  color: #fff !important;
  -webkit-tap-highlight-color: transparent !important;
}

.pricing-card {
  border: none;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: transform .3s, box-shadow .3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card .badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 12px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: #f9fafb;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-right: 24px;
  word-wrap: break-word;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  color: #555;
}

.faq-item .faq-content p {
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.faq-item.active .faq-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.footer {
  background: #f8a933;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f97316;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.saran-form input,
.saran-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 0.9rem;
}

.saran-form textarea {
  resize: none;
  height: 70px;
}

.saran-form button {
  background: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  color: #f8a933;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.saran-form button:hover {
  background: #eee;
}

.text-primary {
  color: #f8a933 !important;
}

.bg-primary {
  background-color: #f8a933 !important;
}

.ai-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.speech-bubble {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9998;
  font-weight: 500;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.ai-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f8a933;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  touch-action: manipulation;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-toggle img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.ai-chat-toggle:hover {
  transform: scale(1.05);
  background: #f7a01f;
}

.ai-chat-toggle:active {
  transform: scale(0.95);
}

.ai-chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-window {
  width: 400px;
  max-height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  position: relative;
}

.ai-chat-header {
  background: #f8a933;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.ai-chat-header h6 {
  margin: 0;
  font-size: 1rem;
}

.ai-chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1 1 auto;
  min-height: 200px;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
  -webkit-overflow-scrolling: touch;
  height: calc(100% - 120px);
  scroll-behavior: smooth;
}

.message {
  margin-bottom: 15px;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: flex;
  flex-direction: column;
}

.message-bubble {
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 65%;
  line-height: 1.4;
}

.user-message .message-bubble {
  background: #f8a933;
  color: white;
  margin-left: auto;
  text-align: right;
}

.bot-message .message-bubble {
  background: white;
  color: #333;
  border: 1px solid #eee;
  margin-right: auto;
  text-align: left;
}

.message-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.timestamp {
  font-size: 0.7em;
  color: #888;
  margin-top: 2px;
  opacity: 0.7;
  font-style: italic;
  width: 100%;
}

.user-message .timestamp {
  align-self: flex-end;
  color: #ddd;
  text-align: right;
  padding-right: 12px;
  margin-top: 2px;
}

.bot-message .timestamp {
  align-self: flex-start;
  color: #bbb;
  text-align: left;
  padding-left: 12px;
  margin-top: 2px;
}

.typing-indicator {
  display: none;
  padding: 8px 12px;
  border-radius: 18px;
  background: #f8f9fa;
  max-width: 80%;
  margin-bottom: 10px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
}

.typing-dots span {
  height: 8px;
  width: 8px;
  background-color: #999;
  border-radius: 50%;
  margin: 0 1px;
  animation: typing 1.4s infinite ease-in-out;
}

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

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

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.ai-chat-templates {
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}

.template-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
  min-width: 80px;
}

.template-btn:hover {
  background: #f8a933;
  color: white;
  border-color: #f8a933;
}

.ai-chat-input-container {
  display: flex;
  padding: 15px;
  border-top: 1px solid #eee;
  background: white;
  flex-shrink: 0;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 5;
  flex-wrap: wrap;
  gap: 5px;
}

#ai-chat-input {
  flex: 1 1 auto;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  outline: none;
  resize: none;
}

#ai-chat-send {
  background: #f8a933;
  border: none;
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px 10px 0 0;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  padding: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.emoji-picker .emoji-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.emoji-picker button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 5px;
  padding: 5px;
  transition: background 0.2s;
  flex: 1;
}

.emoji-picker button:hover {
  background: #f8f9fa;
}

#emoji-btn {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.name-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.name-modal-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  max-width: 300px;
  width: 90%;
}

.name-modal-content h5 {
  margin-bottom: 15px;
  color: #333;
}

.name-modal-content input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 15px;
  outline: none;
}

.name-modal-content button {
  background: #f8a933;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

@supports (height: 100dvh) {
  .ai-chat-window {
    height: 100dvh;
  }
}

body.chat-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  .ai-chat-container {
    bottom: 20px;
    right: 20px;
    left: auto;
  }

  .speech-bubble {
    bottom: 80px;
    right: 20px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .speech-bubble::before {
    right: 25px;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top-width: 6px;
  }

  .ai-chat-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
    left: auto;
    touch-action: manipulation;
    z-index: 10000;
    position: fixed !important;
  }

  .ai-chat-toggle img {
    width: 35px;
    height: 35px;
  }

  .ai-chat-window {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 70vh;
    border-radius: 15px 15px 0 0;
    margin: 0;
    display: none;
  }

  .ai-chat-header {
    padding: 15px 20px;
  }

  .ai-chat-header h6 {
    font-size: 1.1rem;
  }

  .ai-chat-messages {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .ai-chat-templates {
    padding: 8px 15px;
    gap: 3px;
  }

  .template-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    flex: 1 1 auto;
    min-width: 80px;
  }

  .ai-chat-input-container {
    padding: 10px 15px;
    gap: 3px;
  }

  #ai-chat-input {
    font-size: 0.9rem;
    padding: 10px 15px;
    margin-right: 0;
    flex: 1 1 60%;
  }

  body.chat-open {
    overflow: hidden;
  }

  .emoji-picker {
    max-height: 150px;
  }

  .timestamp {
    font-size: 0.65em;
  }

  .message-bubble {
    max-width: 80%;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}