/* ===================================
   Hair Botox Birmingham - Custom Styles
   =================================== */

/* Root Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #2C1810;
    --light-color: #F5F5DC;
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E5E5E5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(44, 24, 16, 0.95);
    /* Persistent dark background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: sepia(0.3) brightness(1.1) contrast(1.1);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.brand-text {
    color: white;
    font-size: 1.25rem;
}

@media (max-width: 575px) {
    .brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .brand-text {
        font-size: 0.9rem;
    }
}

/* Mobile Off-canvas Style Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(44, 24, 16, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        /* Override bootstrap collapse display for transition */
        visibility: hidden;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .navbar-collapse.show {
        right: 0;
        visibility: visible;
    }

    .navbar-toggler {
        z-index: 1050;
        border: none;
        padding: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Close button for mobile menu */
    .navbar-collapse::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        opacity: 0.8;
    }

    /* Make the close button interactive via a transparent overlay or JS - 
       For now, reliance on tapping outside or toggle button which is outside is standard, 
       but standard bootstrap toggler is outside. 
       Let's keep it simple: the toggler stays visible. */
    .navbar-collapse::before {
        display: none;
        /* Removing pseudo-close button to avoid confusion without JS binding */
    }

    .nav-item {
        margin-bottom: 20px;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animations */
    .navbar-collapse.show .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar-collapse.show .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar-collapse.show .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .navbar-collapse.show .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .navbar-collapse.show .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .navbar-collapse.show .nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .navbar-collapse.show .nav-item:nth-child(7) {
        transition-delay: 0.7s;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 0 !important;
    margin: 0 15px;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link::before {
    display: none;
    /* Remove old style */
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../images/hero-bg-new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(44, 24, 16, 0.4) 0%, rgba(44, 24, 16, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    padding: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: 500;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    max-width: 750px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #B8941F);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #B8941F, var(--secondary-color));
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color) !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-link {
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #FFF9E6 0%, white 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #B8941F);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-title {
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.course-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.course-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.course-dates {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: auto;
}

.date-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.date-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Comparison Table */
.comparison-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.comparison-table {
    margin: 0;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.comparison-table th {
    padding: 20px;
    font-weight: 600;
    border: none;
}

.comparison-table td {
    padding: 18px;
    vertical-align: middle;
}

.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: var(--light-color);
}

/* Treatment Cards */
.treatment-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.treatment-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.treatment-price {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.treatment-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.1);
}

.treatment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.treatment-card:hover .treatment-overlay {
    opacity: 1;
}

.treatment-content {
    padding: 25px;
}

.treatment-content h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.treatment-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.treatment-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Gallery */
.gallery-filters {
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 300px;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.95), transparent);
    padding: 30px 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    margin: 0;
    opacity: 0.9;
}

.gallery-item {
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

/* Feature Boxes */
.feature-box {
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-box h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* About Section */
.about-content h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.stats-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    position: relative;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}



/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    color: var(--accent-color);
    font-weight: 600;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 20px;
    color: var(--text-light);
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control,
.form-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.1);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-title {
    font-size: 1.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
}

/* Chatbot Widget Container */
#chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    /* High z-index to stay on top */
    font-family: 'Inter', sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF4444;
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
    padding: 0 4px;
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform-origin: bottom right;
    z-index: 10000;
}

.chatbot-window.active {
    display: flex;
    animation: scaleIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    filter: sepia(0.3) brightness(1.1) contrast(1.1);
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-header h6 {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-header small {
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-header small::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2ed573;
    border-radius: 50%;
    display: block;
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    /* Fix for flex item scrolling */
    min-height: 0;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    /* Standard constraint */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Bot Messages (Left) */
.chat-message.bot {
    align-self: flex-start;
    align-items: flex-start;
}

/* User Messages (Right) */
.chat-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    /* Break long words */
    overflow-wrap: break-word;
    /* Modern support */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.bot .message-bubble {
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Input Area */
.chatbot-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 16px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.chatbot-input-area button {
    flex-shrink: 0;
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-voice-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.chatbot-voice-btn.recording {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.chatbot-volume-btn,
.chatbot-clear-btn {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
}

.chatbot-volume-btn:hover,
.chatbot-clear-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}



.chatbot-volume-btn.muted i::before {
    content: "\f6a9";
    /* Volume X */
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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

@keyframes typing {

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

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

/* Responsive Design Enhancement */
@media (max-width: 991px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    /* Fix Navbar Mobile View */
    .navbar-collapse {
        background: rgba(44, 24, 16, 0.98);
        padding: 30px 20px;
        border-radius: 0;
        margin-top: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        min-height: 300px;
        margin-top: 20px;
    }

    .stats-row {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
        margin-top: 60px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .trust-badges {
        gap: 10px;
        margin-bottom: 25px;
    }

    .badge-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

    .scroll-indicator {
        display: none;
        /* Remove scroll indicator on mobile to save space */
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding: 12px 20px;
        margin-bottom: 0 !important;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .course-card,
    .contact-form,
    .contact-info,
    .treatment-card,
    .gallery-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .social-links.d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 15px;
    }

    .social-links h5 {
        width: 100%;
        margin-bottom: 15px !important;
    }

    @media (min-width: 480px) {
        .social-links h5 {
            width: auto;
            margin-bottom: 0 !important;
        }
    }

    .course-title {
        font-size: 1.4rem;
    }

    .course-price {
        font-size: 2rem;
    }

    .chatbot-window {
        width: 90%;
        height: 75vh;
        max-height: 600px;
        bottom: 85px;
        right: 5%;
        border-radius: 20px;
        position: fixed;
    }

    #chatbot-widget {
        right: 15px;
        bottom: 15px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chatbot-header {
        padding: 12px 15px;
    }

    .chatbot-header-content {
        gap: 8px;
    }

    .chatbot-header-actions {
        gap: 4px;
    }

    .chatbot-input-area {
        padding: 10px 12px;
        gap: 8px;
    }

    .chatbot-input {
        font-size: 0.9rem;
        padding: 8px 12px;
        min-width: 0;
    }

    .chatbot-voice-btn,
    .chatbot-send-btn,
    .chatbot-clear-btn,
    .chatbot-volume-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .comparison-section {
        padding: 20px 15px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-title {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links li {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-divider {
        margin: 20px 0;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .badge-item {
        text-align: center;
        justify-content: center;
    }

    .course-card,
    .treatment-card {
        padding: 25px 20px;
    }

    .course-price {
        font-size: 2.2rem;
    }

    .comparison-section {
        padding: 15px;
        border-radius: 15px;
        margin-top: 25px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .date-tags {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .date-tag {
        text-align: center;
        margin: 0;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        width: 100%;
        margin: 0;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .chatbot-window {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
        bottom: 80px;
        height: 70vh;
    }
}

/* Specific fix for very small devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .chatbot-widget,
    .footer,
    .btn {
        display: none;
    }
}