/* =========================================================
   DANTARA SPA SITE MASTER STYLES
   1. Global variables & typography
   2. Layout / Containers
   3. Hero, Sections, Cards
   4. Mobile Dock adjustments
   5. Chat / Dock integration (final overrides)
   ========================================================= */

/* Custom CSS for Dantara Spa Website */

/* Global Styles */
:root {
    --primary: #4bb6c8; /* Teal/Aqua from logo */
    --primary-dark: #2a6d7c; /* Darker teal/blue */
    --secondary: #b2e0ea; /* Light aqua/blue */
    --background: #f6fbfc; /* Soft white/very light blue */
    --text-dark: #23404a; /* Deep blue for text */
    --text-light: #6a8a99;
    --white: #fff;
    --light-bg: #F8F9FA;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

/* Typography */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: #cbd6d6 !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--primary-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.08);
    border-radius: 10px;
    padding: 1rem 0;
}

.dropdown-header {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateX(5px);
}

/* Buttons */
.btn,
button,
input[type="button"],
input[type="submit"] {
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 5px 15px rgba(75, 182, 200, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/topgallery.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 182, 200, 0.13);
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.service-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: var(--primary-dark);
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: left;
}

.service-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Benefits List */
.benefits-list {
    margin: 2rem 0;
}

.benefits-list h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Treatment Info */
.treatment-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.info-item h5 {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: #666;
}

/* Expectation Cards */
.expectation-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--secondary);
}

.expectation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(75, 182, 200, 0.13);
}

.expectation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.expectation-card:hover .expectation-icon {
    transform: scale(1.1);
}

.expectation-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.expectation-card p {
    color: #666;
    line-height: 1.6;
}

/* Booking Section */
.booking-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    margin-top: 2rem;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--secondary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(75, 182, 200, 0.13);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Gift Voucher Cards */
.voucher-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.voucher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 182, 200, 0.13);
}

.voucher-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.voucher-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.voucher-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voucher-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.voucher-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.voucher-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--primary);
}

.voucher-content {
    padding: 2rem;
}

.voucher-includes h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.voucher-includes ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.voucher-includes li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.voucher-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.voucher-duration {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #666;
}

.voucher-duration i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.voucher-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.voucher-footer {
    padding: 0 2rem 2rem;
}

/* Custom Voucher Card */
.custom-voucher-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    border: 2px solid var(--primary);
}

.custom-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.amount-option {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.amount-option:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* Step Cards */
.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--secondary);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(75, 182, 200, 0.13);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Options */
.contact-options {
    margin-top: 2rem;
}

.contact-option {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-option h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-option p {
    margin: 0;
    color: #666;
}

.contact-option a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-option a:hover {
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.07);
    margin: 0 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--primary-dark);
    font-weight: 600;
}

.stars {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(75, 182, 200, 0.25);
    background: #fff;
}

