/* 
   Viskam Auto A/C - Main Stylesheet
   Theme: High-end Professional (Navy Blue & White)
*/

:root {
    /* Color Palette */
    --primary-color: #1a237e;
    /* Deep Navy Blue */
    --secondary-color: #0d47a1;
    /* Slightly Lighter Blue for hover/accents */
    --accent-color: #d32f2f;
    /* Professional Red for CTA/Highlights */
    --text-dark: #212121;
    --text-light: #757575;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --gradient-overlay: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(13, 71, 161, 0.8));

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
    color: var(--accent-color);
}

.top-social a {
    color: var(--white);
    margin-left: 15px;
}

.top-social a:hover {
    color: var(--accent-color);
}

/* Header & Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Slight increase */
    background-image: url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    /* Anchor car to bottom */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 1;
    animation: revealScene 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 1.2s;
    z-index: 1;
}

.hero-headlights {
    position: absolute;
    top: 55%;
    /* Approx headlight height */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
}

.beam {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 230, 255, 0.9) 0%, rgba(200, 230, 255, 0.3) 30%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    position: absolute;
    filter: blur(25px);
    mix-blend-mode: screen;
    opacity: 0;
    animation: turnOnLights 2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.5s;
}

.beam-left {
    left: 20%;
    transform: translateX(-50%);
}

.beam-right {
    right: 20%;
    transform: translateX(50%);
}

@keyframes turnOnLights {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }

    10% {
        opacity: 0;
    }

    15% {
        opacity: 0.8;
        transform: scale(0.4);
    }

    /* Flicker */
    20% {
        opacity: 0.1;
        transform: scale(0.4);
    }

    30% {
        opacity: 1;
        transform: scale(0.6);
    }

    /* Full ON */
    100% {
        opacity: 0.6;
        transform: scale(2.5);
    }

    /* Widen to illuminate scene */
}

@keyframes revealScene {
    0% {
        opacity: 1;
        background: #000;
    }

    100% {
        opacity: 0.6;
        background: linear-gradient(135deg, rgba(10, 20, 50, 0.9), rgba(0, 0, 0, 0.4));
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Above lights */
    color: var(--white);
    max-width: 800px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2s;
    /* Wait for lights */
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2.2s;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1px #4fc3f7;
    position: relative;
}

.hero-title span::before {
    content: 'Air Conditioning';
    position: absolute;
    left: 0;
    top: 0;
    color: #4fc3f7;
    width: 0;
    overflow: hidden;
    animation: fillText 1.5s ease forwards;
    animation-delay: 2.8s;
    white-space: nowrap;
}

@keyframes fillText {
    to {
        width: 100%;
    }
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0;
    font-weight: 300;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2.4s;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2.6s;
}

/* Utility / Sections */
.section {
    padding: var(--section-padding);
}

/* Footer */
.footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdbdbd;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #757575;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile for cleaner look */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-text {
        font-size: 1rem;
    }
}

/* --- New Section Styles --- */

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
}

.services-grid {
    display: grid;
    /* Default for mobile/tablet: auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Force single row on larger screens */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: translateY 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--accent-color);
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    text-align: center;
}

.brands-grid {
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    background: var(--white);
    padding: 20px 0;
    position: relative;
}

.brands-track {
    display: flex;
    width: max-content;
    gap: 80px;
    animation: scroll 20s linear infinite;
}

.brand-item {
    width: 160px;
    flex-shrink: 0;
    height: auto;
    transition: 0.3s;
}

.brand-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-item:hover {
    transform: scale(1.1);
}

/* Pause animation on hover */
.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-160px * 8 - 80px * 8));
    }
}

/* --- Animations --- */

/* Hero Animations (On Load) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Triggered Animations - Enhanced */
.reveal {
    opacity: 0;
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item h4 {
    margin: 0 0 5px;
    color: var(--white);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* Intro Video Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Use dynamic viewport height for mobile browsers */
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#intro-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #intro-overlay video {
        object-fit: contain;
        /* Show full video content on mobile without cropping */
        background-color: #000;
        /* Ensure letterboxing is black */
    }
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Prevent scrolling while video plays */
body.no-scroll {
    overflow: hidden;
}

/* Responsive Adjusments for Grid */
@media (max-width: 992px) {

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }
}

/* --- Chatbot Widget --- */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: var(--font-primary);
}

/* Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #b71c1c);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.chat-toggle-btn i {
    position: absolute;
    transition: all 0.3s ease;
}

.chat-toggle-btn .fa-xmark {
    opacity: 0;
    transform: rotate(-90deg);
}

.chatbot-widget.active .chat-toggle-btn .fa-message {
    opacity: 0;
    transform: rotate(90deg);
}

.chatbot-widget.active .chat-toggle-btn .fa-xmark {
    opacity: 1;
    transform: rotate(0);
    background-color: #333;
    /* Darker background when open */
}

.chatbot-widget.active .chat-toggle-btn {
    background: #e0e0e0;
    color: #333;
}

/* Tooltip & Pulse */
.chat-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.chat-toggle-btn:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chatbot-widget.active .pulse-ring,
.chatbot-widget.active .chat-tooltip {
    display: none;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-widget.active .chat-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #000);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #00e676;
    /* Green */
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.chat-header p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-controls button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.3s;
}

.chat-controls button:hover {
    color: var(--white);
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messageSlide 0.3s ease forwards;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #eee;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--secondary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(13, 71, 161, 0.2);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typingBounce 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 typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Input Area */
.chat-input-area {
    padding: 15px;
    background: var(--white);
    border-top: 1px solid #eee;
}

#chat-form {
    display: flex;
    gap: 10px;
    position: relative;
}

#chat-input {
    flex: 1;
    padding: 12px 45px 12px 15px;
    border: 1px solid #eee;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

#chat-input:focus {
    background: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

#chat-send-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

#chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#chat-send-btn:hover:not(:disabled) {
    background: #b71c1c;
    transform: translateY(-50%) scale(1.1);
}

.disclaimer {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        max-height: 100dvh;
        /* Dynamic viewport height for mobile */
        bottom: 0;
        right: 0;
        border-radius: 0;
        margin: 0;
        z-index: 10002;
    }

    .chatbot-widget {
        bottom: 20px;
        /* Give it space from the edge */
        right: 20px;
        z-index: 10001;
    }

    .chat-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .chatbot-widget.active .chat-toggle-btn {
        display: none;
    }
}