/* Pro Quote Page: Integrated with site theme (TT Lakes + Poppins, red accents, responsive - FIX: Overflow-proof + Email/Phone grid) */
.quote-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg, 2rem); /* Use site spacing */
    font-family: var(--font-body, 'Poppins', sans-serif); /* Poppins body */
    background-color: var(--light-gray, #f5f5f5); /* Subtle bg from theme */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden; /* FIX: Prevent horizontal overflow */
    width: 100%; /* Ensure full width respect */
}

.hero {
    text-align: center;
    margin-bottom: var(--space-xl, 3rem);
    padding: var(--space-lg, 2rem) 0;
    overflow: hidden; /* FIX: Hero safe */
}

.hero h1 {
    font-family: var(--font-heading, 'TT Lakes Neue Trial', sans-serif); /* Site heading font */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Fluid from theme */
    font-weight: 700; /* Bold */
    color: var(--black, #000); /* Primary text */
    line-height: 1.1;
    margin-bottom: var(--space-md, 1.5rem);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--dark-gray, #333); /* Secondary text */
    max-width: 600px;
    margin: 0 auto;
}

        /* Breadcrumb List Styling */
        .breadcrumb-list {
            display: flex;
            align-items: center;
            font-size: 1rem;
            color: #4b5563;
            list-style-type: none;
            padding: 0;
            margin: 0 0 15px 0;
            flex-shrink: 0;
            justify-content: center;
    }
    /* Individual Breadcrumb Item */
    .breadcrumb-item {
      display: flex;
      align-items: center;
    }
    
    /* Breadcrumb Link Styling */
    .breadcrumb-link {
      text-decoration: none;
      color: var(--primary-red);
      font-weight: 600;
      transition: color 0.3s ease-in-out;
    }
    
    .breadcrumb-link:hover {
      color: var(--primary-dark-red);
    }
    
    /* Breadcrumb Separator (>) Styling */
    .breadcrumb-separator {
      margin: 0 0.5rem;
      color: #d1d5db;
    }
    
    /* Current Breadcrumb Styling */
    .breadcrumb-current {
      font-weight: 700;
      color: var(--primary-dark-red);
    }

.error-msg {
    background: #f8d7da; /* Soft error bg */
    color: #721c24; /* Dark red text */
    padding: var(--space-sm, 1rem);
    border-radius: 4px;
    border-left: 4px solid var(--primary-red, #ee1c25); /* Theme accent */
    margin-bottom: var(--space-md, 1.5rem);
    font-weight: 500;
    overflow: hidden; /* FIX: No wrap issues */
}

.quote-form {
    background: var(--white, #fff); /* Clean white card */
    padding: var(--space-lg, 2rem);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Subtle elevation */
    display: grid;
    gap: var(--space-md, 1.5rem);
    margin-bottom: var(--space-xl, 3rem);
    overflow-x: hidden; /* FIX: Form container safe */
    width: 100%;
    max-width: 100%; /* Clamp to parent */
}

.name-group, .contact-group {  /* NEW: Shared styles for name + contact grids */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm, 1rem);
    width: 100%; /* FIX: Full width */
}

.field {
    display: flex;
    flex-direction: column;
    width: 100%; /* FIX: Fields respect container */
}

.field label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 500; /* Semi-bold labels */
    color: var(--black, #000);
    margin-bottom: var(--space-xs, 0.5rem);
    font-size: 0.9375rem; /* Compact but readable */
}

input, textarea {
    padding: var(--space-sm, 1rem);
    border: 1px solid #ddd; /* Neutral border */
    border-radius: 6px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white, #fff);
    width: 100%; /* FIX: Full width, no overflow */
    max-width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--soft-blue, #4a90e2); /* Theme accent on focus */
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); /* Subtle glow */
}

input.error, textarea.error {
    border-color: var(--primary-red, #ee1c25); /* Error accent */
    box-shadow: 0 0 0 3px rgba(238, 28, 37, 0.1);
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* FIX: Tighter minmax (was 200px) to fit narrow screens */
    gap: var(--space-sm, 1rem);
    margin-top: var(--space-xs, 0.5rem);
    padding: var(--space-sm, 1rem);
    background: #fafafa; /* Light bg for checkbox group */
    border-radius: 6px;
    border: 1px solid #eee;
    width: 100%; /* FIX: Full width */
    overflow-x: auto; /* Fallback scroll if needed, but minmax prevents */
    -webkit-overflow-scrolling: touch; /* Smooth mobile scroll */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.5rem);
    cursor: pointer;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.9375rem;
    color: var(--dark-gray, #333);
    padding: var(--space-xs, 0.5rem) 0;
    transition: color 0.2s ease;
    white-space: nowrap; /* FIX: Prevent label wrap overflow */
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate long labels if rare */
}

.checkbox-label:hover {
    color: var(--primary-red, #ee1c25);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-red, #ee1c25); /* Custom checkbox color */
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0; /* FIX: Checkbox doesn't shrink */
}

.error-text {
    color: var(--primary-red, #ee1c25);
    font-size: 0.875rem;
    margin-top: var(--space-xs, 0.5rem);
    display: block;
}

.submit-btn {
    background: var(--primary-red, #ee1c25); /* Theme primary */
    color: var(--white, #fff);
    padding: var(--space-md, 1.5rem);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading, 'TT Lakes Neue Trial', sans-serif); /* Heading font for button punch */
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, transform 0.2s ease;
    align-self: start;
    width: auto; /* FIX: Button fits content, no stretch overflow */
    min-width: 200px; /* Min width for touch */
}

.submit-btn:hover {
    background: var(--primary-dark-red, #b3121c); /* Darker hover */
    transform: translateY(-2px); /* Subtle lift */
}

.testimonials {
    text-align: center;
    padding: var(--space-lg, 2rem);
    background: var(--white, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* FIX: Testimonials safe */
    width: 100%;
}

.testimonials h2 {
    font-family: var(--font-heading, 'TT Lakes Neue Trial', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--black, #000);
    margin-bottom: var(--space-md, 1.5rem);
}

.testimonials p {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--dark-gray, #333);
    font-weight: 300; /* Light for quote feel */
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile: Tighter, responsive from theme - Enhanced anti-overflow */
@media (max-width: 768px) {
    a.breadcrumb-link,
  .breadcrumb-current {
    font-size: 14px;
  }
    .quote-page {
        padding: var(--space-md, 1.5rem);
        overflow-x: hidden; /* Double-down on mobile */
    }
    
    .name-group, .contact-group {  /* NEW: Stack contact group on mobile */
        grid-template-columns: 1fr; /* Stack names + contact */
    }
    
    .services-checkboxes {
        grid-template-columns: 1fr; /* Single column checkboxes */
        gap: var(--space-xs, 0.5rem);
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 4vw, 2.25rem); /* Theme mobile scale */
        line-height: 1.15;
    }
    
    .quote-form {
        padding: var(--space-md, 1.5rem);
        margin-left: 0;
        margin-right: 0; /* FIX: Flush edges */
    }
    
    .submit-btn {
        width: 100%; /* Full-width mobile button */
        padding: var(--space-lg, 2rem) var(--space-md, 1.5rem);
        font-size: 1rem;
    }
    
    .checkbox-label {
        white-space: normal; /* Allow wrap on mobile for readability */
    }
}

@media (max-width: 480px) {
    .quote-page {
        padding: var(--space-sm, 1rem);
    }
    
    input, textarea {
        font-size: 0.9375rem; /* Theme small screen base */
    }
    
    .checkbox-label {
        font-size: 0.875rem;
        padding: var(--space-xs, 0.5rem);
    }
    
    .services-checkboxes {
        padding: var(--space-xs, 0.5rem);
    }
    
    /* Global body fix if needed (add to site CSS or here) */
    body {
        overflow-x: hidden;
    }
}