/* Footer */
footer {
    background: var(--primary-dark) !important;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: var(--secondary);
    line-height: 1.6;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary);
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .booking-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .voucher-card.featured {
        transform: none;
    }
    
    .voucher-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .custom-amounts {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .expectation-card {
        padding: 1.5rem;
    }
    
    .expectation-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .voucher-header {
        padding: 1.5rem;
    }
    
    .voucher-content {
        padding: 1.5rem;
    }
    
    .voucher-footer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Megamenu Styles */
.megamenu {
    position: static !important;
}

.megamenu .dropdown-menu {
    width: 100%;
    border: 0;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.megamenu .dropdown-menu .container {
    padding: 2rem 0;
}

.megamenu .dropdown-menu .row {
    margin: 0;
}

.megamenu .dropdown-menu .col-lg-3 {
    padding: 0 1.5rem;
}

.megamenu .dropdown-menu .col-lg-6 {
    padding: 0 1.5rem;
}

.megamenu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.megamenu .dropdown-item {
    padding: 0.75rem 0;
    color: #333;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
}

.megamenu .dropdown-item:hover {
    color: var(--primary-color);
    background: transparent;
    transform: translateX(5px);
}

.megamenu .dropdown-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.megamenu .dropdown-item:hover::before {
    width: 8px;
}

.megamenu .dropdown-divider {
    margin: 1rem 0;
    border-color: #e9ecef;
}

/* Service Category Cards */
.service-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-category h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-category .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category .service-list li {
    margin-bottom: 0.5rem;
}

.service-category .service-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.service-category .service-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Example: Add margin for icons in service-category headings */
.service-category h6 i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Featured Services Section */
.featured-services {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.featured-services h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-services .featured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-services .featured-list li {
    margin-bottom: 0.75rem;
}

.featured-services .featured-list a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.featured-services .featured-list a:hover {
    color: white;
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    /* Force dropdown to be visible and properly positioned */
    .megamenu .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8f9fa !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: none;
    }
    
    .megamenu .dropdown-menu.show {
        display: block !important;
    }
    
    /* Ensure container and row don't interfere */
    .megamenu .dropdown-menu .container {
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    .megamenu .dropdown-menu .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Make all columns full width on mobile */
    .megamenu .dropdown-menu .col-lg-3,
    .megamenu .dropdown-menu .col-lg-6 {
        padding: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Simplify service categories for mobile */
    .service-category {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #e9ecef !important;
        background: transparent !important;
        padding: 1rem !important;
        box-shadow: none !important;
    }
    
    .service-category:last-child {
        border-bottom: none !important;
    }
    
    .service-category h6 {
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem !important;
        color: var(--primary-dark) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .service-category .service-list {
        margin: 0 !important;
        list-style: none !important;
        padding: 0 !important;
    }
    
    .service-category .service-list li {
        margin-bottom: 0.25rem !important;
    }
    
    .service-category .service-list a {
        padding: 0.5rem 0 !important;
        font-size: 0.85rem !important;
        color: #666 !important;
        text-decoration: none !important;
        display: block !important;
        transition: all 0.3s ease !important;
    }
    
    .service-category .service-list a:hover {
        color: var(--primary) !important;
        transform: translateX(5px) !important;
    }
    
    /* Simplify featured services for mobile */
    .featured-services {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        background: var(--primary) !important;
        padding: 1rem !important;
        color: white !important;
    }
    
    .featured-services h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    .featured-services .featured-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .featured-services .featured-list li {
        margin-bottom: 0.75rem !important;
    }
    
    .featured-services .featured-list a {
        font-size: 0.85rem !important;
        padding: 0.25rem 0 !important;
        color: rgba(255,255,255,0.9) !important;
        text-decoration: none !important;
        display: block !important;
        transition: all 0.3s ease !important;
    }
    
    .featured-services .featured-list a:hover {
        color: white !important;
        transform: translateX(5px) !important;
    }
    
    /* Ensure dropdown toggle works properly */
    .dropdown-toggle[aria-expanded="true"] .fas.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-toggle .fas.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    /* Better touch targets for mobile */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f8f9fa !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none !important;
    }
    
    /* Ensure buttons are properly sized */
    .navbar-nav .btn {
        margin: 0.5rem 1rem !important;
        width: calc(100% - 2rem) !important;
        text-align: center !important;
        min-height: 44px !important;
    }
    
    /* Ensure navbar collapse works properly */
    .navbar-collapse {
        background: white;
        border-top: 1px solid #e9ecef;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    /* Make dropdown toggle more visible */
    .dropdown-toggle::after {
        margin-left: 0.5em;
        vertical-align: middle;
    }
    
    /* Improve dropdown animation */
    .dropdown-menu {
        transition: all 0.3s ease;
        transform-origin: top;
    }
    
    .dropdown-menu.show {
        transform: scaleY(1);
        opacity: 1;
    }
    
    .dropdown-menu:not(.show) {
        transform: scaleY(0);
        opacity: 0;
    }
    
    /* Better spacing for mobile nav items */
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
}

/* Animation for megamenu */
.megamenu .dropdown-menu {
    animation: slideDown 0.3s ease-out;
}

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

@media (max-width: 991.98px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1050;
    }
    .hero-section {
        padding-top: 80px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px !important;
    }
}

/* Center footer call-to-action buttons */
footer .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Center nav button only on mobile */
@media (max-width: 991.98px) {
    .navbar-nav .btn {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
        float: none;
    }
}

/* Remove centering from .service-buttons and .navbar-nav */
.service-buttons,
.navbar-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: left;
}

@media (max-width: 991.98px) {
    .dropdown-menu.mobile-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.5rem 0 !important;
        z-index: 1000 !important;
    }
    .dropdown-menu.mobile-dropdown.show {
        display: block !important;
    }
}

/* Membership Cards */
.membership-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.08);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 182, 200, 0.15);
    border-color: var(--primary);
}

