/* ============================================
   INDEX.PHP STYLES - Stacked Header Layout
   Hamburger top line, Title middle, Nav bottom
   Watermark logo centered in background
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
}

/* HEADER - STACKED LAYOUT */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    background: #FF8C00;
    padding: 15px 25px;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 100;
}

/* WATERMARK LOGO - Centered behind everything */
header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

/* All header content above watermark */
.menu-left,
.menu-center,
.menu-right {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Line 1 - Hamburger (centered) */
.menu-left {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hamburger-btn {
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 24px;
    color: #FF8C00;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: #00a651;
    color: white;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    min-width: 280px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    z-index: 9999999 !important;
    display: none !important;
    overflow: hidden !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.dropdown-menu.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu a {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a i {
    width: 24px;
    color: #FF8C00;
}

.dropdown-menu a:hover {
    background: #FFF3E0;
    color: #FF8C00;
}

.menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

/* Line 2 - Title (centered) */
.menu-center {
    text-align: center;
    margin-bottom: 10px;
}

.menu-center h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
    letter-spacing: 1px;
}

/* Line 3 - Navigation (centered) */
.menu-right {
    position: relative !important;
    z-index: 1 !important;
}

.menu-right nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.menu-right nav a {
    position: relative !important;
    z-index: 1 !important;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    background: white;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu-right nav a:hover {
    background: #00a651;
    color: white !important;
    transform: translateY(-2px);
}

/* Login Status */
.login-status {
    background: #e8f5e9;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 12px;
    font-size: 11px;
}

/* SERVICE LINK BUTTON */
.service-link {
    display: inline-block !important;
    background: #FF8C00;
    color: white !important;
    padding: 8px 20px;
    border-radius: 40px;
    margin-top: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: #00a651;
    transform: translateY(-2px);
}

/* PAYMENT ICONS */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.payment-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.payment-icons a:hover {
    transform: translateY(-4px);
}

.payment-icons a.booking-btn { background: #FF8C00; color: white; }
.payment-icons a.quote-btn { background: #6f42c1; color: white; }
.payment-icons a.voucher-btn { background: #fdcb6e; color: #2d3436; }
.payment-icons a.review-btn { background: #e84393; color: white; }
.payment-icons a.track-btn { background: #0984e3; color: white; }
.payment-icons a.dashboard-btn { background: #17a2b8; color: white; }
.payment-icons a.id-check { background: #6c5ce7; color: white; }
.payment-icons a.contact-btn { background: #00cec9; color: white; }
.payment-icons a.sitemap-btn { background: #00a651; color: white; }
.payment-icons a.terms-btn { background: #6c5ce7; color: white; }
.payment-icons a.profile-icon-btn { background: #a29bfe; color: white; }
.payment-icons a.logout-icon-btn { background: #e17055; color: white; }
.payment-icons a.login-icon-btn { background: #00b894; color: white; }
.payment-icons a.register-icon-btn { background: #0984e3; color: white; }
.payment-icons a.admin-dash-btn { background: #2d3436; color: white; }
.payment-icons a.approve-btn { background: #00a651; color: white; }
.payment-icons a.users-btn { background: #0984e3; color: white; }
.payment-icons a.contract-btn { background: #6c5ce7; color: white; }
.payment-icons a.invoice-btn { background: #e84393; color: white; }
.payment-icons a.payment-manage-btn { background: #fdcb6e; color: #2d3436; }

/* QUICK LINKS GRID */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-link-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.quick-link-card h3 {
    color: #FF8C00;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF8C00;
    display: inline-block;
}

/* REVIEWS SECTION */
.reviews-section-compact {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.reviews-section-compact h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reviews-slider-compact {
    position: relative;
    overflow: hidden;
}

.reviews-container-compact {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
}

.review-card-compact {
    min-width: 270px;
    flex: 0 0 270px;
    border-radius: 16px;
    padding: 15px;
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-card-compact:hover {
    transform: translateY(-5px);
}

.review-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar-compact {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.review-stars-compact {
    margin: 5px 0;
}

.review-stars-compact i {
    margin-right: 2px;
    font-size: 11px;
}

.review-comment-compact {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-date-compact {
    font-size: 10px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
    margin-top: 8px;
}

.review-trader-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.slider-controls-compact {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slider-btn-compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    color: #FF8C00;
}

.slider-btn-compact:hover {
    background: #FF8C00;
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.slider-dot.active {
    background: #FF8C00;
    width: 20px;
    border-radius: 10px;
}

.average-stars i {
    margin-right: 2px;
}

.visitor-circle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: bold;
}

/* FEATURED BOXES - SMALLER HEIGHT */
.featured {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 30px;
}

.featured-box {
    flex: 1 1 280px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,140,0,0.2);
    cursor: pointer;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.featured-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
    border-color: #FF8C00;
}

.slideshow-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.service-slideshow-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.slideshow-image-box {
    width: 100% !important;
    height: 150px !important;
    object-fit: contain !important;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 10px;
}

.slideshow-title {
    font-size: 16px;
    font-weight: bold;
    color: #FF8C00;
    margin: 8px 0;
}

.slideshow-content p {
    font-size: 12px;
    color: #555;
    margin: 5px 0;
    line-height: 1.3;
    padding: 0 5px;
}

.service-nav-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.service-nav-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.service-nav-dots .dot.active {
    background: #FF8C00;
    width: 20px;
    border-radius: 10px;
}

/* Voucher box specific */
#voucherSlideshowBox .slideshow-content {
    justify-content: space-between;
}

#voucherSlideshowInner {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#voucherSlideshowInner > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ABOUT US */
.about-us {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: 24px;
    padding: 35px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.about-us h2 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-us h2 i {
    color: #007bff;
    margin-right: 10px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.why-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border-top: 3px solid #28a745;
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-item i {
    font-size: 28px;
    color: #28a745;
    margin-bottom: 8px;
}

.why-item h4 {
    font-size: 13px;
    margin-bottom: 3px;
    color: #1a1a2e;
}

.why-item p {
    font-size: 11px;
    color: #666;
}

/* FAQ */
.faq-info-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.faq-info-box h3 {
    color: #FF8C00;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-link i {
    font-size: 20px;
}

.faq-link .link-title {
    font-weight: bold;
    font-size: 14px;
    color: #1a1a2e;
}

.faq-link .link-desc {
    font-size: 10px;
    color: #666;
}

.faq-link.sitemap i {
    color: #FF8C00;
}

.faq-link.info i {
    color: #007bff;
}

.id-check-badge {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.id-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d4a);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.id-check-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-us-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.contact-us-section h3 {
    color: #FF8C00;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 10px 0;
}

.contact-card {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: none;
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    border: 1px solid rgba(255,140,0,0.15);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: #FF8C00;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 18px;
    margin: 12px 0 8px;
    font-weight: 700;
    color: #1a1a2e;
}

.contact-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.contact-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card.whatsapp .contact-icon { color: #25D366; }
.contact-card.email .contact-icon { color: #EA4335; }
.contact-card.phone .contact-icon { color: #007bff; }

/* BOOKING CARDS */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.booking-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}

.booking-card.handyman,
.booking-card.emergency {
    min-height: 520px;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.booking-card.handyman {
    border-top: 4px solid #FF8C00;
}

.booking-card.emergency {
    border-top: 4px solid #dc3545;
}

.booking-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.booking-card.handyman h2 {
    color: #FF8C00;
}

.booking-card.emergency h2 {
    color: #dc3545;
}

.calendar-preview {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
}

.nav-btn {
    background: #FF8C00;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #e07c00;
    transform: translateY(-2px);
}

.week-range {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    justify-content: center;
}

.calendar-preview-day {
    text-align: center;
    padding: 10px 5px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e0e0e0;
    min-width: 55px;
}

.calendar-preview-day.available {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.calendar-preview-day.available:hover {
    background: #FF8C00;
    color: white;
    transform: scale(1.05);
    cursor: pointer;
}

.calendar-preview-day.booked {
    background: #ffccbc;
    color: #bf360c;
    cursor: not-allowed;
}

.calendar-preview-day.past {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}

.calendar-preview-day.weekend {
    background: #fff3cd;
    border-color: #ffc107;
}

.calendar-preview-day .day-name {
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 3px;
}

.calendar-preview-day .day-date {
    font-size: 16px;
    font-weight: bold;
}

.deposit-info-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
}

.deposit-amount {
    font-size: 24px;
    font-weight: bold;
}

.deposit-amount.handyman {
    color: #FF8C00;
}

.deposit-amount.emergency {
    color: #dc3545;
}

.deposit-note {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.book-now-btn {
    display: block;
    text-align: center;
    background: #FF8C00;
    color: white;
    padding: 14px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
}

.book-now-btn.emergency {
    background: #dc3545;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.login-required {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    border-radius: 16px;
    margin-top: 15px;
    font-size: 13px;
}

.login-required a {
    color: #FF8C00;
    font-weight: bold;
}

/* PROJECT GALLERY */
.project-gallery {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.project-gallery h3 {
    color: #FF8C00;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.gallery-btn {
    background: #FF8C00;
    color: white;
    padding: 10px 25px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-btn:hover {
    background: #00a651;
    transform: translateY(-2px);
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    overflow-y: auto;
    padding: 20px;
}

.gallery-modal.show {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #FF8C00;
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.gallery-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    padding: 10px;
    background: #FF8C00;
    color: white;
    text-align: center;
    font-size: 12px;
}

.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 30000;
    justify-content: center;
    align-items: center;
}

.image-preview-modal.show {
    display: flex;
}

.image-preview-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

/* CHAT WINDOW */
.bottom-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 22px;
    text-decoration: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220,53,69,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220,53,69,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); }
}

.chat-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #FF8C00;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #e0e0e0;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: #FF8C00;
    color: white;
    padding: 12px 15px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    font-size: 13px;
}

.message {
    margin-bottom: 12px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.message.user .message-content {
    background: #FF8C00;
    color: white;
}

.message.bot .message-content {
    background: #e9ecef;
    color: #333;
}

.chat-input-area {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.chat-input-area button {
    background: #FF8C00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* ID CARD MODALS */
.employee-modal, .employee-id-card {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 50000;
    justify-content: center;
    align-items: center;
}

.employee-modal.show, .employee-id-card.show {
    display: flex;
}

.employee-modal-content, .employee-id-card-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
}

.employee-modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.employee-modal-content button {
    padding: 12px 20px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.employee-error {
    color: red;
    margin-top: 10px;
}

/* FOOTER */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #FF8C00, #00a651);
    color: #fff;
    padding: 15px 25px;
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
    font-size: 14px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #FFD966;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    z-index: 99999;
    font-family: Arial, sans-serif;
    font-size: 13px;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.cookie-btn.accept {
    background: #28a745;
    color: white;
}

.cookie-btn.reject {
    background: #dc3545;
    color: white;
}

/* ============================================
   MOBILE RESPONSIVE - ALL BOXES FIXED
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 10px 12px 0 12px !important;
        overflow-x: hidden !important;
    }
    
    /* Featured boxes - smaller on mobile */
    .featured {
        flex-direction: column;
        gap: 20px;
    }
    
    .featured-box {
        width: 100%;
        min-width: auto;
        min-height: 380px;
    }
    
    .slideshow-image-box {
        height: 140px !important;
    }
    
    .slideshow-title {
        font-size: 16px;
    }
    
    .slideshow-content p {
        font-size: 11px;
        padding: 0 10px;
    }
    
    /* Booking cards */
    .booking-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
    
    .booking-card {
        width: 100%;
        padding: 20px 15px;
        margin: 0;
        min-height: 480px;
    }
    
    .booking-card.handyman,
    .booking-card.emergency {
        min-height: 480px;
    }
    
    .calendar-preview {
        flex: 1;
    }
    
    .calendar-week {
        gap: 4px;
        max-width: 100%;
    }
    
    .calendar-preview-day {
        padding: 5px 2px;
        min-width: 40px;
    }
    
    .calendar-preview-day .day-date {
        font-size: 12px;
    }
    
    .calendar-nav {
        gap: 10px;
    }
    
    .week-range {
        font-size: 11px;
    }
    
    .deposit-info-box {
        padding: 12px;
        margin: 12px 0;
    }
    
    .deposit-amount {
        font-size: 20px;
    }
    
    .deposit-note {
        font-size: 10px;
    }
    
    .book-now-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Reviews section */
    .reviews-section-compact {
        padding: 15px;
        margin: 20px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .reviews-section-compact h2 {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-slider-compact {
        width: 100%;
        overflow-x: hidden;
    }
    
    .reviews-container-compact {
        gap: 15px;
    }
    
    .review-card-compact {
        min-width: calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
        min-height: 280px;
    }
    
    /* Quick links */
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-link-card {
        width: 100%;
        padding: 15px;
    }
    
    .payment-icons {
        justify-content: center;
        gap: 12px;
    }
    
    .payment-icons a {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* About us */
    .about-us {
        padding: 20px;
        margin: 15px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .why-item {
        padding: 10px;
    }
    
    /* FAQ */
    .faq-info-box {
        margin: 15px 0;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .faq-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .faq-link {
        justify-content: center;
    }
    
    /* Contact section */
    .contact-us-section {
        margin: 15px 0;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .contact-card {
        flex: 1 1 auto;
        width: 100%;
        min-width: auto;
        padding: 18px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .contact-card a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 15px;
    }
    
    .contact-icon {
        font-size: 32px;
        margin-bottom: 0;
    }
    
    .contact-card h4 {
        margin: 0;
        flex: 1;
        font-size: 16px;
    }
    
    .contact-card p {
        font-size: 12px;
        color: #FF8C00;
        font-weight: 500;
    }
    
    /* Gallery */
    .gallery-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .project-gallery {
        margin: 15px 0;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        top: 70px !important;
        width: 90% !important;
        max-width: 320px !important;
    }
    
    /* Navigation */
    .menu-right nav {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-right nav a {
        width: 100%;
        text-align: center;
    }
    
    /* Chat window */
    .chat-window {
        width: 280px;
        height: 400px;
        right: 10px;
        bottom: 80px;
    }
    
    /* Footer */
    footer {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 15px 10px !important;
    }
    
    footer p {
        font-size: 11px !important;
        margin: 0 !important;
    }
    
    /* Center headings */
    .about-us h2,
    .faq-info-box h3,
    .contact-us-section h3,
    .project-gallery h3,
    .reviews-section-compact h2,
    .quick-link-card h3 {
        text-align: center !important;
    }
    
    /* Box sizing */
    .booking-card,
    .quick-link-card,
    .about-us,
    .faq-info-box,
    .contact-us-section,
    .project-gallery,
    .reviews-section-compact,
    .featured-box {
        box-sizing: border-box;
        overflow: hidden;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .booking-card.handyman,
    .booking-card.emergency {
        min-height: 560px;
    }
    
    .booking-card h2 {
        font-size: 1.3rem;
    }
    
    .calendar-preview-day {
        min-width: 45px;
    }
    
    .featured-box {
        min-height: 380px;
    }
}

/* Desktop large screens */
@media (min-width: 1025px) {
    .booking-grid {
        align-items: stretch;
    }
    
    .booking-card.handyman,
    .booking-card.emergency {
        min-height: 520px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .booking-card h2 {
        font-size: 1.2rem;
    }
    
    .booking-card.handyman,
    .booking-card.emergency {
        min-height: 520px;
    }
    
    .featured-box {
        min-height: 400px;
    }
    
    .deposit-amount {
        font-size: 18px;
    }
    
    .week-range {
        font-size: 10px;
    }
    
    .calendar-preview-day .day-name {
        font-size: 8px;
    }
    
    .calendar-preview-day .day-date {
        font-size: 10px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .slideshow-title {
        font-size: 15px;
    }
    
    .slideshow-content p {
        font-size: 10px;
    }
    
    .review-card-compact {
        min-height: 300px;
    }
    
    .review-comment-compact {
        font-size: 11px;
    }
    
    .payment-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}