/* General Reset & Basics */
html {
    font-size: 16px; /* baseline for scaling */
}

/* Global Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-size: calc(1.5rem + 1vw);
}

p, label {
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: #ff6600; /* Orange */
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #e65c00; /* Darker shade for hover effect */
    transform: translateY(-2px); /* Subtle upward animation */
}

/* Links & Navigation */
header a, nav a, .nav-menu a {
    color: #fff; /* Changed from #0066cc to white */
    text-decoration: none;
    font-weight: bold;
}

/* Starter Prices Section */
.starter-prices-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.starter-prices-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.starter-prices-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Package Card */
.package-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.package-card h3 {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 1.5rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.package-card .btn-primary {
    padding: 8px 15px;
    background: #ff6600;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.package-card .btn-primary:hover {
    background: #cc5200;
}

/* Call Us Card Specific Styling */
.call-us-card {
    background-color: #ffe5cc; /* Light orange background */
    border: 1px solid #ffcc99; /* Orange border */
}

.call-us-card h3 {
    color: #cc6600; /* Darker orange for emphasis */
}

.call-us-card .price {
    color: #cc6600;
}

/* Carpet Pricing and Calculator Container */
.carpet-calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* Carpet Pricing */
.carpet-pricing {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carpet-pricing .sub-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.carpet-pricing .carpet-pricing-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.carpet-pricing .carpet-pricing-list li {
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    color: #555;
}

.carpet-pricing .carpet-pricing-list li:last-child {
    border-bottom: none;
}

.carpet-pricing .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
}

/* Carpet Area Calculator */
.carpet-calculator {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carpet-calculator .sub-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.carpet-calculator form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carpet-calculator .form-group {
    display: flex;
    flex-direction: column;
}

.carpet-calculator label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.carpet-calculator input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.carpet-calculator button.btn-primary {
    padding: 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.carpet-calculator button.btn-primary:hover {
    background: #005bb5;
}

.calculator-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
    color: #0066cc;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .starter-prices-section {
        padding: 40px 10px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .package-card h3 {
        font-size: 1rem;
    }
    
    .package-card .price {
        font-size: 1.2rem;
    }
    
    .carpet-pricing, .carpet-calculator {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .package-card h3 {
        font-size: 0.9rem;
    }
    
    .package-card .price {
        font-size: 1rem;
    }
    
    .carpet-pricing .sub-section-title,
    .carpet-calculator .sub-section-title {
        font-size: 1.2rem;
    }
    
    .carpet-calculator {
        padding: 15px;
    }
}

/* Header, Nav, and Hero */
.main-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
}

.main-header .logo {
    font-size: 1.5rem;
    flex: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-menu a.btn-cta,
.nav-menu a.btn-primary {
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a.btn-primary {
    background: #ff6600;
    color: #fff;
    transition: background-color 0.3s ease;
}

.nav-menu a.btn-primary:hover {
    background: #cc5200;
}

.nav-menu a.btn-cta {
    background: #ff6600;
    color: white;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #ddd;
    min-width: 200px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu .dropdown-menu li {
    padding: 10px 20px;
    white-space: nowrap;
}

.nav-menu .dropdown-menu li a:hover {
    color: #0066cc;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Buttons & Inputs */
button,
input[type="submit"] {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background: #0066cc;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: #005bb5;
}

/* Button Outline Variant */
a.btn-outline {
    background: transparent;
    color: #ff6600;
    border: 2px solid #ff6600;
    padding: 10px 23px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a.btn-outline:hover {
    background: #ff6600;
    color: #fff;
}

/* Form Inputs */
input[type="text"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    background: url('images/hero-cleaning.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* Services Section Styling */
.services-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.services-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #0066cc;
}

/* Grid Layouts */
.package-grid,
.services-grid,
.services-list {
    display: grid;
    gap: 20px;
    margin: 20px auto;
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
}

.service-card,
.service-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 250px;
}

.service-card:hover,
.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-card img,
.service-item img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 8px;
}

.service-card h4,
.service-item h4 {
    font-size: 1.5rem;
    color: #0066cc;
    margin: 10px 0;
}

.service-card p,
.service-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.service-item label {
    display: block;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.service-item input[type="radio"],
.service-item input[type="checkbox"] {
    margin-right: 10px;
}

.service-item input[type="radio"]:checked + span,
.service-item input[type="checkbox"]:checked + span {
    color: #ff6600;
}

/* Buttons */
.review-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.review-btn:hover {
    background-color: #005bb5;
}

/* Forms */
.booking-form {
    background: #f9f9f9; 
    padding: 20px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    max-width: 500px; 
    margin: 20px auto;
}

.confirmation {
    background:#d4edda; 
    padding:20px; 
    border-radius:8px; 
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

/* Testimonials & Footer */
.testimonials-section {
    background: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.testimonial {
    font-size: 1.2rem;
    color: #333;
    margin: 20px auto;
    max-width: 700px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.main-footer a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #cc5200;
    text-decoration: underline;
}

.main-footer nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-footer nav ul li {
    margin: 0;
    padding: 0;
}

.main-footer nav ul li a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-footer nav ul li a:hover {
    color: #cc5200;
    text-decoration: underline;
}

/* Services Section Styling */
.services-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #0066cc;
}

/* Dropdown Menu */
.nav-menu .dropdown-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: block;
}

/* Tables in Admin/Cleaner Panels */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border: 2px solid #ccc;
    display: block;
    overflow-x: auto;
}

th, td {
    padding: 12px;
    font-size: 1rem;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: left;
}

tr > td:last-child,
tr > th:last-child {
    border-right: none;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Cell Content */
.cell-content {
    line-height: 1.2em;
    overflow: auto;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Specific Columns */
.col-hour .cell-content {
    width: 10ch;
    white-space: nowrap;
    overflow: hidden;
}

.col-clientName .cell-content {
    width: 10ch;
    white-space: normal;
    max-height: 4.8em; /* ~4 lines */
    overflow: auto;
}

.col-address .cell-content {
    width: 30ch;
    white-space: normal;
    max-height: 4.8em;
    overflow: auto;
}

.col-services .cell-content {
    width: 40ch;
    white-space: pre;
    max-height: 4.8em;
    overflow: auto;
}

.col-status .cell-content,
.col-cleaner .cell-content {
    white-space: normal;
    line-height: 1.2em;
    overflow: visible;
}

.col-phone .cell-content {
    width: 15ch;
    white-space: nowrap;
    overflow: hidden;
}

/* Step Wizard Styles */
.step-wizard .step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.step-wizard.step-1 .step.calendar-step,
.step-wizard.step-2 .step.times-step,
.step-wizard.step-3 .step.form-step {
    display: block;
    opacity: 1;
    position: relative;
}

/* Back Buttons */
.back-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

/* Time Slots */
.time-slot {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.time-slot.available {
    background-color: #28a745;
    color: #fff;
}

.time-slot.available:hover {
    background-color: #218838;
}

.time-slot.booked {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.calendar-grid .day-header,
.calendar-grid .disabled,
.calendar-grid .calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.calendar-grid .day-header {
    font-weight: bold;
    background-color: #f1f1f1;
}

.calendar-grid .calendar-day:hover {
    background-color: #e2e6ea;
    cursor: pointer;
}

.calendar-grid .today {
    border: 2px solid #007bff;
}

.calendar-grid .selected-date {
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
}

/* Responsive Calendar */
@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 30px);
        gap: 2px;
    }

    .calendar-grid .day-header,
    .calendar-grid .calendar-day,
    .calendar-grid .disabled {
        padding: 5px;
        font-size: 0.8rem;
    }

    .time-slot.available,
    .time-slot.booked {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .step-wizard {
        max-width: 100%;
    }

    .calendar-container, .times-step, .form-step {
        width: 100%;
    }
}