.membership-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    transform: scale(1.05);
}

.membership-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.membership-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(75, 182, 200, 0.3);
}

.membership-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary);
}

.membership-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 0.5rem;
}

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

.price .amount {
    font-size: 3rem;
    color: var(--primary-dark);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.sessions {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.membership-features {
    margin-bottom: 2rem;
}

.membership-features ul {
    list-style: none;
    padding: 0;
}

.membership-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.membership-features li i {
    color: var(--primary);
    font-size: 1rem;
}

.membership-cta {
    margin-top: auto;
}

.membership-benefits {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.08);
    margin-top: 2rem;
}

.membership-benefits h4 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1rem;
}

.benefit-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h6 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments for membership cards */
@media (max-width: 991.98px) {
    .membership-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .membership-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .membership-benefits {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .membership-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .membership-header h3 {
        font-size: 1.3rem;
    }
    
    .benefit-item {
        padding: 0.5rem;
    }
    
    .benefit-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .membership-card {
        padding: 1rem;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    .membership-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .membership-benefits {
        padding: 1.5rem;
    }
} 

/* Promotional Popup Modal Styles */
.promo-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    position: relative;
}

.promo-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="orchid" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="8" fill="rgba(255,255,255,0.1)"/><circle cx="35" cy="15" r="6" fill="rgba(255,255,255,0.1)"/><circle cx="15" cy="35" r="6" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23orchid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.promo-modal-header {
    border: none;
    padding: 1rem 1.5rem 0;
    position: relative;
    z-index: 10;
}

.promo-modal-body {
    padding: 2rem 3rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.promo-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.promo-image {
    margin-bottom: 1.5rem;
}

.promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-text h3 {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.promo-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.promo-modal-header .btn-close {
    background-color: var(--primary);
    opacity: 0.8;
    border-radius: 50%;
    padding: 0.5rem;
}

.promo-modal-header .btn-close:hover {
    opacity: 1;
    background-color: var(--primary-dark);
}

/* Responsive styles for promotional modal */
@media (max-width: 768px) {
    .promo-modal-body {
        padding: 1.5rem 2rem;
    }
    
    .promo-content {
        padding: 1.5rem;
    }
    
    .promo-text h3 {
        font-size: 1.5rem;
    }
    
    .promo-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-lg {
        max-width: 95%;
    }
    
    .promo-modal-body {
        padding: 1rem;
    }
    
    .promo-content {
        padding: 1rem;
    }
    
    .promo-text h3 {
        font-size: 1.3rem;
    }
    
    .promo-text .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 

/* Promotions Section Styles */
.promo-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(75, 182, 200, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(75, 182, 200, 0.2);
    border-color: var(--primary);
}

.promo-card.hot-stone-promo {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.promo-card.weekday-promo {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.promo-content h3 {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.promo-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.promo-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.promo-cta {
    text-align: center;
    margin-bottom: 1.5rem;
}

.promo-image {
    text-align: center;
}

.promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promo-card:hover .promo-image img {
    transform: scale(1.05);
}

/* Responsive styles for promotions */
@media (max-width: 991.98px) {
    .promo-card {
        margin-bottom: 2rem;
    }
    
    .promo-content h3 {
        font-size: 1.6rem;
    }
    
    .promo-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .promo-card {
        padding: 1.5rem;
    }
    
    .promo-content h3 {
        font-size: 1.4rem;
    }
    
    .promo-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .promo-card {
        padding: 1rem;
    }
    
    .promo-content h3 {
        font-size: 1.3rem;
    }
    
    .promo-description {
        font-size: 0.95rem;
    }
    
    .promo-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 

/* Review Widget Styles */
.lc_reviews_widget {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.1) !important;
    background: white !important;
    min-height: 400px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--background) 0%, #f8f9fa 100%);
    padding: 4rem 0;
}

.testimonials-section .section-title {
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

/* Contact Section Enhancements */
.contact-section {
    background: var(--white);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.map-responsive {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(75, 182, 200, 0.1);
    transition: all 0.3s ease;
}

.map-responsive:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(75, 182, 200, 0.2);
}

.map-responsive iframe {
    border: none;
    width: 100%;
    height: 350px;
    min-height: 300px;
}

/* Responsive adjustments for review widget */
@media (max-width: 768px) {
    .lc_reviews_widget {
        min-height: 350px !important;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .lc_reviews_widget {
        min-height: 300px !important;
    }
    
    .map-responsive iframe {
        height: 250px;
        min-height: 250px;
    }
}
/* === Dantara Assistant Chat (scoped; safe to load after main site styles) === */
#dantara-chat-root * {
    box-sizing: border-box;
    font: 14px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

/* Launcher */
#dantara-chat-root .dc-launch {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    z-index: 2147483647;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0b1a3a;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    cursor: pointer;
    border: none;
}

    #dantara-chat-root .dc-launch:focus {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }

    #dantara-chat-root .dc-launch .dc-icon {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: block;
    }

    #dantara-chat-root .dc-launch.dc-launch--image {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

/* Panel */
#dantara-chat-root .dc-panel {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483647;
    width: min(380px, calc(100svw - 40px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));
    max-width: 100svw;
    height: 560px; /* JS adjusts for keyboard; this is initial */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    display: none;
    overflow-x: hidden; /* hard stop for horizontal scroll */
    contain: content; /* avoid layout leaks */
}

/* Header */
#dantara-chat-root .dc-header {
    height: 56px;
    background: #0b1a3a;
    color: #fff;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

#dantara-chat-root .dc-brand {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: 0 0 24px;
}

#dantara-chat-root .dc-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

#dantara-chat-root .dc-header .dc-actions {
    display: flex;
    gap: 6px;
}

#dantara-chat-root .dc-header button {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}

    #dantara-chat-root .dc-header button:hover {
        background: rgba(255,255,255,.12);
    }

/* Log */
#dantara-chat-root .dc-log {
    height: calc(100% - 112px); /* JS recalculates exact height */
    overflow-y: auto;
    overflow-x: hidden; /* vertical only */
    padding: 16px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
    min-width: 0; /* allow flex children to shrink */
}

/* Bubbles */
#dantara-chat-root .dc-bubble {
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere; /* break long URLs/words */
    min-width: 0;
}

    #dantara-chat-root .dc-bubble p {
        margin: 0 0 10px;
    }

        #dantara-chat-root .dc-bubble p:last-child {
            margin-bottom: 0;
        }

