﻿/* clientHome.css - Modern UI Redesign */

/* --- General & Base Styles --- */
:root {
    --primary-color: #00796B; /* Teal */
    --primary-dark: #004D40; /* Darker Teal */
    --accent-color: #FFC107; /* Amber/Gold for stars, etc. */
    --light-bg: #F8F9FA; /* Light Gray Background */
    --card-bg: #FFFFFF; /* White Card Background */
    --text-color: #343A40; /* Dark Gray Text */
    --light-text: #6C757D; /* Muted Text */
    --border-color: #E0E0E0; /* Light Gray Border */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft Shadow */
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15); /* Deeper Shadow on Hover */
    --border-radius: 0.75rem; /* Rounded Corners */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

::selection {
    background: var(--primary-color);
    color: white;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 600; /* Slightly bolder headings */
    margin-bottom: 1rem;
}

p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Section Padding & Anchors */
section {
    padding: 60px 0; /* Consistent vertical padding for sections */
}

#services, #contact-us, #info, #rajkot-map {
    padding-top: 100px; /* Adjust for fixed navbar, if any, for anchor links */
}

/* --- Utility Classes --- */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-dark-custom {
    color: var(--primary-dark) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: white;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 121, 107, 0.2); /* Shadow specific to primary button */
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px); /* Slight lift effect */
        box-shadow: 0 8px 20px rgba(0, 121, 107, 0.3);
    }

    .btn-primary:focus, .btn-primary:active {
        box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.5) !important;
    }


/* --- Welcome Banner --- */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3aafa9 100%); /* Gradient background */
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--border-radius);
    margin-top: 30px; /* Space from top */
    box-shadow: var(--shadow-light);
    overflow: hidden; /* For potential background patterns/animations */
    position: relative;
}

    .welcome-banner h1 {
        font-size: 3.2rem;
        margin-bottom: 0.8rem;
        color: white; /* Ensure heading is white */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .welcome-banner p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.9);
    }

    .welcome-banner .btn {
        background-color: var(--accent-color); /* Use accent color for banner button */
        border: none;
        color: var(--primary-dark);
        font-weight: bold;
        padding: 12px 28px;
        font-size: 1.1rem;
        box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    }

        .welcome-banner .btn:hover {
            background-color: #ffda6a; /* Lighter accent on hover */
            color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 193, 7, 0.5);
        }


/* --- Service Section --- */
.service_section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

    .service_section .heading_container h2 span {
        color: var(--primary-color);
    }

    .service_section .box {
        text-align: center;
        background: var(--card-bg);
        border-radius: var(--border-radius);
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: var(--shadow-light);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        height: 100%; /* Ensure boxes have equal height if used with d-flex */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .service_section .box:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

    .service_section .img-box {
        margin-bottom: 25px;
    }

        .service_section .img-box i {
            font-size: 50px; /* Larger icons */
            color: var(--primary-color);
            transition: transform 0.3s ease;
        }

    .service_section .box:hover .img-box i {
        transform: scale(1.1); /* Slight icon enlargement on hover */
    }

    .service_section h5 {
        font-size: 1.6rem;
        color: var(--primary-dark);
        margin-bottom: 15px;
    }

    .service_section p {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--light-text);
        flex-grow: 1; /* Allow paragraph to take available height */
    }

    .service_section a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        display: inline-block; /* For consistent spacing */
        margin-top: 15px;
    }

        .service_section a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

/* --- Rajkot Map Section --- */
.rajkot_map_section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

    .rajkot_map_section .heading_container h2 {
        color: var(--primary-dark);
    }

    .rajkot_map_section .heading_container p {
        color: var(--light-text);
        max-width: 700px;
        margin: 0 auto 30px auto;
    }

    .rajkot_map_section .map-box iframe {
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
        width: 100%;
        height: 450px; /* Slightly taller map */
    }


/* --- Contact Us Section --- */
.contact_us_section {
    background-color: var(--card-bg); /* White background for contact form area */
    padding: 80px 0;
}

.contact-us .heading_container h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.contact-us .heading_container p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Form Styling */
.contact-us form {
    background-color: var(--light-bg); /* Light background for the form itself */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.contact-us .form-group {
    margin-bottom: 1.5rem; /* Increased margin */
}

    .contact-us .form-group label {
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 0.5rem;
        display: block; /* Ensure label is on its own line */
    }

    .contact-us .form-group input,
    .contact-us .form-group textarea {
        border: 1px solid var(--border-color);
        border-radius: 0.5rem; /* Slightly more rounded inputs */
        padding: 0.85rem 1rem;
        font-size: 1rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .contact-us .form-group input:focus,
        .contact-us .form-group textarea:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25);
            outline: none;
        }

        .contact-us .form-group input::placeholder,
        .contact-us .form-group textarea::placeholder {
            color: var(--light-text);
            opacity: 0.7;
        }

