/* Exact Replica CSS */

/* Global */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.container {
    max-width: 1000px;
    /* Matching standard LP width */
    margin: 0 auto;
    padding: 20px;
}

/* Colors */
:root {
    --primary-blue: #004080;
    /* Source logo blue */
    --light-blue: #f0f8ff;
    /* Source background tint */
    --accent-red: #ff3b30;
    /* Source button red */
    --text-grey: #555;
    --border-color: #e0e0e0;
}

/* Top Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove bottom gap */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .logo-text {
    font-weight: 900;
    color: var(--primary-blue);
    font-size: 1.4rem;
    line-height: 1;
}

.header-left .tagline {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.5px;
}

.header-center {
    display: none;
    /* Hide on small mobiles */
}

.header-center a {
    color: #333;
    margin: 0 15px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-box span {
    font-size: 0.8rem;
    color: #555;
    font-weight: bold;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 900;
    color: var(--accent-red);
    font-size: 1.2rem;
}

.time-part {
    min-width: 25px;
    text-align: center;
}

@media(min-width: 768px) {
    .header-center {
        display: block;
    }
}


/* Hero Section */
.hero-section {
    background: #fff;
    padding: 40px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-left img {
    max-width: 100%;
    border-radius: 10px;
}

/* Professional Top Header */
.top-header {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-blue);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-item span {
    font-size: 0.75rem;
    font-weight: bold;
    color: #444;
    line-height: 1.2;
}

/* Updated Price Header */
.price-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.discount-badge {
    background: var(--accent-red);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Date Urgent */
.date-urgent {
    text-align: center;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    display: inline-block;
    width: 100%;
}

/* Small Note */
.small-note {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 5px;
    display: block;
}

/* Guarantee Box */
.guarantee-box {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: bold;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    /* Make sure it wraps the divs properly */
}

.logo-link:hover {
    opacity: 0.9;
    /* Subtle hover effect */
}

.header-left .logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-blue);
    line-height: 1.1;
}

.header-left .tagline {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-nav {
    display: none;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--accent-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-timer-box {
    text-align: right;
    display: none;
    /* Hidden on very small screens */
}

.top-timer-box span {
    display: block;
    font-size: 0.7rem;
    color: #888;
}

.countdown {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d9534f;
}

.header-btn {
    background: var(--accent-red);
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.3s;
}

.header-btn:hover {
    background: #c9302c;
}

@media (min-width: 768px) {

    .header-nav,
    .top-timer-box {
        display: block;
    }
}

/* Timer in Forms */
.form-timer-box {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #ffeeba;
}

.form-countdown {
    color: #c00;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background: url('https://placehold.co/1920x600/f0f8ff/f0f8ff');
    /* Fallback */
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    padding: 40px 0;
}

.hero-logo {
    display: none;
    /* Replaced by top header */
}

.hero-right h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.hero-benefits li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #444;
}

/* Hero Form Box */
.hero-form-box {
    background: #fff;
    border: 2px dashed var(--accent-red);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.price-header {
    text-align: center;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 15px;
}

.new-price {
    color: var(--accent-red);
    font-size: 2.5rem;
    font-weight: 900;
}

.promo-text {
    text-align: center;
    font-size: 0.8rem;
    color: #e67e22;
    /* Orange for urgency */
    margin-bottom: 10px;
}

.hero-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    /* Increased spacing */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    /* Fixes overflow */
    transition: border-color 0.3s;
}

.hero-form input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.2);
}

.hero-form button {
    width: 100%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 0 #c0392b;
    transition: all 0.2s;
    margin-top: 5px;
}

