/* 
   GiGi's Housecleaning Services - Main Stylesheet
   Author: Eduardo Flores
   Version: 1.0
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #ff7043;
    --primary-light: #ffa270;
    --primary-dark: #c63f17;
    --secondary-color: #42a5f5;
    --secondary-light: #80d6ff;
    --secondary-dark: #0077c2;
    --text-color: #333333;
    --text-light: #6e6e6e;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --white: #ffffff;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    text-transform: none;
    transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(255, 112, 67, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 112, 67, 0.4);
}

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--bg-dark);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 55px;
    filter: none;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
    margin: 0 0.2rem;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-light);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link:hover:after {
    width: 80%;
}

.book-now-btn {
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-now-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-right: 2rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-section h1 .highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero-section h1 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 112, 67, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-badge {
    background-color: rgba(255, 112, 67, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-badge i {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-main-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-main-image {
    transform: scale(1.03);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(255, 112, 67, 0.2), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* ===== Services Section ===== */
.services-section {
    background-color: var(--white);
}

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--box-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-book-btn {
    margin-top: 2rem;
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--bg-light);
}

.about-content {
    padding: 2rem;
}

.about-content h2 {
    color: var(--primary-dark);
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: var(--success);
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author .name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author .location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== FAQ Section ===== */
.faq-section {
    background-color: var(--bg-light);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    font-weight: 600;
    padding: 1.5rem;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--white);
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff7043'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--white);
    font-size: 1.2rem;
    border-radius: 50%;
}

.contact-item p {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer p, .footer a {
    color: #adb5bd;
}

.footer a:hover {
    color: var(--white);
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ===== Booking Modal ===== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--white);
}

.modal-body {
    padding: 2rem;
}

/* Booking Steps */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.steps-indicator:after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #e0e0e0;
    width: 80%;
    top: 50%;
    left: 10%;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: var(--white);
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-step h4 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Property cleanliness */
.cleanliness-options {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cleanliness-option {
    flex: 1;
    cursor: pointer;
}

.cleanliness-option input {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cleanliness-option input:checked + .option-content {
    border-color: var(--primary-color);
    background-color: rgba(255, 112, 67, 0.1);
}

.option-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.option-content i.fa-smile {
    color: var(--success);
}

.option-content i.fa-meh {
    color: var(--warning);
}

.option-content i.fa-frown {
    color: var(--danger);
}

/* Extra services */
.extra-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Price estimate */
.price-estimate {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: center;
}

.price-estimate h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

#estimatedPrice {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-disclaimer {
    margin-bottom: 0;
    font-size: 0.8rem;
    font-style: italic;
}

/* Price savings styles */
#priceSavings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.one-time-price {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.recurring-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.savings-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.savings-text .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}

/* Schedule notice */
.schedule-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: rgba(66, 165, 245, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.schedule-notice i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.schedule-notice p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Confirmation step */
.confirmation-content {
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

/* Required option styling */
.required-option {
    position: relative;
}

.required-option::after {
    content: '(Required with Move Out)';
    position: absolute;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-style: italic;
    right: 0;
    top: 0;
}

/* Style for disabled select in required option */
.required-option select:disabled {
    background-color: rgba(255, 112, 67, 0.1);
    border-color: var(--primary-color);
    opacity: 0.8;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .about-content {
        padding: 1rem 0;
        margin-top: 2rem;
    }
    
    .service-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .extra-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .cleanliness-options {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-links, .footer-social {
        margin-top: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .steps-indicator:after {
        display: none;
    }
}

.navbar-toggler {
    border: none;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    padding-top: 0.5rem;
}

@media (max-width: 991px) {
    .nav-link {
        padding: 0.7rem 1rem;
        border-radius: 5px;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:after {
        display: none;
    }
    
    .book-now-btn {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Loading Indicator Styles */
#loadingIndicator {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loadingIndicator.active {
    display: flex !important;
}

/* Ensure modals stay on top of each other */
.modal {
    z-index: 1050;
}

.modal-backdrop.show {
    opacity: 0.5;
    z-index: 1040;
}
