/* Define CSS Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --background-color: #f5f5f5;
    --font-color: #333;
    --highlight-color: #ffcc00;
    --navbar-bg: #333;
    --box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* Navigation Bar Styling */
.navbar {
    background-color: var(--navbar-bg);
    padding: 10px 20px;
    width: 100vw; /* Span the entire viewport width */
    position: relative; /* Ensure the element stays fixed to the full width */
    left: 50%; /* Center alignment fix */
    transform: translateX(-50%);
    box-sizing: border-box;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar-menu li {
    margin: 0 15px;
}

.navbar-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--highlight-color);
}


/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--font-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #e8f5e9, #f0f4c3);
    background-image: url('assets/images/leafy-background.png');
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Banner Styling */
.banner {
    width: 100%;
    text-align: center;
    max-width: 100vw;
    background-color: #f0f0f0;
    padding: 50px;
    box-shadow: var(--box-shadow);
    box-sizing: border-box;
}

.banner h1 {
    font-size: 3em;
    color: #002855;
    margin: 0;
}

/* Content Box Styling */
.content-box {
    background-color: rgba(255, 255, 255, 0.9); /* White backing with some transparency */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
}

/* Content Wrapper Styling */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Content Sections (Grid Layout) Styling */
.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 40px; /* Space between boxes */
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 40px; /* Gap between "Rate Our Practice" and the row below */
}

@media (max-width: 992px) {
    .content-sections {
        grid-template-columns: 1fr; /* Stacks all boxes vertically */
        gap: 30px; /* Space between boxes when in single column layout */
        margin-top: 30px; /* Adjusted gap for smaller screens */
    }
}

@media (max-width: 768px) {
    .content-sections {
        grid-template-columns: 1fr; /* Ensures a single column on smaller devices */
        gap: 20px;
        margin-top: 20px; /* Adjusted gap for smaller screens */
        padding: 0 10px; /* Reduce padding to prevent overflow */
    }

    .banner {
        padding: 20px;
    }

    .navbar-menu {
        flex-wrap: wrap;
    }
}


/* Rating Box Styling */
.rating-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 40px;
}

/* Box Section Styling */
.box-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Full Width Box */
.full-width {
    max-width: 100%;
}

/* Warning Banner Styling */
.warning-banner, .second-warning-banner, .third-warning-banner {
    position: absolute;
    left: 50px;
    right: 50px;
    width: calc(100% - 100px);
    padding: 20px;
    font-weight: bold;
    border: 1px solid #a94442;
    box-shadow: var(--box-shadow);
    z-index: 3;
    transition: opacity 0.5s ease;
    display: none;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.warning-banner {
    top: 150px;
    background-color: #ff6666;
    color: #a94442;
}

.second-warning-banner {
    top: 250px;
    background-color: #ffcc66;
    color: #a94442;
}

.third-warning-banner {
    top: 400px;
    background-color: #66ccff;
    color: #004466;
}

.warning-banner button, .second-warning-banner button, .third-warning-banner button {
    background-color: #a94442;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: var(--border-radius);
}

.warning-banner button:hover, .second-warning-banner button:hover, .third-warning-banner button:hover {
    background-color: #922b2b;
}

/* Backdrop Styling */
.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
    display: none;
}

/* Link Styling */
a.download-link {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s;
}

a.download-link:hover {
    background-color: var(--secondary-color);
}

.form-preview {
    width: 150px;
    height: auto;
}

/* Contact Form Input Styling */
#contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
}

#contact-form input, 
#contact-form textarea {
    width: 400px;  /* Set a consistent width for all input fields */
    max-width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#contact-form textarea {
    resize: vertical;  /* Allow vertical resizing only for the textarea */
}

#contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Disclaimer Styling */
.disclaimer-text {
    font-weight: bold;
    color: red; /* Emphasize the disclaimer in red */
    margin-top: 15px; /* Add some spacing for better readability */
}

