@import url('indexstyles.css');

body {
  background: url('../images/sickpet.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #333;
  font-family: var(--font-base);
  line-height: 1.6;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.slogan {
  font-size: 0.8rem;
  color: white;
  font-weight: 400;
  font-family: var(--font-base);
}

.triage-page {
  flex: 1;
  padding: 8.5rem 1rem 4rem 1rem;
}

.triage-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 26, 71, 0.5);
  z-index: -1;
}

.triage-header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.triage-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.triage-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.triage-flow {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: auto;
}

.question {
  display: none;
}

.question.active {
  display: block;
}

.question-icon {
  font-size: 3rem;
  color: var(--teal);
  text-align: center;
  margin-bottom: 1rem;
}

.symptom-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: #333;
  list-style-type: none;
}

.symptom-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.symptom-list li i {
  color: var(--red);
}

.triage-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-danger {
  background-color: var(--red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  width: 100%;
}

.btn-danger:hover {
  background-color: #cc0000;
}

.btn-primary {
  background-color: var(--teal);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--teal-light);
}

/*Ad Sidebar*/
.ad-sidebar-floating {
  position: fixed;
  top: 80px;
  right: 20px;
  left: 0;
  width: 300px;
  height: 80%;
  background-color: var(--purple);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 999;
  color: white;
  border-radius: 0 8px 8px 0;
  transition: transform 0.3s ease;
}

.ad-sidebar-floating.left {
  left: 0;
  transform: translateX(0);
}

.ad-sidebar-floating.collapsed {
  transform: translateX(-100%);
}

.ad-sidebar-floating .ad {
  margin-bottom: 2rem;
  text-align: center;
}

.ad-sidebar-floating img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.ad-sidebar-floating h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--purple);
}

/* Toggle Button */
.toggle-ad-panel {
  position: fixed;
  top: 100px;
  left: 220px;
  background-color: var(--purple);
  color: white;
  padding: 0.5rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  z-index: 1000;
  transition: left 0.3s ease;
}

.ad-sidebar-floating.collapsed + .toggle-ad-panel {
  left: 0;
}

.toggle-ad-panel i {
  transition: transform 0.3s ease;
}

.ad-sidebar-floating.collapsed + .toggle-ad-panel i {
  transform: rotate(180deg);
}

/* Carousel Wrapper */
.ad-carousels-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ad-carousel {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
}

.ad-carousel .ad {
  position: absolute;
  margin-bottom: 1rem;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0.1rem;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  text-align: center;
  box-sizing: border-box;
}

.ad-carousel .ad.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
  position: relative;
}

/* Ad content */
.ad img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.ad h4 {
  font-size: 1rem;
  color: white;
  position: relative;
  z-index: 1;
  margin: 0.5rem 0;
}

.ad a.btn-outline {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}

.ad a.btn-outline:hover {
  background-color: var(--teal);
  color: white;
}

.delivery-info {
  text-align: center;
  margin: 1rem 0;
}

.delivery-btn {
  background-color: var(--teal);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.delivery-btn:hover {
  background-color: var(--teal-light);
  transform: translateY(-2px);
}

/* Branding Footer */
.ad-branding-triage {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: white;
  border-top: 1px solid var(--gray-dark);
  padding-top: 0.75rem;
  ;
}

.qr-code-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.qr-code {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
}

.qr-label {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .ad-sidebar-floating,
  .toggle-ad-panel {
    display: none;
  }
}

/* ============================
   Footer
============================ */
.footer {
  background-color: var(--purple);
  color: var(--white);
  padding: 3rem 1rem ;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--teal-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.footer-logo-column {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--teal);
}

.footer-logo-img {
  height: 250px;
  width: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
  padding: 1rem;
}

.footer-qr-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-qr-code {
  width: 120px;
  height: 120px;
  background-color: white;
  padding: 0.5rem;
  border-radius: 5px;
}


.footer-nav,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  font-size: 1.2rem;
  margin-right: 1rem;
}

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

.footer-bottom a {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: white;
}


.chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--teal);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1000;
  transition: var(--transition);
}

.chatbot-button:hover {
  background-color: var(--teal-light);
}

/* Responsive Hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
  }

  .nav.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .cta-buttons .btn {
    display: block;
    margin: 1rem auto;
  }

  .logo-img {
    height: 50px;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
  
  .qr-code-container {
    bottom: 70px;
    right: 10px;
  }
  
  .footer-qr-column,
  .footer-logo-column {
    align-items: center;
    text-align: center;
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn ease 1s;
}

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



@media (max-width: 768px) {
  .triage-flow {
    padding: 1.5rem;
  }

  .triage-actions button {
    width: 100%;
  }

  .symptom-list {
    padding-left: 1rem;
  }
}