.contact-us .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact Details Section */
.contact-details {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-top: 0; /* Adjust if placed next to form */
    border: 1px solid var(--border-color);
    height: 100%; /* To match form height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-details h3 {
        color: var(--primary-dark);
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .contact-details p {
        font-size: 1.05rem;
        color: var(--text-color);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .contact-details i {
        color: var(--primary-color);
        margin-right: 12px;
        font-size: 1.4rem; /* Larger icons */
    }

/* Adjust the columns for responsiveness (using Bootstrap grid instead of custom flex) */
/* The layout for contact section will typically be col-md-6, so standard bootstrap rows and columns should work well */


/* --- Info Section (About Us) --- */
.info_section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

    .info_section .heading_container h2 {
        color: var(--primary-dark);
    }

.info-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px; /* Space between boxes */
    height: 100%; /* Ensures equal height for flex containers */
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .info-box:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .info-box h3 {
        margin-bottom: 15px;
        color: var(--primary-dark);
        font-size: 1.8rem;
    }

    .info-box p {
        font-size: 0.95rem;
        color: var(--light-text);
        line-height: 1.7;
    }

    .info-box i {
        color: var(--primary-color);
        margin-right: 10px;
        font-size: 1.3rem;
    }

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px; /* Space between social icons */
}

    .social-links a {
        font-size: 2.2rem; /* Larger social icons */
        color: var(--primary-color);
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .social-links a:hover {
            color: var(--primary-dark);
            transform: translateY(-3px) scale(1.1);
        }

/* --- Rating Stars --- */
.stars {
    display: inline-flex; /* Use flexbox for stars */
    font-size: 3rem; /* Make stars large */
    cursor: pointer;
    gap: 5px; /* Small gap between stars */
}

    .stars .star {
        color: var(--border-color); /* Default light gray */
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .stars .star.checked {
            color: var(--accent-color); /* Gold color when checked */
        }

        .stars .star:hover {
            color: var(--accent-color); /* Hover effect */
            transform: scale(1.1);
        }

    /* Ensure the hover effect applies to stars up to the current one */
    .stars:hover .star {
        color: var(--accent-color);
    }

    .stars .star:hover ~ .star {
        color: var(--border-color); /* Reset subsequent stars on hover */
    }


/* --- Alert Box --- */
#alertContainer {
    top: 90px; /* Adjusted to be slightly lower than default Bootstrap top-0 */
    right: 20px;
    left: auto; /* Ensure it stays right-aligned on smaller screens */
    max-width: 400px;
    transition: opacity 0.3s ease;
}

#alertMessage {
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    box-shadow: var(--shadow-light);
    border: none; /* Remove default border */
}

#alertIcon {
    font-size: 1.8rem; /* Larger icon */
    margin-right: 1rem;
    line-height: 1; /* Align vertically */
}

.alert-success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
}

.btn-close {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .btn-close:hover {
        opacity: 1;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) { /* Medium devices and down */
    .welcome-banner h1 {
        font-size: 2.5rem;
    }

    .welcome-banner p {
        font-size: 1.1rem;
    }

    .service_section .box,
    .info-box,
    .contact-us form,
    .contact-details {
        margin-bottom: 25px; /* Adjust spacing */
    }

    .service_section h5 {
        font-size: 1.4rem;
    }

    .contact-us .heading_container h2 {
        font-size: 2rem;
    }

    .contact-details h3 {
        font-size: 1.7rem;
    }

    .stars {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) { /* Small devices and down */
    section {
        padding: 40px 0;
    }

    #services, #contact-us, #info, #rajkot-map {
        padding-top: 80px; /* Adjust for smaller screens if navbar collapses */
    }

    .welcome-banner {
        padding: 50px 15px;
    }

        .welcome-banner h1 {
            font-size: 2rem;
        }

        .welcome-banner p {
            font-size: 1rem;
        }

    .service_section .box {
        padding: 20px;
    }

    .service_section .img-box i {
        font-size: 40px;
    }

    .service_section h5 {
        font-size: 1.2rem;
    }

    .rajkot_map_section .map-box iframe {
        height: 300px;
    }

    .contact-us .heading_container h2 {
        font-size: 1.8rem;
    }

    .contact-details,
    .contact-us form {
        padding: 25px;
        margin-top: 20px; /* Ensure space when stacked vertically */
    }

    .stars {
        font-size: 2rem;
    }

    .social-links a {
        font-size: 1.8rem;
    }

    #alertContainer {
        max-width: 90%; /* Allow alert to span more width */
        right: 5%;
        left: 5%;
        margin-top: 70px;
    }
}

@media (max-width: 575.98px) { /* Extra small devices */
    .stars {
        font-size: 1.8rem;
    }
}

/* Spinner for button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    vertical-align: -0.125em; /* Adjust alignment */
    margin-right: 0.5rem; /* Space between spinner and text */
}