.hero-form button:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Inline Form Validation Messages */
.form-result {
    display: none;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.form-result.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.form-result.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

/* Sections Common */
section {
    padding: 30px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
}

.sub-h2 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Problem Section */
.problem-section {
    background: var(--light-blue);
    text-align: center;
}

.stat-counter {
    background: #fff;
    display: inline-block;
    padding: 20px 40px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.stat-counter .number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}

.stat-counter .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Benefits Section */
.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.benefit-item img {
    border-radius: 50%;
    margin-bottom: 15px;
}

.benefit-item p {
    font-weight: bold;
    font-size: 1.1rem;
}

.mid-cta {
    text-align: center;
    margin-top: 50px;
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.btn-red {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(232, 62, 48, 0.4);
    margin-top: 20px;
}

/* Ingredients Section */
.ingredients-list {
    margin-top: 40px;
}

.ing-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.ing-row.reverse {
    flex-direction: row-reverse;
}

.ing-text flex: 1;

.ing-img img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.ing-text h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Stats Section */
.stats-section {
    background: var(--light-blue);
}

.stat-bar-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
}

.stat-row {
    margin-bottom: 20px;
}

.stat-row span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.progress-bar {
    background: #eee;
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.fill {
    background: var(--primary-blue);
    /* Blue fill */
    height: 100%;
    color: #fff;
    text-align: right;
    padding-right: 10px;
    line-height: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* Comparison Section */
.comparison-grid {
    display: flex;
    gap: 0;
    /* Connected */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bad-side,
.good-side {
    flex: 1;
    padding: 40px;
}

.bad-side {
    background: #fdf2f2;
    /* Light Red */
}

.good-side {
    background: #f0fbf4;
    /* Light Green */
}

.bad-side h3 {
    color: #c0392b;
}

.good-side h3 {
    color: #27ae60;
}

.comparison-grid ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.comparison-grid li {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Expert Section */
.expert-section {
    background: #fff;
}

.expert-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.expert-quote {
    flex: 1;
    font-style: italic;
    font-size: 1.2rem;
    border-left: 5px solid var(--primary-blue);
    padding-left: 20px;
}

.expert-quote h4 {
    margin-top: 20px;
    font-style: normal;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.expert-photo img {
    border-radius: 10px;
    max-width: 300px;
}

/* Reviews Section */
.reviews-section {
    background: var(--light-blue);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-card h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.review-card p {
    color: #555;
    font-style: italic;
}

/* Counter Overlay Design */
.stat-counter-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    margin-top: 25px;
    display: inline-block;
    border: 1px solid #eee;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.counter-visual {
    position: relative;
    height: 120px;
    /* Fixed height for the visual area */
    background: #f8fbff;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid #e1eaf5;
}

.icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 4px;
    /* Tight gap */
    opacity: 0.3;
    /* Faded background effect */
    width: 100%;
    height: 100%;
    padding: 10px;
}

.icons-grid svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-blue);
}

.red-counter-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d32f2f;
    /* Strong Red */
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    padding: 5px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
    letter-spacing: 2px;
    white-space: nowrap;
    border: 2px solid #fff;
    /* White border for pop */
}

/* Usage Section */
.usage-section {
    text-align: center;
}

.men-icon-row {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    flex-wrap: wrap;
    /* Allow wrapping for many icons */
    max-width: 350px;
    /* Constrain width to force wrapping nice */
    margin-left: auto;
    margin-right: auto;
}

.men-icon-row svg {
    width: 14px;
    /* Small size */
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
}

.usage-steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.usage-tips {
    background: #fff3cd;
    /* Yellow Tip */
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    border: 1px solid #ffeeba;
}

/* Steps Section (Order) */
.steps-section {
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
}

.steps-section h2 {
    color: #fff;
}

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.order-step {
    flex: 1;
}

.order-step .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Final CTA */
.final-cta-section {
    background: #fdfdfd;
}

/* Footer */
footer {
    background: #333;
    color: #777;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: #aaa;
    margin: 0 10px;
    text-decoration: none;
}

.footer-disclaimer-box {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.footer-disclaimer-box p {
    font-size: 0.75rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-container,
    .expert-content,
    .comparison-grid {
        flex-direction: column;
    }

    .hero-right h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-form-box {
        margin: 0 auto;
    }

    .hero-benefits {
        text-align: center;
    }

    .benefits-grid,
    .steps-grid,
    .usage-steps {
        flex-direction: column;
        gap: 30px;
    }

    .ing-row,
    .ing-row.reverse {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   Dynamic Elements (Cookie Banner & Toast)
   ========================================= */

/* Cookie Banner */
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    /* Dark semi-transparent */
    color: #fff;
    padding: 20px;
    display: none;
    /* Hidden by default, JS will toggle flex */
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2147483647;
    /* Max Z-Index */
    border-top: 1px solid #444;
}

.cookie-banner.show {
    display: flex;
    /* Show when active */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 800px;
}

.cookie-banner a {
    color: #4da6ff;
    text-decoration: none;
    font-weight: bold;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner button {
    background: #4CAF50;
    /* Green for "Accept" is more standard/trustworthy */
    border: none;
    color: #fff;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cookie-banner button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.cookie-banner button:active {
    transform: translateY(0);
}

/* Sales Notification Toast */
.sales-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Force Left */
    right: auto;
    background: #fff;
    border-left: 5px solid var(--accent-red);
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateX(-120%);
    /* Hidden Left */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    width: auto;
}

.sales-toast.show {
    transform: translateX(0);
}

/* Animated Medical Background */
@keyframes bg-slide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.medical-anim-bg {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    /* Subtle separator */
}

/* Floating Medical Icons (Sparse & Professional) */
.floating-plus {
    position: absolute;
    color: rgba(0, 64, 128, 0.08);
    /* Very subtle blue */
    font-weight: 900;
    font-family: sans-serif;
    z-index: 0;
    pointer-events: none;
    animation: floatMove 15s infinite ease-in-out;
}

@keyframes floatMove {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Individual Positions */
.p1 {
    top: 10%;
    left: 5%;
    font-size: 8rem;
    animation-duration: 18s;
}

.p2 {
    top: 20%;
    right: 10%;
    font-size: 6rem;
    animation-duration: 22s;
}

.p3 {
    bottom: 15%;
    left: 15%;
    font-size: 10rem;
    animation-duration: 25s;
}

.p4 {
    bottom: 30%;
    right: 5%;
    font-size: 5rem;
    animation-duration: 15s;
}

.p5 {
    top: 50%;
    left: 45%;
    font-size: 12rem;
    opacity: 0.03;
}

/* Center giant one */
.p6 {
    top: 5%;
    left: 50%;
    font-size: 4rem;
    animation-duration: 20s;
}

/* Button Animation (Pulse/Shake) */
@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 0 #c0392b;
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 0 #c0392b;
    }
}

.hero-form button,
.btn-red {
    animation: btnPulse 2s infinite;
}

/* Ensure content is above background */
.medical-anim-bg .container {
    position: relative;
    z-index: 2;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f4fc;
}

.toast-name {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 0.9rem;
    display: block;
}

.toast-msg {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.2;
}

.toast-time {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.65rem;
    color: #aaa;
}

/* Mobile Adjustments for Popups */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .sales-toast {
        left: 10px;
        /* Force LEFT align */
        right: auto;
        bottom: 80px;
        /* Keep above bottom elements */
        width: auto;
        max-width: 90%;
        transform: translateX(-120%);
        /* Hidden LEFT */
    }

    .sales-toast.show {
        transform: translateX(0);
    }
}

/* =========================================
   Consultation Chatbot Widget
   ========================================= */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20000;
    font-family: 'Roboto', sans-serif;
}

/* Chat Icon Container & Real Avatar */
.chat-icon-container {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
    z-index: 20001;
}

.chat-icon-container:hover {
    transform: scale(1.05);
}

.chat-avatar-wrapper {
    width: 60px;
    /* Desktop Size */
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 64, 128, 0.4);
    position: relative;
    background: #fff;
    /* Fallback */
}

