/* 
   Residence Decorating - Main Stylesheet
   Professional Painting & Decorating Services
*/

/* CSS Variables */
:root {
    --primary-blue: #0B2545;
    --primary-blue-light: #1a3d6e;
    --secondary-blue: #3b82f6;
    --accent-amber: #F59E0B;
    --accent-amber-dark: #d97706;
    --neutral-bg: #F3F4F6;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--neutral-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--secondary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-amber);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-amber-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

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

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-blue);
}

.logo i {
    font-size: 26px;
    color: var(--secondary-blue);
}

.logo span {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 14px;
}

.nav-links a:hover {
    background: var(--neutral-bg);
    color: var(--primary-blue);
}

.nav-links a.active {
    background: rgba(11, 37, 69, 0.08);
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--accent-amber) !important;
    color: var(--white) !important;
    margin-left: 10px;
}

.nav-cta:hover {
    background: var(--accent-amber-dark) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hero Section - Homepage - Fullscreen Video Background */
.hero-homepage {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-blue);
}

/* Fullscreen Video Background */
.hero-video-fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* Video Overlay for readability */
.hero-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 37, 69, 0.65);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Homepage Only - Hide Navbar and Footer */
body.homepage-only .navbar,
body.homepage-only .footer {
    display: none !important;
}

body.homepage-only .hero-homepage {
    height: 100vh;
    min-height: 100vh;
}

/* Inner Pages Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--neutral-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-blue);
}

.service-card.selected {
    border-color: var(--secondary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.service-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--success);
    font-size: 14px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-blue);
}

.checkbox-group label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

/* Testimonials */
.testimonials {
    background: var(--neutral-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
}

.testimonial-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.testimonial-info span {
    color: var(--text-light);
    font-size: 14px;
}

.testimonial-stars {
    color: var(--accent-amber);
    margin-bottom: 15px;
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
}

/* Blog */
.blog {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--neutral-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-link {
    color: var(--secondary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.blog-link:hover {
    gap: 12px;
}

/* Contact */
.contact {
    background: var(--primary-blue);
    color: var(--white);
}

.contact .section-title h2 {
    color: var(--white);
}

.contact .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.contact-item {
    text-align: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 36px;
    color: var(--accent-amber);
    margin-bottom: 18px;
}

.contact-item h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    opacity: 0.9;
    font-size: 15px;
}

/* Contact Form */
.contact-form-section {
    background: var(--neutral-bg);
}

.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neutral-bg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--secondary-blue);
    background: rgba(59, 130, 246, 0.03);
}

.file-upload i {
    font-size: 40px;
    color: var(--secondary-blue);
    margin-bottom: 12px;
}

.file-upload p {
    color: var(--text-light);
}

/* Quote Form */
.quote-section {
    background: var(--neutral-bg);
}

.quote-form {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.quote-form h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neutral-bg);
}

.quote-form h3 i {
    margin-right: 10px;
    color: var(--secondary-blue);
}

.quote-preview {
    background: var(--neutral-bg);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    display: none;
}

.quote-preview.active {
    display: block;
}

.quote-preview h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-preview h4 i {
    color: var(--success);
}

.quote-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.quote-line:last-of-type {
    border-bottom: none;
}

.quote-total {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-blue);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
}

.gdpr-notice {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.5;
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid #e5e7eb;
    padding: 30px 0;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 25px 25px;
    border-bottom: 1px solid #e5e7eb);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: var(--text-light);
    font-size: 13px;
}

.sidebar-menu {
    padding: 0 15px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-menu a:hover {
    background: var(--neutral-bg);
    color: var(--primary-blue);
}

.sidebar-menu a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-blue);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: var(--neutral-bg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    font-size: 28px;
}

.dashboard-header .btn {
    margin-left: 10px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-card i {
    font-size: 28px;
    color: var(--secondary-blue);
    margin-bottom: 15px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.dashboard-panel {
    background: var(--white);
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.dashboard-panel h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.dashboard-panel h3 i {
    color: var(--secondary-blue);
}

/* Job List */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--neutral-bg);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 15px;
    transition: var(--transition-fast);
}

.job-item:hover {
    box-shadow: var(--shadow-sm);
}

.job-info h4 {
    margin-bottom: 6px;
    font-size: 16px;
}

.job-info p {
    color: var(--text-light);
    font-size: 14px;
}

.job-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.status-confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.status-progress {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Invoice List */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--neutral-bg);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.invoice-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.invoice-details p {
    color: var(--text-light);
    font-size: 14px;
}

.invoice-amount {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-blue);
}

