/* =======================================================
   WARRAGUL MEDICAL CENTRE - EVOCA-INSPIRED DESIGN
   Primary: #181745 (deep navy blue)
   Accent: Soft pinks, peaches, and purples
   ======================================================= */

:root {
  /* Core brand colours */
  --wmc-primary:       #A8D4D6; /* your logo navy blue */
  --wmc-primary-light: #E8B4D4;
  --wmc-primary-pale:  #f5f4f9;
  
  /* Accent colours - soft feminine palette */
  --wmc-pink:          #E8B4D4;   /* soft pink */
  --wmc-pink-light:    #FDF1F8;
  --wmc-purple:        #B8A4D8;   /* lavender */
  --wmc-purple-light:  #F3F0FA;
  --wmc-peach:         #FFD4C4;   /* warm peach */
  --wmc-peach-light:   #FFF5F1;
  --wmc-teal:          #A8D4D6;   /* soft teal */
  --wmc-teal-light:    #F0F8F9;

  /* Neutrals */
  --wmc-bg:            #FAFAFA;
  --wmc-text:          #2C2C2C;
  --wmc-text-light:    #6B6B6B;
  --wmc-border:        #E8E8E8;
}

/* ==========================================
   BASE STYLES
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wmc-text);
  background-color: var(--wmc-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--wmc-primary);
  font-weight: 700;
  line-height: 1.3;
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===============================================
   NAVBAR - Glassmorphism Style with Scroll Effect
   =============================================== */