.chat-main-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Live Status Dot */
.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #27ae60;
    /* Green */
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 2;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Engagement Tooltip */
.chat-tooltip {
    position: absolute;
    bottom: 75px;
    /* Above avatar */
    right: 0;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px;
    border-bottom-right-radius: 2px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    font-weight: bold;
    width: 180px;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 20000;
}

.chat-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Responsive Size */
@media (max-width: 768px) {
    .chat-avatar-wrapper {
        width: 50px;
        /* Smaller on mobile */
        height: 50px;
    }

    .status-dot {
        width: 12px;
        height: 12px;
        bottom: 1px;
        right: 1px;
    }

    .chat-tooltip {
        bottom: 65px;
        width: 160px;
        font-size: 0.8rem;
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    /* Fixed standard width */
    max-width: 90vw;
    /* Prevent overflow on very small screens */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}

.chat-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header */
.chat-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 2px solid #fff;
}

.agent-name {
    font-weight: bold;
    display: block;
    font-size: 0.95rem;
}

.agent-status {
    font-size: 0.75rem;
    color: #aaddff;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.chat-body {
    padding: 15px;
    background: #f9f9f9;
    height: auto;
    /* Allow shrinking */
    max-height: 300px;
    /* Cap height for scrolling */
    min-height: 100px;
    /* Minimum size */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-msg {
    background: #e8f4fc;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Footer / Form */
.chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.chat-form input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.chat-form button {
    width: 100%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-form button:hover {
    background: #c0392b;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
    .chat-window {
        bottom: 90px;
        right: 20px;
        width: 280px !important;
        max-width: 85vw;
        height: auto;
        /* Allow auto height */
        max-height: 60vh;
        /* Cap at 60% screen */
        border-radius: 12px;
    }

    .chat-body {
        height: auto;
        /* Auto fit content */
        max-height: 250px;
        /* Scroll if too long */
    }

    .chat-header {
        padding: 10px 15px;
    }

    .chat-footer {
        padding: 10px;
    }
}

/* Footer Product Image Sizing */
.footer-product-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 450px;
    /* Desktop constraint */
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-product-img {
        max-width: 280px;
        /* Mobile constraint */
        max-height: 350px;
        margin-bottom: 20px;
    }
}

/* Reviews Slider */
.reviews-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--primary-blue);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-stars {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.review-card h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1rem;
}

.review-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #003060;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 250px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Usage Section - Product + Steps */
.usage-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.usage-product-img {
    flex: 0 0 220px;
    text-align: center;
}

.usage-product-img img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.usage-steps-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-step-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f0f8ff;
    padding: 18px 22px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s;
}

.usage-step-item:hover {
    transform: translateX(5px);
}

.usage-step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.usage-step-text h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
}

@media (max-width: 768px) {
    .usage-layout {
        flex-direction: column;
        gap: 20px;
    }

    .usage-product-img {
        flex: none;
        width: 180px;
    }

    .usage-step-item {
        padding: 14px 16px;
    }
}