#dantara-chat-root .dc-user {
    align-self: flex-end;
    background: #dbeafe;
}

#dantara-chat-root .dc-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
}

#dantara-chat-root .dc-bubble a {
    color: #0b63ff;
    text-decoration: underline;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#dantara-chat-root .dc-bubble * {
    max-width: 100%;
    min-width: 0;
}
/* no child can push wider */

/* Footer */
#dantara-chat-root .dc-footer {
    display: flex;
    gap: 10px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* iOS safe area */
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

#dantara-chat-root .dc-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 12px;
    min-width: 0; /* critical for flex shrink */
}

#dantara-chat-root .dc-send {
    background: #0b63ff;
    border: 0;
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    cursor: pointer;
}

    #dantara-chat-root .dc-send:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

/* CTAs & Chips */
#dantara-chat-root .dc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #0b63ff;
    color: #fff !important;
    text-decoration: none !important;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    min-width: 180px; /* desktop baseline */
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    max-width: 100%;
    white-space: normal; /* allow wrapping on narrow widths */
    text-align: center;
}

    #dantara-chat-root .dc-cta:focus {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

    #dantara-chat-root .dc-cta:hover {
        filter: brightness(0.95);
    }

#dantara-chat-root .dc-cta--chip {
    min-width: 0; /* chips never force width */
    padding: 10px 14px;
    margin: 6px 6px 0 0;
    white-space: normal;
    max-width: 100%;
}

