/* 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: #f6f8f5; /* soft fallback tone */
    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/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 */
    align-items: stretch;            /* NEW: stretch cards to equal height */
}

@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;
    display: flex;               /* NEW: make card a flex column */
    flex-direction: column;      /* NEW */
}

/* Embedded form wrapper (Google Form) */
.iframe-wrap {
    flex: 1 1 auto;                    /* allow it to grow within card */
    max-height: 70vh;                  /* readable but not insane */
    min-height: 600px;                 /* desktop baseline height */
    overflow: auto;                    /* inner scrolling instead of page */
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Ensure iframe fills wrapper */
.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Taller / more forgiving on smaller screens */
@media (max-width: 768px) {
    .iframe-wrap {
        max-height: 80vh;
        min-height: 65vh;
    }
}

/* On very small screens, hide the inline Google Form so users
   only see the fullscreen overlay / new-tab version */
@media (max-width: 600px) {
  #contact-us .iframe-wrap {
    display: none;
  }
}


/* Fullscreen overlay for "Expand Form" */
.form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.form-overlay .iframe-max {
    width: min(1100px, 92vw);
    height: min(90vh, 1100px);
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.form-overlay .iframe-max iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-overlay .close-max {
    position: absolute;
    top: 20px;
    right: 24px;
    background: #ffffff;
    color: var(--font-color);        /* make the X visible (override white) */
    border: 0;
    border-radius: 50%;              /* true circle */
    width: 36px;                     /* fixed circle size */
    height: 36px;
    padding: 0;                      /* no extra padding */
    cursor: pointer;
    font-weight: 700;
    display: flex;                   /* center the X */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Make columns equal height and let inner content size cleanly */
.content-sections { 
  align-items: stretch;              /* stretch both cards to equal height */
}

/* Turn each card into a flex column so inner sections can grow */
.box-section {
  display: flex;
  flex-direction: column;
}

/* Wrapper for any tall embeds (Google Form) */
.iframe-wrap {
  flex: 1 1 auto;                    /* grow to fill the card */
  max-height: 75vh;                  /* cap height; scroll inside instead of page */
  overflow: auto;                    /* inner scroll */
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Ensure iframe fills the wrapper */
.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Slightly lower caps on smaller screens */
@media (max-width: 992px) { .iframe-wrap { max-height: 70vh; } }
@media (max-width: 600px) { .iframe-wrap { max-height: 65vh; } }

/* 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; /* 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;
    height: auto;
    margin-bottom: 20px;
    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%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Smaller logo inside the Our Story box */
.profile-box.larger-image img.story-logo {
    max-width: 280px;  
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Side-by-side bios */
.bio-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bio-column {
    flex: 1 1 45%;
    min-width: 280px;
}

.bio-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.bio-column h3 {
    margin-bottom: 5px;
}

.bio-column h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: normal;
    color: var(--font-color);
    opacity: 0.85;
}

/* 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);
}
/* Lighter ghost-style button for "Expand Form" */
#expand-form {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    margin-top: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

#expand-form:hover {
    background-color: rgba(0, 123, 255, 0.08);
}

/* Small alternate-link text under iframe */
.form-alt-link {
    font-size: 0.9rem;
    margin-top: 8px;
    opacity: 0.8;
}

.form-alt-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}
/* 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 layout ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* generic service card */
.service-box {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
  min-height: 3rem;          /* keeps titles aligned even if one wraps */
}

.service-copy {
  flex: 1 1 auto;
  margin: 0 0 1rem 0;
  color: #334155;
  line-height: 1.6;
}

.price-row {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;        /* two rows: main + meta */
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

/* first row: Price ….. $350 */
.price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-weight: 600;
  opacity: 0.85;
}

.price-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* second row: ⏱ Up to XX minutes */
.price-meta {
  display: flex;
  justify-content: flex-end;   /* right-align the entire row */
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.clock-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
  display: inline-block;
}

@media (min-width: 960px) {
  /* make the three top cards equal height */
  .service-box {
    min-height: 340px;
  }

  /* Scope of Care spans all columns and sizes to content */
  .service-box--full {
    grid-column: 1 / -1;   /* span the entire grid width */
    min-height: auto;
  }
}


/* 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;
}

.answer.visible {
    display: block;
    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;
    }

    /* Stack bios vertically on mobile */
    .bio-row {
        flex-direction: column;
    }

    .bio-column {
        flex: 1 1 100%;
    }
}

/* 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%;
    }
        /* Keep overlay close button from stretching full width on mobile */
    .close-max {
        width: 36px;       /* same as desktop circle */
        height: 36px;
    }
}

/* --- Meet Our Team Spacing Fix --- */
.team-member img {
    margin-bottom: 10px;
}

.team-member h3 {
    margin-top: 5px;
    margin-bottom: 8px;
}

.team-member p {
    margin-top: 6px;
}

.team-member {
    margin-bottom: 25px;
}
