/* PetYug Custom Styles */
:root {
    --primary-color: #cc0000; /* Vibrant Red for PetYug */
    --primary-dark: #990000;
    /*--primary-light: #cc000014;*/
    --primary-light: #cc000014;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
  --logo-red: #D31211;       /* Your existing Brand Red */
  --navy-dark: #1B2738;      /* Professional Deep Navy */
  --navy-light: #2C3E50;     /* For hover states */
  --ice-blue: #F0F8FF;       /* Soft background for sections */
  --slate-text: #4A5568;     /* Gentler than pure black */
  --white: #FFFFFF;
/* Service Specific Colors */
  --checkup-color: #3498db;
  --skin-color: #e67e22;
  --digestive-color: #27ae60;
  --dental-color: #9b59b6;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* Bold Realistic Paw Cursor */
    /* cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath fill='%23cc0000' stroke='white' stroke-width='10' d='M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5.3-86.2 32.6-96.8 70.1 15.6 84.4 58.5zM100.1 248.6c29.1-35.3 12.1-80.3-37.9-100.5s-114.1 5.9-143.2 41.2-12.1 80.3 37.9 100.5 114.1-5.9 143.2-41.2zm218.4-155.7c-14.3-42.9-52.1-69.1-84.4-58.5s-46.9 53.9-32.6 96.8 52.1 69.1 84.4 58.5 46.9-53.9 32.6-96.8zm118.3 55.2c-50 20.2-67 65.2-37.9 100.5s114.1 41.2 143.2 41.2 37.9-45.3 37.9-100.5-93.2-61.4-143.2-41.2zM274.9 253.3c-11.2-10-26.6-15.3-43.2-15.3-16.6 0-32 5.3-43.2 15.3-32.4 29.2-84.1 65.1-114.4 121.2-22.1 40.8-28.8 82.3-20.1 113.5 10.1 36.1 42.1 63.8 81.6 63.8h192.1c39.5 0 71.5-27.7 81.6-63.8 8.7-31.2 2-72.7-20.1-113.5-30.3-56.1-82-92-114.4-121.2z'/%3E%3C/svg%3E") 16 16, auto; */
}

a, button, .btn, .info-card, .doctor-card, input, select, textarea {
    /* Bold Hover Paw Cursor */
    /* cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='32' height='32'%3E%3Cpath fill='%23990000' stroke='white' stroke-width='10' d='M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5.3-86.2 32.6-96.8 70.1 15.6 84.4 58.5zM100.1 248.6c29.1-35.3 12.1-80.3-37.9-100.5s-114.1 5.9-143.2 41.2-12.1 80.3 37.9 100.5 114.1-5.9 143.2-41.2zm218.4-155.7c-14.3-42.9-52.1-69.1-84.4-58.5s-46.9 53.9-32.6 96.8 52.1 69.1 84.4 58.5 46.9-53.9 32.6-96.8zm118.3 55.2c-50 20.2-67 65.2-37.9 100.5s114.1 41.2 143.2 41.2 37.9-45.3 37.9-100.5-93.2-61.4-143.2-41.2zM274.9 253.3c-11.2-10-26.6-15.3-43.2-15.3-16.6 0-32 5.3-43.2 15.3-32.4 29.2-84.1 65.1-114.4 121.2-22.1 40.8-28.8 82.3-20.1 113.5 10.1 36.1 42.1 63.8 81.6 63.8h192.1c39.5 0 71.5-27.7 81.6-63.8 8.7-31.2 2-72.7-20.1-113.5-30.3-56.1-82-92-114.4-121.2z'/%3E%3C/svg%3E") 16 16, pointer; */
}

/* Section Background Decorations */
section {
    position: relative;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    filter: blur(60px);
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    border-radius: 50%;
}

.shape-2 {
    bottom: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: #ffe4e6; /* Soft pinkish tint for variety */
    border-radius: 50%;
}

.shape-3 {
    top: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.2;
}

/* Floating Vet Elements */
.floating-element {
    position: absolute;
    z-index: 1;
    color: var(--primary-color);
    opacity: 0.1;
    pointer-events: none;
    animation: float-around 15s infinite ease-in-out;
}

