/* Buffalo Plant Hire Ltd - Professional Website Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Brand Colors */
:root {
    --primary-black: #1a1a1a;
    --primary-yellow: #FFD700;
    --accent-yellow: #FFC107;
    --pure-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --danger-red: #dc3545;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.25);
    --transition-standard: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--pure-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-standard);
    padding: 1rem 0;
}

.header.scrolled {
    background: var(--primary-black);
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--pure-white);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--pure-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    margin: 3px 0;
    transition: var(--transition-standard);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
    text-align: center;
    font-size: 0.9rem;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* Sticky Quote Button */
.sticky-quote-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 15px 20px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-standard);
    animation: pulse 2s infinite;
}

.sticky-quote-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition-standard);
    animation: slideInRight 0.8s ease-out 2s both, whatsappPulse 2s infinite 3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-float i {
    color: white;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* Optional blur overlay for hero background images */
.hero-blur-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(26, 26, 26, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--primary-yellow);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust Indicators */
.trust-indicators {
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 2rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 1rem;
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.trust-item h4 {
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section.dark {
    background: var(--primary-black);
    color: var(--pure-white);
}

.section.light {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Cards */
.card {
    background: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.card-price {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Fleet Cards */
.fleet-card {
    background: var(--pure-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-standard);
    position: relative;
}

.fleet-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
}

.fleet-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    position: relative;
}

.fleet-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.fleet-card-content {
    padding: 2rem;
}

.fleet-card-title {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.fleet-card-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fleet-card-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.pricing-item {
    text-align: center;
}

.pricing-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-top: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-standard);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-standard);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--primary-yellow);
    font-size: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition-standard);
    font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control.textarea {
    min-height: 120px;
    resize: vertical;
}

/* Contact Info */
.contact-info {
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    margin-right: 1rem;
    width: 30px;
}

.contact-item-content h4 {
    color: var(--primary-yellow);
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--pure-white);
    transition: var(--transition-standard);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: left;
    color: var(--medium-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-gray);
    border-radius: 50%;
    color: var(--pure-white);
    transition: var(--transition-standard);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-black);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-standard);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .fleet-card-pricing {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sticky-quote-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .fleet-card-content,
    .card-content {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-yellow { color: var(--primary-yellow); }
.text-white { color: var(--pure-white); }
.bg-yellow { background-color: var(--primary-yellow); }
.bg-black { background-color: var(--primary-black); }
.bg-white { background-color: var(--pure-white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Dynamic machine cards (used on Home and Fleet) */
.machines-grid { gap: 2rem; }

.machine-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    cursor: pointer;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.machine-image { position: relative; height: 250px; overflow: hidden; }
.machine-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-standard); }
.machine-card:hover .machine-image img { transform: scale(1.05); }

.machine-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.machine-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.9);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.machine-card:hover .machine-overlay { opacity: 1; }

.overlay-content { text-align: center; padding: 1rem; }
.overlay-content h4 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.overlay-content .price { color: var(--primary-yellow); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: block; }

.machine-specs-preview { text-align: left; font-size: 0.9rem; }
.spec-item { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.spec-label { color: var(--medium-gray); }
.spec-value { color: var(--pure-white); font-weight: 700; }

.machine-info { padding: 1.5rem; }
.machine-info h3 { margin: 0 0 0.25rem 0; color: var(--primary-black); }
.machine-model { color: var(--medium-gray); font-size: 0.9rem; margin: 0 0 0.75rem 0; }
.machine-description { color: var(--primary-black); margin: 0 0 1rem 0; line-height: 1.5; opacity: 0.9; }

.machine-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.feature-tag { background: var(--light-gray); color: var(--medium-gray); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; }

.machine-pricing { margin-bottom: 1.5rem; }
.price-main { font-size: 1.5rem; font-weight: 700; color: var(--primary-yellow); margin-bottom: 0.5rem; }
.price-options { display: flex; gap: 1rem; font-size: 0.9rem; color: var(--medium-gray); }

.machine-actions { display: flex; gap: 0.75rem; }
.machine-actions .btn { flex: 1; text-align: center; padding: 0.75rem; font-size: 0.9rem; }

/* About page: image with corner logo overlay */
.image-with-logo { position: relative; width: 100%; }
.story-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: block;
}
.logo-overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    height: 56px;
    width: auto;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: var(--shadow-medium);
}