.navbar {
  font-size: 0.95rem;
  padding: 0.75rem 0;
  background: rgba(232, 180, 212, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: padding 0.3s ease, background 0.3s ease;
  will-change: padding;
  contain: layout style paint;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.navbar.scrolled {
  padding: 0.35rem 0;
  background: rgba(232, 180, 212, 0.85);
  box-shadow: 0 8px 16px rgba(24, 23, 69, 0.2) !important;
}

.navbar-brand {
  font-weight: 700;
  color: white;
  transition: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 45px;
  transition: height 0.3s ease;
  will-change: height;
  display: block;
  flex-shrink: 0;
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link.text-white {
  color: white !important;
}

.navbar .btn-light {
  background: white !important;
  color: #E8B4D4 !important;
  font-weight: 600;
}

.navbar-brand span {
  font-size: 1.1rem;
  color: var(--wmc-primary);
}

.nav-link {
  color: var(--wmc-text-light);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link.text-white {
  color: white !important;
}

.nav-link.text-white:hover,
.nav-link.text-white:focus {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Primary button - gradient style */
.btn-primary {
  background: linear-gradient(135deg, var(--wmc-primary) 0%, var(--wmc-primary-light) 100%);
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 23, 69, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--wmc-primary-light) 0%, var(--wmc-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 23, 69, 0.3);
}

.btn-outline-primary {
  color: var(--wmc-primary);
  border: 2px solid var(--wmc-primary);
  font-weight: 600;
  padding: 0.65rem 1.8rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--wmc-primary);
  border-color: var(--wmc-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 23, 69, 0.25);
}

.btn.rounded-pill,
.btn-lg.rounded-pill {
  border-radius: 50px;
}

/* Light button variant */
.btn-light {
  background: white;
  color: var(--wmc-primary);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: var(--wmc-primary-pale);
  color: var(--wmc-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================
   HERO SECTIONS
   ===================================== */

.hero-section {
  background: linear-gradient(135deg, var(--wmc-primary-pale) 0%, var(--wmc-purple-light) 50%, var(--wmc-pink-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(232,180,212,0.1)" stroke-width="0.5"/></svg>');
  background-size: 80px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-womens {
  background: linear-gradient(135deg, var(--wmc-peach-light) 0%, var(--wmc-pink-light) 50%, var(--wmc-purple-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-womens::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 212, 196, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(232, 180, 212, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section h1,
.hero-womens h1 {
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead,
.hero-womens .lead {
  color: var(--wmc-text-light);
  font-size: 1.15rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-section img,
.hero-womens img {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(24, 23, 69, 0.15);
  animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

/* ===== Hero Carousel (Women's Page) ===== */

#womensHeroCarousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

#womensHeroCarousel .carousel-item {
  position: relative;
  min-height: 520px;
}

#womensHeroCarousel .carousel-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.85);
}

#womensHeroCarousel .carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 241, 248, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 60px rgba(24, 23, 69, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

#womensHeroCarousel .carousel-caption-custom h2 {
  font-weight: 800;
  color: var(--wmc-primary);
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.bulk-pill {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

/* =================================
   QUICK HIGHLIGHTS SECTION
   ================================= */

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--wmc-pink-light), var(--wmc-purple-light));
  color: var(--wmc-primary);
  margin: 0 auto;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(24, 23, 69, 0.1);
}

.icon-circle:hover {
  transform: scale(1.1) rotate(5deg);
}

/* =================================
   CARDS & SECTION BACKGROUNDS
   ================================= */

.card {
  border-radius: 20px;
  border: 1px solid var(--wmc-border);
  transition: all 0.4s ease;
  overflow: hidden;
  background: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(24, 23, 69, 0.12);
}

.card-img-top {
  border-radius: 20px 20px 0 0;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card.shadow-sm {
  box-shadow: 0 8px 24px rgba(24, 23, 69, 0.08);
}

/* Peach card variant */
.card-peach {
  background: linear-gradient(135deg, var(--wmc-peach-light) 0%, white 100%);
  border: 1px solid var(--wmc-peach);
}

/* Soft blue card */
.card-soft-blue {
  background: linear-gradient(135deg, var(--wmc-primary-pale) 0%, white 100%);
  border: 1px solid var(--wmc-primary-light);
}

/* Section backgrounds */
.bg-light {
  background: linear-gradient(180deg, var(--wmc-bg) 0%, #ffffff 100%) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--wmc-primary) 0%, var(--wmc-primary-light) 100%) !important;
}

/* =========================================
   SERVICE ICONS (coloured circles)
   ========================================= */

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon.pink {
  background: linear-gradient(135deg, #FDF1F8, #E8B4D4);
  color: #C2528B;
}

.service-icon.teal {
  background: linear-gradient(135deg, #F0F8F9, #A8D4D6);
  color: #3D8B8F;
}

.service-icon.gold {
  background: linear-gradient(135deg, #FFF9E6, #FFD966);
  color: #996F00;
}

.service-icon.purple {
  background: linear-gradient(135deg, #F3F0FA, #B8A4D8);
  color: #6B4FA8;
}

.card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
}

/* =======================================
   LIFE-STAGE FLIP CARDS
   ======================================= */

.flip-card {
  background: transparent;
  perspective: 1000px;
  height: 320px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: white;
  box-shadow: 0 8px 24px rgba(24, 23, 69, 0.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--wmc-border);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--wmc-purple-light), var(--wmc-pink-light));
  text-align: left;
  justify-content: flex-start;
}

/* Icon blobs */
.flip-card-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.flip-card:hover .flip-card-photo {
  transform: scale(1.05);
}

.flip-photo-peach {
  background: linear-gradient(135deg, var(--wmc-peach), var(--wmc-peach-light));
}

.flip-photo-pink {
  background: linear-gradient(135deg, var(--wmc-pink), var(--wmc-pink-light));
}

.flip-photo-blue {
  background: linear-gradient(135deg, var(--wmc-primary-pale), var(--wmc-purple-light));
}

.flip-card-photo img {
  max-width: 65%;
  max-height: 65%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* =======================================
   ACCORDION (FAQ)
   =================================== */

.modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 60px rgba(24, 23, 69, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--wmc-border);
  background: linear-gradient(135deg, var(--wmc-primary-pale), white);
}

.modal-title {
  color: var(--wmc-primary);
}

/* Full-image bulk billing modal */
.bulk-image-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.bulk-image-modal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bulk-image-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.bulk-image-close:hover {
  background: white;
  transform: scale(1.1);
}

/* ===================================
   ACCORDION (FAQ)
   =================================== */

.accordion-item {
  border: 1px solid var(--wmc-border);
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(24, 23, 69, 0.05);
}

.accordion-button {
  background: linear-gradient(135deg, var(--wmc-primary-pale), white);
  color: var(--wmc-primary);
  font-weight: 600;
  border: none;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--wmc-pink-light), var(--wmc-purple-light));
  color: var(--wmc-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(24, 23, 69, 0.15);
}

.accordion-body {
  padding: 1.5rem;
  background: white;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  font-size: 0.85rem;
  background: linear-gradient(135deg, #0f0f2e, var(--wmc-primary)) !important;
  color: rgba(255, 255, 255, 0.8);
}

footer a {
  color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
  color: white;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations to sections */
[data-aos="fade-up"] {
  animation: fadeInUp 0.8s ease-out;
}

[data-aos="fade-right"] {
  animation: fadeInRight 0.8s ease-out;
}

[data-aos="fade-left"] {
  animation: fadeInLeft 0.8s ease-out;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 991.98px) {
  .hero-section h1,
  .hero-womens h1 {
    font-size: 2rem;
  }
  
  #womensHeroCarousel .carousel-caption-custom h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  #womensHeroCarousel .carousel-item {
    min-height: 420px;
  }

  #womensHeroCarousel .carousel-image {
    height: 420px;
  }

  #womensHeroCarousel .carousel-caption-custom {
    padding: 1.75rem 1.5rem;
    max-width: 92%;
    border-radius: 20px;
  }

  #womensHeroCarousel .carousel-caption-custom h2 {
    font-size: 1.5rem;
  }

  .btn-lg {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .flip-card-inner,
  .doctor-flip-inner {
    transform: none !important;
  }

  .flip-card-front,
  .flip-card-back,
  .doctor-front,
  .doctor-back {
    position: relative;
    transform: none !important;
    margin-bottom: 1rem;
  }

  .flip-card,
  .doctor-flip {
    height: auto;
  }

  #womensHeroCarousel .carousel-item {
    min-height: 320px;
  }

  #womensHeroCarousel .carousel-image {
    height: 320px;
  }

  #womensHeroCarousel .carousel-caption-custom {
    padding: 1.25rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--wmc-primary), var(--wmc-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 8px 24px rgba(24, 23, 69, 0.08) !important;
}

.shadow-medium {
  box-shadow: 0 12px 30px rgba(24, 23, 69, 0.12) !important;
}

.shadow-strong {
  box-shadow: 0 20px 60px rgba(24, 23, 69, 0.2) !important;
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--wmc-pink), var(--wmc-purple)) border-box;
}

/* Hover effects for interactive elements */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(24, 23, 69, 0.15);
}

/* =======================================
   PARTNER CARDS
   ======================================= */

.partner-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--wmc-border);
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(24, 23, 69, 0.08);
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(24, 23, 69, 0.15);
  border-color: var(--wmc-primary);
}

.partner-logo {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

/* Smooth transitions for all interactive elements */
button,
a,
.card,
.btn {
  transition: all 0.3s ease;
}

/* ==========================================
   ANIMATIONS FOR ENHANCED MISSION CONTAINER
   ========================================== */

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-20px); 
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

@keyframes flower-bloom {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    filter: brightness(1);
  }
  25% { 
    transform: scale(1.1) rotate(5deg); 
    filter: brightness(1.1);
  }
  50% { 
    transform: scale(1.15) rotate(0deg); 
    filter: brightness(1.2);
  }
  75% { 
    transform: scale(1.1) rotate(-5deg); 
    filter: brightness(1.1);
  }
}

/* Enhanced hover effects for mission container */
.mission-container:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02) !important;
  box-shadow: 0 25px 50px rgba(233, 129, 126, 0.4) !important;
}

/* Social button hover effects */
.btn-outline-light:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-2px);
}