#dantara-chat-root .dc-chipwrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Nudge coachmark */
#dantara-chat-root .dc-nudge {
    position: fixed;
    right: calc(84px + env(safe-area-inset-right, 0px)); /* sits left of launcher */
    z-index: 2147483647;
    background: #0b1a3a;
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font: 13px/1.3 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    max-width: 200px;
    animation: dc-nudge-in .25s ease-out both;
}

@keyframes dc-nudge-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile full-screen */
@media (max-width: 640px) {
    #dantara-chat-root .dc-panel {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100svw;
        max-width: 100svw;
        height: 100dvh; /* JS still refines this with visualViewport */
        border-radius: 0;
        overflow-x: hidden;
    }
    /* On small screens, never let CTAs force width */
    #dantara-chat-root .dc-cta {
        min-width: 0;
    }
    /* === Dantara Chat: final clamp & iOS viewport fixes === */

    /* 1) Use the *small* viewport width to avoid iOS horizontal creep */
    #dantara-chat-root .dc-panel {
        /* replace any earlier 100vw math */
        width: min(380px, calc(100svw - 40px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))) !important;
        max-width: 100svw !important;
        right: max(20px, env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        /* hard stop for any horizontal scroll inside the panel */
        overflow-x: hidden !important;
        box-sizing: border-box;
        contain: content;
    }

    /* 2) Fullscreen on phones: never 100vw, always 100svw */
    @media (max-width: 640px) {
        #dantara-chat-root .dc-panel {
            right: 0 !important;
            left: 0 !important;
            bottom: 0 !important;
            width: 100svw !important;
            max-width: 100svw !important;
            height: 100dvh !important; /* JS adjusts further with visualViewport */
            border-radius: 0 !important;
        }
    }

    /* 3) The scroll area and footer must never push sideways */
    #dantara-chat-root .dc-log {
        overflow-x: hidden !important;
        min-width: 0 !important; /* critical for flex shrink */
        max-width: 100% !important;
    }

    #dantara-chat-root .dc-footer {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 4) Bubbles/links/children: wrap always, can’t exceed container */
    #dantara-chat-root .dc-bubble,
    #dantara-chat-root .dc-bubble * {
        max-width: 100% !important;
        min-width: 0 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

        #dantara-chat-root .dc-bubble a {
            word-break: break-word !important;
            overflow-wrap: anywhere !important;
        }

    /* 5) Chips & CTAs: allow wrap, no wide min-width on mobile */
    #dantara-chat-root .dc-chipwrap {
        max-width: 100%;
        flex-wrap: wrap;
        overflow: hidden;
    }

    #dantara-chat-root .dc-cta--chip {
        min-width: 0 !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    @media (max-width: 640px) {
        #dantara-chat-root .dc-cta {
            min-width: 0 !important;
            white-space: normal !important;
        }
    }

    /* 6) Safe-area padding so content never touches the edges on iPhone */
    #dantara-chat-root .dc-header,
    #dantara-chat-root .dc-footer {
        padding-inline: max(10px, env(safe-area-inset-left,0px)) max(10px, env(safe-area-inset-right,0px));
    }

    #dantara-chat-root .dc-log {
        padding-inline: max(16px, env(safe-area-inset-left,0px)) max(16px, env(safe-area-inset-right,0px));
    }

    /* 7) Nudge/launcher respect safe areas, never trigger x-scroll */
    #dantara-chat-root .dc-launch {
        right: max(20px, env(safe-area-inset-right, 0px)) !important;
    }

    #dantara-chat-root .dc-nudge {
        right: calc(84px + env(safe-area-inset-right, 0px)) !important;
    }

    /* 8) Absolute safety: if svw/svh unsupported, fall back cleanly */
    @supports not (width: 100svw) {
        #dantara-chat-root .dc-panel {
            width: min(380px, calc(100vw - 40px)) !important;
            max-width: 100vw !important;
        }

        @media (max-width: 640px) {
            #dantara-chat-root .dc-panel {
                width: 100vw !important;
                height: 100dvh !important;
            }
        }
    }
    /* Avoid iOS zoom-on-focus; keep input readable */
    @media (max-width: 640px) {
        #dantara-chat-root .dc-input {
            font-size: 16px; /* iOS won't zoom if >=16px */
        }
    }

    /* Make sure the input never gets clipped by rounded corners */
    #dantara-chat-root .dc-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    /* === Dantara Chat: pin header, vertical-only scroll, no horizontal creep === */

    /* Panel is a flex column: header + log (flex) + footer */
    #dantara-chat-root .dc-panel {
        display: flex;
        flex-direction: column;
        overflow-x: hidden; /* hard stop for x-scroll */
        contain: content; /* isolate layout */
    }

    /* Header/footer never scroll out of view (even if panel becomes scroller) */
    #dantara-chat-root .dc-header {
        flex: 0 0 auto;
        position: sticky;
        top: 0;
        z-index: 2; /* over shadows/CTA buttons */
    }

    #dantara-chat-root .dc-footer {
        flex: 0 0 auto;
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    /* Log is the only scroll area */
    #dantara-chat-root .dc-log {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        min-width: 0; /* critical for flex shrink */
        -webkit-overflow-scrolling: touch;
    }

    /* Absolutely prevent width push from content */
    #dantara-chat-root .dc-bubble,
    #dantara-chat-root .dc-bubble * {
        max-width: 100%;
        min-width: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Chips & CTAs wrap on small widths; never force min-width */
    #dantara-chat-root .dc-chipwrap {
        flex-wrap: wrap;
        max-width: 100%;
        overflow: hidden;
    }

    #dantara-chat-root .dc-cta--chip {
        min-width: 0;
        white-space: normal;
        max-width: 100%;
    }

    @media (max-width: 640px) {
        #dantara-chat-root .dc-cta {
            min-width: 0;
            white-space: normal;
            max-width: 100%;
        }
    }

    /* iOS small viewport: ensure panel fits visible area */
    @media (max-width: 640px) {
        #dantara-chat-root .dc-panel {
            width: 100svw;
            height: 100dvh; /* JS refines with visualViewport */
            right: 0;
            left: 0;
            bottom: 0;
            border-radius: 0;
        }
    }

    /* Safety fallback if svw/svh unsupported */
    @supports not (width: 100svw) {
        #dantara-chat-root .dc-panel {
            width: 100vw;
        }
    }


}
/* === Dantara Chat: lift above bottom dock === */
#dantara-chat-root .dc-launch {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    z-index: 2147483647;
}

#dantara-chat-root .dc-panel {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(88px + var(--dock-h, 0px) + env(safe-area-inset-bottom, 0px));
    width: min(380px, calc(100svw - 40px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));
    max-width: 100svw;
    z-index: 2147483647;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Nudge chip sits left of the launcher */
#dantara-chat-root .dc-nudge {
    right: calc(84px + env(safe-area-inset-right, 0px));
    z-index: 2147483647;
}

/* Phones: force fullscreen panel; ignore dock offset while open */
@media (max-width: 640px) {
    #dantara-chat-root .dc-panel {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100svw !important;
        max-width: 100svw !important;
        height: 100dvh !important; /* visualViewport JS further refines */
        border-radius: 0 !important;
    }
}