@media (max-width: 768px) {
    .logo-overlay { height: 48px; }
}

@media (max-width: 480px) {
    .logo-overlay { height: 40px; }
}

/* Cart System & Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    to { transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h3 {
    color: var(--primary-black);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-black);
}

.quote-machine-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.quote-machine-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.quote-machine-details h4 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.quote-machine-model {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.quote-pricing {
    display: flex;
    gap: 1rem;
    font-weight: bold;
}

.daily-rate {
    color: var(--primary-yellow);
    background: var(--primary-black);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.weekly-rate {
    color: var(--primary-black);
    background: var(--primary-yellow);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.quote-summary {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.price-breakdown {
    font-size: 0.95rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.price-line.total {
    border-top: 2px solid var(--primary-yellow);
    padding-top: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-black);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-black);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.cart-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-content i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

.btn-small {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-small:hover {
    background: var(--accent-yellow);
}

.cart-badge {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

.cart-link {
    position: relative;
}

.cart-link i {
    margin-right: 0.3rem;
}

/* Mobile cart badge adjustment */
@media (max-width: 992px) {
    .cart-badge {
        position: absolute;
        top: -5px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* Form Enhancements for Quote Modal */
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem;
        width: 95%;
    }
    
    .quote-machine-info {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-machine-image {
        width: 100%;
        height: 150px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Cart notification link styling */
.notification-link {
    color: var(--primary-black) !important;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 0.5rem;
}

.notification-link:hover {
    color: var(--primary-black) !important;
}

/* Secondary button styling for cart buttons */
.btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* Add to Cart Modal Styles */
.add-to-cart-modal {
    max-width: 600px;
    width: 95%;
}

.machine-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.machine-thumb {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.machine-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-black);
}

.machine-model {
    margin: 0 0 0.5rem 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.base-pricing {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.daily-rate {
    color: var(--primary-black);
    font-weight: 600;
}

.weekly-rate {
    color: var(--medium-gray);
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.price-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-line.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-black);
    border-top: 2px solid var(--primary-yellow);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Responsive adjustments for add to cart modal */
@media (max-width: 768px) {
    .add-to-cart-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .machine-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .machine-thumb {
        width: 100%;
        height: 180px;
    }
    
    .base-pricing {
        justify-content: center;
    }
}

/* ===================================
   AI CHATBOT STYLES
   =================================== */

/* Chatbot Toggle Button (replaces sticky quote button) */
#chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

#chatbot-toggle i {
    font-size: 1.8rem;
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.chatbot-container.chatbot-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-black) 0%, #2d2d2d 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chatbot-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.chatbot-status {
    font-size: 0.75rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
    font-size: 1.2rem;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #e9ecef;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-content {
    max-width: 75%;
}

.user-message .message-content {
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.75rem 1rem;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.bot-message .message-content {
    background: white;
    color: var(--primary-black);
    padding: 0.75rem 1rem;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-reply {
    background: white;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    white-space: nowrap;
}

.quick-reply:hover {
    background: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Typing Indicator */
.typing-indicator .typing-dots {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chatbot Input Area */
.chatbot-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.chatbot-input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition-standard);
    outline: none;
}

.chatbot-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-standard);
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.chatbot-send:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #chatbot-toggle {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: auto;
        left: 20px;
        font-size: 1.3rem;
    }

    .chatbot-container {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100);
        max-height: none;
        border-radius: 0;
    }

    .chatbot-header {
        padding: 1rem;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .chatbot-title h4 {
        font-size: 1rem;
    }

    .chatbot-messages {
        padding: 1rem;
        padding-bottom: 6rem; /* space for input area */
    }

    .message-content {
        max-width: 85%;
    }

    .message-content p {
        font-size: 0.9rem;
    }

    .quick-reply {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .chatbot-input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .chatbot-send {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .chatbot-input-area {
        position: sticky;
        bottom: 0;
        border-radius: 0;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        z-index: 2;
    }

    .quick-replies {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
}

/* When chatbot is open, hide conflicting floats */
body.chatbot-open .whatsapp-float,
body.chatbot-open #chatbot-toggle {
    display: none !important;
}