/* ==========================================
   CUSTOM CHAT WIDGET STYLES
   ========================================== */

.chat-widget-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E9817E 0%, #D06B68 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(233, 129, 126, 0.5), 0 0 0 0 rgba(233, 129, 126, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s ease;
  color: white;
  font-size: 32px;
  animation: floatingPulse 3s ease-in-out infinite, shadowPulse 2s ease-in-out infinite;
}

.chat-widget-button:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 35px rgba(233, 129, 126, 0.8);
  animation: none;
}

.chat-widget-button.active {
  transform: scale(1) rotateZ(45deg);
  background: linear-gradient(135deg, #D06B68 0%, #B85A56 100%);
  animation: none;
}

.chat-widget-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 550px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  display: none;
  flex-direction: column;
  z-index: 9997;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.chat-widget-container.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatingPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(233, 129, 126, 0.5), 0 0 0 0 rgba(233, 129, 126, 0.7);
  }
  50% {
    box-shadow: 0 8px 28px rgba(233, 129, 126, 0.6), 0 0 0 12px rgba(233, 129, 126, 0);
  }
}

.chat-widget-header {
  background: linear-gradient(135deg, #E9817E 0%, #D06B68 100%);
  color: white;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: none;
  position: relative;
}

.chat-widget-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.chat-widget-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: pointer;
  font-size: 28px;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
  z-index: 10000;
}