.invoice-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

/* Chat Section */
.chat-container {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--neutral-bg);
}

.chat-message {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 16px;
}

.chat-message.sent {
    align-self: flex-end;
    background: var(--secondary-blue);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    align-self: flex-start;
    background: var(--white);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-message p {
    line-height: 1.5;
}

.chat-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: var(--white);
    border-top: 1px solid #e5e7eb);
}

.chat-input input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.chat-input .btn {
    padding: 14px 20px;
}

@media (max-width: 768px) {
    .chat-container {
        border-radius: 12px;
    }
    
    .chat-messages {
        height: 280px;
        padding: 15px;
    }
    
    .chat-message {
        max-width: 85%;
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .chat-input {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .chat-input input {
        width: 100%;
        padding: 12px 15px;
    }
    
    .chat-input .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Payment Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.payment-gateways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.payment-gateway {
    padding: 25px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-gateway:hover,
.payment-gateway.selected {
    border-color: var(--secondary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.payment-gateway i {
    font-size: 36px;
    margin-bottom: 12px;
}

.payment-gateway.stripe i {
    color: #635bff;
}

.payment-gateway.paypal i {
    color: #003087;
}

.payment-gateway p {
    font-weight: 600;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0;
}

/* Dashboard Footer - Constrained to main content area */
.dashboard-footer {
    margin-left: 280px;
    padding-top: 0;
    background: var(--primary-blue);
    color: var(--white);
    width: calc(100% - 280px);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.dashboard-footer .marquee-container {
    border-radius: 0;
}

.dashboard-footer .container {
    max-width: 100%;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-footer .footer-bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Fix footer for long content - prevent overlap */
.dashboard-layout + .dashboard-footer,
body .dashboard-footer {
    clear: both;
    position: relative;
    z-index: 1;
}

.dashboard-layout {
    position: relative;
    z-index: 2;
}

/* Marquee */
.marquee-container {
    background: var(--accent-amber);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 35s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.85;
    font-size: 14px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent-amber);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-amber);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom a {
    color: var(--accent-amber);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 22px 20px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.12);
    z-index: 1500;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--secondary-blue);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 25px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: toastSlide 0.35s ease;
    border-left: 4px solid var(--secondary-blue);
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 100px 20px 40px;
}

.auth-container {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    padding: 35px 35px 25px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.auth-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab:hover {
    background: var(--neutral-bg);
}

.auth-tab.active {
    color: var(--secondary-blue);
    border-bottom-color: var(--secondary-blue);
}

.auth-body {
    padding: 30px 35px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-footer {
    text-align: center;
    padding: 20px 35px 35px;
    background: var(--neutral-bg);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--secondary-blue);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Blog Modal */
.blog-modal {
    max-width: 800px;
}

.blog-modal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
}

.blog-modal .modal-body h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 22px;
}

.blog-modal .modal-body h3:first-child {
    margin-top: 0;
}

.blog-modal .modal-body p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-modal .modal-body ul {
    margin: 15px 0 20px 25px;
    list-style: disc;
}

.blog-modal .modal-body ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.gap-15 {
    gap: 15px;
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-sidebar-toggle:hover {
    background: var(--neutral-bg);
}

.mobile-sidebar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* When sidebar is open, overlay should not block clicks on sidebar area */
body.sidebar-open .sidebar-overlay {
    pointer-events: none;
}

/* Hide duplicate mobile toggle on dashboard pages - use sidebar toggle instead */
.dashboard-layout .mobile-toggle {
    display: none !important;
}

.dashboard-layout .nav-links {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 260px;
    }
    
    .dashboard-main {
        margin-left: 260px;
    }
    
    .dashboard-footer {
        margin-left: 260px;
    }
}

@media (max-width: 768px) {
    /* Global overflow prevention */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    /* Mobile sidebar toggle button */
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        display: block;
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .dashboard-footer {
        margin-left: 0;
        background: var(--primary-blue);
        padding: 0 15px 20px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .dashboard-footer .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .dashboard-footer .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 25px 0 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .dashboard-footer .footer-left,
    .dashboard-footer .footer-center,
    .dashboard-footer .footer-right {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .dashboard-footer .footer-left p {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .dashboard-footer .footer-credit {
        margin-top: 8px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .dashboard-footer .footer-credit a {
        color: var(--secondary-blue);
    }
    
    .dashboard-footer .security-badges {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .dashboard-footer .security-badge {
        font-size: 10px;
        padding: 5px 10px;
        background: rgba(16, 185, 129, 0.15);
        color: #047857;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    
    .dashboard-footer .payment-badges {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .dashboard-footer .payment-badge {
        font-size: 10px;
        padding: 5px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    
    .dashboard-footer .payment-badge.stripe {
        background: rgba(99, 91, 255, 0.15);
        color: #635BFF;
    }
    
    .dashboard-footer .payment-badge.paypal {
        background: rgba(0, 48, 135, 0.15);
        color: #003087;
    }
    
    .dashboard-footer .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 15px 0 10px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        width: 100%;
    }
    
    .dashboard-footer .footer-legal a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 11px;
    }
    
    .dashboard-footer .footer-legal a:hover {
        color: white;
    }
    
    .dashboard-footer .footer-legal span {
        color: rgba(255, 255, 255, 0.5);
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .youtube-video-container {
        padding: 0 15px;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        flex-direction: column;
        padding-top: 70px;
    }

    /* Mobile sidebar - slide-out drawer */
    .dashboard-sidebar-container {
        position: fixed;
        left: 0;
        top: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    
    .dashboard-sidebar-container.active {
        transform: translateX(0);
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: 100%;
        background: var(--white);
        border-right: none;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1001;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    body.sidebar-open .dashboard-sidebar {
        overflow-y: auto;
    }
    
    /* Sidebar header on mobile */
    .dashboard-sidebar .sidebar-header {
        padding: 25px 20px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
        color: white;
    }
    
    .dashboard-sidebar .sidebar-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
    }
    
    .dashboard-sidebar .sidebar-header h3 i {
        color: var(--accent-amber);
    }
    
    .dashboard-sidebar .sidebar-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
    }
    
    /* Sidebar close button on mobile */
    .sidebar-close-btn {
        display: none;
        position: absolute;
        top: 18px;
        right: 18px;
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
        transition: all 0.2s ease;
        z-index: 1002;
    }
    
    .sidebar-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.1);
    }
    
    @media (max-width: 768px) {
        .sidebar-close-btn {
            display: flex;
        }
    }

    /* Sidebar menu styles on mobile */
    .sidebar-menu {
        display: block !important;
        overflow-y: auto;
        height: calc(100% - 90px);
        padding: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-menu li {
        margin-bottom: 5px;
    }

    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 10px;
        color: var(--text-light);
        font-weight: 500;
        transition: var(--transition-fast);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-menu a:hover {
        background: var(--neutral-bg);
        color: var(--primary-blue);
    }

    .sidebar-menu a.active {
        background: linear-gradient(135deg, var(--secondary-blue) 0%, #2563eb 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .sidebar-menu a.active i {
        color: white;
    }

    .sidebar-menu a i {
        width: 22px;
        text-align: center;
        flex-shrink: 0;
        font-size: 18px;
        color: var(--secondary-blue);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header h2 {
        font-size: 24px;
    }

    .dashboard-header .btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .contact-form,
    .quote-form {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .marquee-item {
        padding: 0 25px;
        font-size: 13px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 10px;
    }

    .payment-gateways {
        grid-template-columns: 1fr;
    }

    .job-item,
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-actions,
    .invoice-item > div:last-child {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 16px;
    }

    .auth-container {
        border-radius: 16px;
    }

    .auth-body {
        padding: 25px;
    }

    .auth-tabs {
        font-size: 14px;
    }

    .sidebar-header {
        padding: 0 20px 20px;
    }

    .stat-card .stat-value {
        font-size: 26px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cookie-banner,
    .toast-container,
    .btn,
    .job-actions,
    .invoice-actions {
        display: none !important;
    }

    .dashboard-layout {
        display: block;
        padding-top: 0;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        margin: 0;
    }
}