/* Disclaimer Container Styling */
.disclaimer-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 0; /* Ensure no extra padding */
}

/* Checkbox Styling */
.disclaimer-container input[type="checkbox"] {
    margin: 0;
    margin-left: -175px; /* Adjust this to push closer to the left edge */
    margin-right: 8px; /* Controls spacing between checkbox and label */
}

/* Label Styling */
.disclaimer-container label {
    font-weight: bold;
    color: var(--font-color);
    margin: 0;
    margin-left: -175px;
}

/* Important Note Styling */
.important-note {
    font-size: 1.2em;
    font-weight: bold;
    color: #d32f2f;
}

/* Rating Box Styling */
.rating-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
}

/* Profile Box Styling */
.profile-box {
    display: flex;
    flex-direction: column; /* Changed to place image above text */
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.profile-box img {
    width: 200px; /* Increased image size */
    height: auto;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.profile-box img:hover {
    transform: scale(1.05);
}

.profile-box.larger-image img {
    width: 100%; /* Make image take up full width of the box */
    max-width: 600px; /* Set a maximum width to ensure it doesn't get too large */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 20px; /* Center the image and add space below */
    border-radius: var(--border-radius);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Close Button Styling */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: var(--font-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    width: 36px;
    height: 36px;
    line-height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Media Query Adjustment for Mobile */
@media (max-width: 768px) {
    .close-button {
        width: 32px;
        height: 32px;
        padding: 6px;
        font-size: 1em;
    }
}

/* Button Styling */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Star Styling */
.stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star {
    font-size: 2em;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s ease;
}

.star.selected,
.star.hovered {
    color: #ffcc00; /* Highlight color for stars */
}

/* Services Grid Styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: space-around;
}

/* Service Box Styling */
.service-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
    position: relative; /* Keep the positioning relative for any internal elements */
}

/* Service Box Pricing Styling */
.service-box .price-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding: 10px; /* Add some padding to improve appearance */
    border-radius: var(--border-radius);
    background-color: #f4d03f; /* Yellow background for the price box */
}

.service-box .price-label {
    font-size: 1em; /* Smaller size for "Price:" text */
    color: #002855;
    font-weight: bold;
    margin-right: 5px;
}

.service-box .price-value {
    font-size: 1.8em; /* Make the dollar amount larger */
    font-weight: bold;
    color: #002855;
}

/* FAQ Styling */
.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.question {
    font-weight: bold;
    font-size: 1.2em;
    color: #002855;
}

.answer {
    display: none;
    margin-top: 10px;
    color: #333;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.answer.visible {
    display: block;
    max-height: 500px; /* Arbitrary large value to allow enough space */
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    
    .profile-grid {
    grid-template-columns: 1fr;
    }
    .profile-box img {
        margin-bottom: 20px;
        align-self: center;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-box {
        max-width: 600px;
        margin-bottom: 20px;
    }

    .banner h1 {
        font-size: 2.5em;
    }

    button {
        width: 100%;
    }
    
    .content-sections {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .box-section {
        max-width: 600px;
        margin-bottom: 20px;
    }
    
}

/* Footer Styling */
footer {
    width: 100vw; /* Span the entire viewport width */
    background-color: var(--navbar-bg);
    color: white;
    padding: 20px 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* Ensure the element stays fixed to the full width */
    left: 50%; /* Center alignment fix */
    transform: translateX(-50%);
    box-sizing: border-box;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
   
    .profile-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .profile-box img {
        margin-bottom: 20px;
        align-self: center;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
     .content-sections {
        grid-template-columns: 1fr; /* Stack boxes vertically */
        gap: 20px;
    }

    .box-section {
        max-width: 600px; /* Ensure the box has a reasonable max-width */
        margin: 0 auto; /* Center align smaller boxes */
    }
    
    .banner h1 {
        font-size: 2.5em;
    }

    button {
        width: 100%;
    }
}