.chat-widget-close:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

.chat-message {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
  animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  background: #e8e8e8;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-message.user {
  background: linear-gradient(135deg, #E9817E 0%, #D06B68 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(233, 129, 126, 0.3);
}

.chat-widget-footer {
  padding: 16px;
  border-top: 1px solid #e8e8e8;
  background: #ffffff;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: linear-gradient(135deg, #F5E6E3 0%, #EDD8D3 100%);
  border: 1px solid #E9817E;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-align: left;
  line-height: 1.4;
}

.faq-card:hover {
  background: linear-gradient(135deg, #EBCFC6 0%, #E3BAB0 100%);
  border-color: #D06B68;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 129, 126, 0.25);
}

.faq-card:active {
  transform: translateY(0);
}

.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9996;
}

.chat-overlay.active {
  display: block;
}

@media (max-width: 640px) {
  .chat-widget-container {
    width: calc(100% - 30px);
    height: 70vh;
    max-height: 600px;
    bottom: 90px;
    right: 15px;
  }

  .chat-widget-button {
    bottom: 20px;
    right: 20px;
  }
}

/* ===============================================
   MOBILE OPTIMIZATION & ACCESSIBILITY
   =============================================== */

/* Mobile-friendly button sizing - min 44px touch target */
@media (max-width: 576px) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 0.5rem 1rem !important;
  }
}

/* Navbar optimization for mobile */
@media (max-width: 768px) {
  .navbar {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.35rem 0.75rem !important;
  }
  
  .navbar-brand img {
    height: 40px !important;
  }
  
  .navbar.scrolled .navbar-brand img {
    height: 32px !important;
  }
}

/* Modal optimization for mobile */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1.5rem auto;
    width: 95vw;
  }
  
  .modal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 1rem;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem;
  }
}

/* Hero section text scaling for mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .hero-glass-card h1 {
    font-size: 1.6rem;
  }
  
  .hero-glass-card .lead {
    font-size: 0.95rem;
  }
}

/* Text shadow for navbar link contrast accessibility */
.navbar-dark .navbar-nav .nav-link {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .btn-light {
  text-shadow: none;
}

/* Improve readability on small screens */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
  
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  section {
    padding: 2rem 0 !important;
  }
}