.float-1 { top: 15%; left: 5%; font-size: 2rem; }
.float-2 { top: 40%; right: 8%; font-size: 1.5rem; animation-delay: -2s; }
.float-3 { bottom: 20%; left: 10%; font-size: 2.5rem; animation-delay: -5s; }
.float-4 { bottom: 15%; right: 15%; font-size: 1.8rem; animation-delay: -8s; }

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-10deg); }
}

/* Specific Section Adjustments */
.hero-section {
    padding: 160px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #fdf8f4;
}

@media (max-width: 991.98px) {
    .hero-section {
        background-color: #fdf8f4;
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-img {
        max-height: 400px;
        margin-bottom: 30px;
        width: auto;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-title {
        text-align: center !important;
    }

    .img-fluid {
        margin: 0 auto;
        display: block;
    }

    .service-image-container,
    .calendar-icon-container {
        margin-bottom: 40px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg-light {
    background-color: var(--primary-light) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-transparent {
    background-color: transparent !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}
.nav-scroll-bg{
    background-color: #fbebeb;
}
/* Hero Image & Shapes */
.hero-image-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-bottom-left-radius: 500px;
    z-index: 0;
    animation: morph 15s linear infinite alternate;
    opacity: 0.15;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-img-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    filter: blur(50px);
}

.hero-img {
    max-height: 550px;
    object-fit: contain;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.floating-badge i {
    font-size: 2rem;
    color: var(--primary-color);
}

.badge-1 {
    top: 50%;
    left: -40px;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    top: 20%;
    right: 0;
    animation: float 4s ease-in-out infinite 2s;
}

.badge-3 {
    bottom: 15%;
    right: 20%;
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Info Cards */
.info-card {
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.info-card h5, 
.info-card p, 
.info-card i, 
.info-card .btn {
    transition: all 0.4s ease;
}

.info-card i {
    transform-origin: center;
}

.info-card:hover,
.info-card.active {
    transform: translateY(-12px);
}

.info-card:hover i,
.info-card.active i {
    transform: rotate(15deg) scale(1.1);
}

/* Unified Hover/Active for Info Cards */
.info-card.bg-white:hover,
.info-card.bg-white.active {
    background-color: #1f2937 !important;
    color: var(--white) !important;
    box-shadow: 0 20px 40px rgba(204, 0, 0, 0.25) !important;
}

.info-card.bg-white:hover h5,
.info-card.bg-white.active h5,
.info-card.bg-white:hover p,
.info-card.bg-white.active p,
.info-card.bg-white:hover i,
.info-card.bg-white.active i {
    color: var(--white) !important;
}

.info-card.bg-white:hover .btn-outline-primary,
.info-card.bg-white.active .btn-outline-primary {
    color: var(--white);
    border-color: var(--white);
}

.info-card.bg-white:hover .btn-outline-primary:hover,
.info-card.bg-white.active .btn-outline-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.service-grid {
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

.service-item {
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  text-align: center;
  padding: 40px 20px;
  transition: all 0.3s ease;
  background: #fff;
}

.service-item:hover {
  background: #fafafa;
}

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

.icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.service-item:hover .icon {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h5 {
  font-weight: 600;
  color: #333;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .service-item {
    padding: 25px 10px;
  }

  .icon {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}


/* Services Section */
.service-image-container {
    max-width: 450px;
    margin: 0 auto;
}

.service-doctor-img {
    border-radius: 30px;
}

.floating-service-icon {
    position: absolute;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
    width: 80px;
}

.floating-service-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

.floating-service-icon:hover i {
    color: var(--white) !important;
}

.tiny {
    font-size: 10px;
    font-weight: 600;
}

.icon-1 { top: 10%; left: -10%; }
.icon-2 { top: 40%; left: -20%; }
.icon-3 { bottom: 10%; left: -5%; }
.icon-4 { top: 30%; right: -15%; }
.icon-5 { bottom: 20%; right: -10%; }

/* Speciality Section */
.appointment-banner {
    box-shadow: 0 15px 30px rgba(204, 0, 0, 0.3);
    border-radius: 50px;
}

/* Doctor Cards */
.doctors-section {
    background-color: var(--ice-blue) !important; 
    position: relative;
    /*background-image: url(img/6130237.jpg);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pet-decoration {
    position: absolute;
    color: var(--primary-light);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: float-decoration 10s infinite ease-in-out;
}

.pet-decoration i {
    font-size: 3rem;
}

.deco-1 { top: 10%; left: 5%; }
.deco-2 { bottom: 10%; right: 5%; animation-delay: 2s; }
.deco-3 { top: 50%; right: 2%; animation-delay: 5s; }

@keyframes float-decoration {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

.doctor-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.doctor-img-box {
    width: 100% !important;
    height: 300px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
}

.doctor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doctor-card:hover .doctor-img-box img {
    transform: scale(1.1);
}

.doctor-card::after {
    content: '\f1b0'; /* Paw icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--white);
    opacity: 0.2;
    font-size: 1.5rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.doctor-card:hover::after {
    opacity: 0.8;
    color: var(--primary-color);
    transform: rotate(25deg) scale(1.2);
}

.doctor-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    transition: all 0.4s ease;
    opacity: 0;
}

.doctor-card:hover .doctor-social {
    bottom: 0;
    opacity: 1;
}

.doctor-social a {
    width: 35px;
    height: 35px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.doctor-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.doctor-info {
    margin-top: 0 !important;
    padding: 20px !important;
    background: var(--white) !important;
    text-align: left !important;
    position: relative;
    z-index: 2;
}

.doctor-info h5 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.doctor-card:hover .doctor-info h5 {
    color: var(--primary-color);
}

.doctor-info p {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 50px;
        text-align: center;
    }
    
    .hero-image-bg {
        display: none;
    }
    
    .floating-badge {
        display: none;
    }
    
    .floating-service-icon {
        display: none;
    }
}

/* Blog Section */
.blog-card {
    border-radius: 20px;
    transition: all 0.3s ease;
    background: var(--white);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img-box {
    position: relative;
    height: 220px;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-box img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hover-primary {
    transition: color 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Footer Styles */
.footer {
    /*background-image: linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.92)), url('img/backgroundImg.png');*/
    background-color: #1b2738;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer-links li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-info li i {
    width: 20px;
}

.footer-bottom-img {
    background-color: #f8fafc;
    overflow: hidden;
}

.footer-bottom-img img {
    filter: brightness(0.98);
}
/

/* Container */
.content {
  max-width: 600px;
  margin: auto;
}

/* Steps wrapper */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step Card */
.step {
  position: relative; /* IMPORTANT for ::before */
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 20px; /* extra left space */
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden; /* keeps gradient inside rounded corners */
}

/* Gradient Left Border */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent, #3b82f6), rgba(59,130,246,0.15));
  opacity: .35;
}

/* Individual colors */
.step:nth-child(1)::before {
  background: linear-gradient(180deg, #ff7a00, rgba(255,122,0,.15));
  opacity: .4;
}

.step:nth-child(2)::before {
  background: linear-gradient(180deg, #3b82f6, rgba(59,130,246,.15));
}

.step:nth-child(3)::before {
  background: linear-gradient(180deg, #10b981, rgba(16,185,129,.15));
}

.step:nth-child(4)::before {
  background: linear-gradient(180deg, #8b5cf6, rgba(139,92,246,.15));
}

/* Icon */
.icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon Colors */
.step:nth-child(1) .icon { background: #fde8d7; }
.step:nth-child(2) .icon { background: #dbeafe; }
.step:nth-child(3) .icon { background: #d1fae5; }
.step:nth-child(4) .icon { background: #ede9fe; }

/* SVG */
.icon svg {
  width: 22px;
  height: 22px;
  stroke: #333;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Text */
.step__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.step__desc {
  font-size: 14px;
  color: #6b7280;
}

/* CTA */
.ctaRow {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #fbebeb;
  border: 1px solid #fbebeb;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.ctaText strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.ctaText span {
  font-size: 14px;
  color: #6b7280;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btnPrimary {
  background: var(--primary-color);
  color: #fff;
  transition: 0.3s;
}

.btnPrimary svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.btnPrimary:hover {
  background: #e66a00;
}

/* Responsive */
@media (max-width: 500px) {
  .ctaRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .btnPrimary {
    width: 100%;
    justify-content: center;
  }
}

/*FAQ's*/
.faq-section {
    padding: 80px 0;
    /*background-color: #fff;*/
    background-size: 200%;
    /*background-image: url(img/paw.jpg), linear-gradient(to bottom, #f0f7ff 0%, #ffffff 100%);*/
    background-image: linear-gradient(rgba(248, 250, 252, 0.1), rgba(248, 250, 252, 0.2)), url('img/paw.jpg');
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--ice-blue); /* Using the balance color from earlier */
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--navy-dark);
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--logo-red);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
    border-top: 1px solid #edf2f7;
}

.faq-item.active .faq-question {
    background: var(--navy-dark);
    color: #fff;
}

.faq-item.active i {
    transform: rotate(45deg);
}

/* Inner pages — dashboard, auth (same chrome as homepage) */
.site-main--inner {
    padding-top: 100px;
}

.site-main--inner:has(.consult-app) {
    padding-top: 7.25rem;
    background: #0b1220;
}

@media (max-width: 991.98px) {
    .site-main--inner:has(.consult-app) {
        padding-top: 5.75rem;
    }
}

.site-header-logo {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 992px) {
    .site-header-logo {
        height: 72px;
        max-width: 320px;
    }
}

.site-footer {
    position: relative;
    z-index: 1;
}

/* Book consultation page */
.book-appt-section {
    padding: 1.5rem 0 4rem;
    background: linear-gradient(180deg, #fdf8f4 0%, #f4f6f8 100%);
}

.book-appt-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.book-appt-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--navy-dark, #1e293b);
    margin-bottom: 0.5rem;
}

.book-appt-sub {
    color: #64748b;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .book-appt-sub {
        margin-left: 0;
    }
}

.book-appt-info {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-appt-info__media {
    background: linear-gradient(135deg, #fff0eb 0%, #ffe4d6 100%);
    padding: 1.5rem;
    text-align: center;
}

.book-appt-info__img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.book-appt-info__body {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 1;
}

.book-appt-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.book-appt-features li i {
    margin-top: 0.15rem;
    width: 1.1rem;
    flex-shrink: 0;
}

.book-appt-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .book-appt-card {
        padding: 2rem 2rem 2.25rem;
    }
}

.book-appt-card__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.book-wizard {
    max-width: 920px;
    margin: 0 auto;
}

.book-wizard__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1.25rem;
}

.book-wizard__steps li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.book-wizard__steps li span {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 0.75rem;
}

.book-wizard__steps li.is-active,
.book-wizard__steps li.is-done {
    color: #cc0000;
    border-color: rgba(204, 0, 0, 0.25);
}

.book-wizard__steps li.is-active span,
.book-wizard__steps li.is-done span {
    background: #cc0000;
    color: #fff;
}

.book-wizard__card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.book-wizard__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.book-plan-card {
    display: block;
    cursor: pointer;
    height: 100%;
}

.book-plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.book-plan-card__inner {
    height: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.book-plan-card.is-selected .book-plan-card__inner,
.book-plan-card:hover .book-plan-card__inner {
    border-color: #cc0000;
    box-shadow: 0 10px 28px rgba(204, 0, 0, 0.08);
}

.book-plan-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(204, 0, 0, 0.08);
    color: #cc0000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.book-plan-card__name { font-weight: 700; margin-bottom: 0.25rem; }
.book-plan-card__price { font-size: 1.35rem; font-weight: 800; color: #cc0000; }
.book-plan-card__meta { font-size: 0.8rem; color: #64748b; margin-bottom: 0.5rem; }
.book-plan-card__desc { font-size: 0.82rem; color: #64748b; margin: 0; }

.book-pay-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
}

@media (max-width: 767.98px) {
    .book-wizard__steps { grid-template-columns: 1fr 1fr; }
    .book-wizard__steps li { font-size: 0.75rem; }
}

.book-appt-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.book-appt-input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.book-appt-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

.book-appt-type-toggle {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.book-appt-type-option {
    flex: 1;
    min-width: 140px;
    margin: 0;
    cursor: pointer;
}

.book-appt-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.book-appt-type-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    background: #fafafa;
    transition: all 0.2s ease;
}

.book-appt-type-option input:checked + span {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.book-appt-pet-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #9a3412;
}
/* Auth pages (pet owner login/register + vet join) */
.auth-page {
    padding: 1.25rem 0 3.5rem;
    background: linear-gradient(180deg, #fdf8f4 0%, #f4f6f8 55%, #fff 100%);
    min-height: 60vh;
}

.auth-shell {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.auth-shell--vet {
    padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 768px) {
    .auth-shell--vet {
        padding: 2rem 2.25rem 2.5rem;
    }
}

.auth-aside {
    position: relative;
    background: linear-gradient(160deg, #1b2738 0%, #2c3e55 55%, #cc0000 140%);
    color: #fff;
    padding: 2.5rem 2rem;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    overflow: hidden;
}

.auth-aside__inner {
    position: relative;
    z-index: 2;
}

.auth-aside__logo {
    height: 42px;
    width: auto;
    margin-bottom: 1.75rem;
    filter: brightness(0) invert(1);
}

.auth-aside__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.auth-aside__text {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth-aside__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-aside__list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    opacity: 0.92;
}

.auth-aside__list i {
    width: 1.1rem;
    color: #fecaca;
}

.auth-aside__art {
    position: absolute;
    right: -8%;
    bottom: -4%;
    width: 72%;
    max-height: 48%;
    object-fit: contain;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.auth-aside__art--cover {
    object-fit: cover;
    border-radius: 16px 0 0 0;
    opacity: 0.25;
}

.auth-panel__inner {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .auth-panel__inner {
        padding: 2.5rem 2.75rem;
    }
}

.auth-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.auth-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.auth-input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    background: #fafafa;
}

.auth-input:focus {
    background: #fff;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field__input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.password-field__toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0.25rem;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}

.password-field__toggle:hover {
  color: #64748b;
}

/* Keep legacy auth-password class working */
.auth-password {
  position: relative;
}

.auth-password .auth-input {
  padding-right: 2.75rem;
}

.auth-password__toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0.25rem;
  cursor: pointer;
}

.auth-mode-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.3rem;
    gap: 0.25rem;
}

.auth-mode-tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-mode-tabs button.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-otp {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    padding: 1rem;
}

.auth-verified {
    color: #15803d;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-social {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.3;
}

.auth-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Compact form buttons */
.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.45rem 1.15rem;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.auth-btn:disabled {
    opacity: 0.65;
    pointer-events: none;
}

.auth-btn--primary {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.18);
}

.auth-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff !important;
}

.auth-btn--outline {
    background: #fff;
    color: var(--primary-color) !important;
    border-color: #f0b4b4;
}

.auth-btn--outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.auth-btn--soft {
    background: #f8fafc;
    color: #475569 !important;
    border-color: #e2e8f0;
}

.auth-btn--soft:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.auth-btn--block {
    width: 100%;
}

.auth-btn--sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
}

.auth-actions .auth-btn {
    flex: 1 1 auto;
    min-width: 130px;
}

@media (max-width: 575.98px) {
    .auth-actions {
        flex-direction: column;
    }
    .auth-actions .auth-btn {
        width: 100%;
    }
}

/* Book appointment submit — match compact auth buttons */
.book-appt-card .btn-primary,
.vet-join-card .btn-primary {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    line-height: 1.25 !important;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.16) !important;
}

.book-appt-card .btn-primary.w-100 {
    max-width: 280px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.vet-join-card .btn-primary.w-100 {
    max-width: none;
}

.auth-footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer-note--muted {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.auth-footer-note a {
    color: var(--primary-color);
}

.vet-join-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.vet-join-hero__logo {
    height: 48px;
    width: auto;
}

.vet-join-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.vet-join-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.vet-join-card--sticky {
    position: sticky;
    top: 110px;
}

.vet-photo {
    text-align: center;
}

.vet-photo__img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.vet-photo__placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0eb, #ffe4d6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.vet-join-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #9a3412;
}

.vet-cert-row {
    padding: 1rem 0;
    border-top: 1px dashed #e2e8f0;
}

.vet-cert-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.vet-join-success {
    text-align: center;
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem 1.5rem;
}

.vet-join-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff7ed;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}


/* ===== Consultation room (mobile-app call UI) ===== */
.consult-app {
  --consult-bg: #0b1220;
  --consult-panel: #121a2b;
  --consult-card: #182235;
  --consult-line: rgba(255,255,255,.08);
  --consult-text: #f8fafc;
  --consult-muted: #94a3b8;
  --consult-accent: #cc0000;
  --consult-accent-soft: rgba(204,0,0,.18);
  padding: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(204,0,0,.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(251,146,60,.12), transparent 45%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
  min-height: calc(100vh - 90px);
  color: var(--consult-text);
}

.consult-app__shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: calc(100vh - 110px);
}

.consult-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--consult-line);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.consult-top__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.consult-top__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fecaca;
  background: var(--consult-accent-soft);
  border: 1px solid rgba(204,0,0,.35);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.consult-top__live i {
  font-size: 0.45rem;
  color: #ef4444;
  animation: consultPulse 1.4s ease-in-out infinite;
}

.consult-top__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.consult-top__meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consult-top__meta span {
  font-size: 0.75rem;
  color: var(--consult-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consult-top__right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.consult-top__role {
  font-size: 0.75rem;
  color: var(--consult-muted);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--consult-line);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.consult-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--consult-line);
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.consult-icon-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.consult-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .28);
  color: #fde68a;
  font-size: 0.82rem;
}

.consult-banner__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
}

.consult-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 0.85rem;
  min-height: 0;
}

.consult-main {
  min-width: 0;
  min-height: 0;
}

.consult-stage {
  position: relative;
  height: clamp(420px, calc(100vh - 220px), 720px);
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(204,0,0,.15), transparent 42%),
    linear-gradient(160deg, #151d2e 0%, #0b1220 55%, #0a0f1a 100%);
  border: 1px solid var(--consult-line);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.consult-stage.is-audio {
  background:
    radial-gradient(circle at 50% 40%, rgba(204,0,0,.22), transparent 38%),
    linear-gradient(180deg, #172033 0%, #0b1220 100%);
}

.consult-stage.is-chat {
  background:
    radial-gradient(circle at 50% 35%, rgba(251,146,60,.16), transparent 40%),
    linear-gradient(180deg, #172033 0%, #0b1220 100%);
}

.consult-stage__remote,
.consult-stage__local video,
.consult-stage__remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-stage__remote {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.consult-stage__local {
  position: absolute;
  right: 0.85rem;
  bottom: 5.75rem;
  width: min(32vw, 150px);
  height: min(42vw, 200px);
  border-radius: 1rem;
  overflow: hidden;
  z-index: 3;
  background: #1e293b;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: opacity .2s ease, transform .2s ease;
}

.consult-stage__local.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
}

.consult-stage__idle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem 5.5rem;
  transition: opacity .25s ease;
}

.consult-stage__idle.is-dim {
  opacity: 0;
  pointer-events: none;
}

.consult-stage__idle.is-hidden {
  display: none;
}

.consult-avatar-ring {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(204,0,0,.35), transparent 70%);
  position: relative;
  margin-bottom: 1rem;
}

.consult-avatar-ring::before,
.consult-avatar-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(204,0,0,.35);
  animation: consultRipple 2.2s ease-out infinite;
}

.consult-avatar-ring::after {
  animation-delay: 1.1s;
}

.consult-avatar {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #cc0000, #991b1b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  box-shadow: 0 10px 28px rgba(204,0,0,.35);
  z-index: 1;
}

.consult-stage__peer {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.consult-stage__hint {
  margin: 0;
  color: var(--consult-muted);
  font-size: 0.9rem;
}

.consult-stage__complaint {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--consult-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.consult-dock {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.consult-dock__btn {
  min-width: 3.55rem;
  height: 3.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f8fafc;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  transition: transform .15s ease, background .15s ease;
}

.consult-dock__btn i {
  font-size: 1rem;
}

.consult-dock__btn:hover:not(:disabled) {
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.consult-dock__btn:disabled {
  opacity: .4;
}

.consult-dock__btn.is-off {
  background: rgba(248, 113, 113, .2);
  color: #fecaca;
}

.consult-dock__btn--join {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  min-width: 4.2rem;
}

.consult-dock__btn--join:disabled {
  opacity: .35;
}

.consult-dock__btn--leave {
  background: linear-gradient(135deg, #cc0000, #991b1b);
  color: #fff;
}

.consult-chat-panel {
  background: rgba(18, 26, 43, .92);
  border: 1px solid var(--consult-line);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: clamp(420px, calc(100vh - 220px), 720px);
  overflow: hidden;
}

.consult-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--consult-line);
}

.consult-chat-panel__head strong {
  display: block;
  font-size: 0.95rem;
}

.consult-chat-panel__head small {
  color: var(--consult-muted);
  font-size: 0.75rem;
}

.consult-chat-panel__list {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.consult-bubble {
  max-width: 88%;
  align-self: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--consult-line);
  border-radius: 1rem 1rem 1rem 0.35rem;
  padding: 0.55rem 0.75rem;
}

.consult-bubble.is-mine {
  align-self: flex-end;
  background: rgba(204,0,0,.18);
  border-color: rgba(204,0,0,.28);
  border-radius: 1rem 1rem 0.35rem 1rem;
}

.consult-bubble__who {
  font-size: 0.68rem;
  color: var(--consult-muted);
  margin-bottom: 0.15rem;
}

.consult-bubble__text {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.consult-chat-panel__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--consult-line);
  background: rgba(0,0,0,.15);
}

.consult-chat-panel__form input {
  flex: 1;
  border: 1px solid var(--consult-line);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
}

.consult-chat-panel__form input::placeholder {
  color: #64748b;
}

.consult-chat-panel__form input:focus {
  border-color: rgba(204,0,0,.5);
  box-shadow: 0 0 0 3px rgba(204,0,0,.15);
}

.consult-send {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #cc0000, #991b1b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consult-chat-backdrop {
  display: none;
}

@keyframes consultPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes consultRipple {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 991.98px) {
  .consult-app {
    min-height: calc(100vh - 70px);
  }

  .consult-app__shell {
    padding: 0.55rem 0.55rem 0.85rem;
    min-height: calc(100vh - 80px);
  }

  .consult-body {
    grid-template-columns: 1fr;
    position: relative;
  }

  .consult-stage {
    height: calc(100vh - 160px);
    min-height: 480px;
    border-radius: 1.1rem;
  }

  .consult-stage__local {
    width: 108px;
    height: 144px;
    bottom: 5.4rem;
    right: 0.7rem;
  }

  .consult-dock {
    bottom: 0.75rem;
    gap: 0.3rem;
    padding: 0.35rem;
  }

  .consult-dock__btn {
    min-width: 3.15rem;
    height: 3.15rem;
  }

  .consult-dock__btn span {
    display: none;
  }

  .consult-top__role {
    display: none;
  }

  .consult-chat-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    height: min(72vh, 560px);
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(110%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
  }

  .consult-chat-panel.is-open {
    transform: translateY(0);
  }

  .consult-chat-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(2,6,23,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .consult-chat-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .consult-top {
    padding: 0.55rem 0.65rem;
  }

  .consult-top__meta strong {
    font-size: 0.88rem;
  }

  .consult-avatar {
    width: 4.2rem;
    height: 4.2rem;
  }

  .consult-stage {
    min-height: 420px;
  }
}
