/* ============================================================
   BROCHURE PAGES STYLING
   Matches case studies and project theme
   ============================================================ */

.brochure-detail-container {
    width: 96dvw;
    max-width: 96dvw;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 20dvh);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================================
   BROCHURE HEADER
   ============================================================ */

.brochure-header {
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--background-color3) 0%, var(--background-color4) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.brochure-title {
    font-family: var(--main-font-family2);
    font-size: 2.5326rem;
    font-weight: bold;
    color: var(--text-color2);
    margin-bottom: 0.125rem;
    text-shadow: 1px 1px 3px var(--shadow-color);
    -webkit-text-stroke: 0.5px var(--text-outline-color2);
}

.brochure-description {
    font-size: 0.63315rem;
    color: var(--text-color3);
    font-weight: 500;
    margin: 0;
}

.brochure-quote-cta {
    margin: 1.5rem 0;
    text-align: center;
}

.brochure-quote-cta .quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 0.92862rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    color: var(--primary-color, #1d6316);
    border-color: var(--primary-color, #1d6316);
}

.brochure-quote-cta .quote-button:hover {
    background: var(--primary-color, #1d6316);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color, rgba(0, 0, 0, 0.4));
}

/* ============================================================
   PDF SECTION
   ============================================================ */

.pdf-section {
    margin-bottom: 1.5rem;
    background: transparent;
}

/* Service & Repair Two-Column Layout */
.brochure-content.service-repair-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 60dvw 1fr;
    gap: 1.5rem;
    align-items: start;
}

.pdf-section.service-repair-pdf {
    width: 60dvw;
    max-width: 60dvw;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.pdf-section.service-repair-pdf .pdf-viewer-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pdf-section.service-repair-pdf .pdf-viewer-canvas {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.pdf-section.service-repair-pdf .pdf-pages-grid {
    max-width: 100%;
    width: 100%;
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.25rem;
}

.pdf-section.service-repair-pdf #pdfCanvas {
    max-width: 100%;
    height: auto;
}

/* Bulk Bag Side-by-Side PDF Layout */
.bulk-bag-pdfs-layout {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.bulk-bag-pdf {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.bulk-bag-pdf .pdf-viewer-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.bulk-bag-pdf .pdf-viewer-canvas {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.bulk-bag-pdf .pdf-pages-grid {
    max-width: 100%;
    width: 100%;
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.25rem;
}

.quote-form-section {
    background: linear-gradient(135deg, var(--background-color4) 0%, var(--background-color3) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    position: sticky;
    top: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.quote-form-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.quote-form-title {
    font-family: var(--main-font-family2);
    font-size: 2.52rem;
    font-weight: bold;
    color: var(--text-color2);
    margin: 0 0 1rem 0;
    text-align: center;
    text-shadow: 1px 1px 3px var(--shadow-color);
    -webkit-text-stroke: 0.3px var(--text-outline-color2);
}

.registration-prompt {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.prompt-text {
    font-size: 1.134rem;
    color: var(--text-color2);
    margin: 0;
    line-height: 1.5;
}

.quote-form-section .form-section {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form-section .section-title {
    font-family: var(--main-font-family2);
    font-size: 1.638rem;
    font-weight: bold;
    color: var(--text-color2);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.quote-form-section .form-group {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form-section .form-group label {
    display: block;
    font-family: var(--main-font-family);
    font-size: 1.197rem;
    font-weight: 600;
    color: var(--text-color2);
    margin-bottom: 0.5rem;
}

.quote-form-section .form-group input[type="text"],
.quote-form-section .form-group input[type="email"],
.quote-form-section .form-group input[type="tel"],
.quote-form-section .form-group input[type="file"],
.quote-form-section .form-group textarea,
.quote-form-section .form-group select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--main-font-family);
    font-size: 1.197rem;
    background: var(--background-color4);
    color: var(--text-color2);
    box-sizing: border-box;
    overflow: hidden;
}

.quote-form-section .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.quote-form-section .radio-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.quote-form-section .radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--background-color4);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
}

.quote-form-section .radio-option:hover {
    background-color: var(--background-color3);
    border-color: var(--highlight-color);
}

.quote-form-section .radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.quote-form-section .radio-label {
    font-family: var(--main-font-family);
    font-size: 1.1025rem;
    color: var(--text-color2);
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact info row for name and email side by side */
.quote-form-section .contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form-section .contact-info-row .form-group {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form-section .file-upload-wrapper {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    background: var(--background-color4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.quote-form-section .field-errors {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.quote-form-section .field-errors li {
    color: #dc3545;
    font-size: 1.071rem;
    margin-bottom: 0.25rem;
}

.quote-form-section .form-actions {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form-section .btn-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    color: var(--text-color4);
    border: 2px solid var(--text-color4);
    border-radius: 8px;
    font-family: var(--main-font-family2);
    font-size: 1.386rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-shadow: 1px 1px 3px var(--shadow-color);
}

.quote-form-section .btn-submit:hover {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* PDF Tabs for Multiple PDFs */
.pdf-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.pdf-tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--background-color3);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-color2);
    font-family: var(--main-font-family);
    font-size: 1.386rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-tab-btn:hover {
    background: var(--background-color4);
    color: var(--primary-color);
}

.pdf-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    color: var(--text-color4);
    border-color: var(--primary-color);
}

/* PDF Viewer - seamless integration */
.pdf-viewer-container {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.pdf-viewer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 6px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    pointer-events: none;
}

.pdf-viewer-container:hover .pdf-viewer-toolbar {
    opacity: 1;
    pointer-events: all;
}

.pdf-toolbar-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color2);
    border: none;
    border-radius: 4px;
    font-family: var(--main-font-family);
    font-size: 1.071rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pdf-toolbar-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pdf-page-info {
    font-family: var(--main-font-family);
    font-size: 1.071rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.pdf-viewer-canvas {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    min-height: auto;
    position: relative;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Multi-page PDF grid layout - seamless integration */
.pdf-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 0;
    background: transparent;
}

.pdf-page-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    transition: none;
}

.pdf-page-wrapper:hover {
    box-shadow: none;
    transform: none;
}

.pdf-page-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 768px) {
    .pdf-pages-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0;
    }
    
    .pdf-viewer-toolbar {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 0.5rem;
        opacity: 1;
        pointer-events: all;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* ============================================================
   RELATED GALLERIES SECTION
   ============================================================ */

.related-galleries-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--main-font-family2);
    font-size: 3.15rem;
    font-weight: bold;
    color: var(--text-color2);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 3px var(--shadow-color);
    -webkit-text-stroke: 0.3px var(--text-outline-color2);
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: linear-gradient(135deg, var(--background-color4) 0%, white 50%, var(--background-color3) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow-color);
    border-color: var(--primary-color);
}

.gallery-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: var(--background-color3);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color3);
    font-style: italic;
}

.gallery-card-content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery-card-content h3 {
    font-family: var(--main-font-family2);
    font-size: 0.945rem;
    font-weight: bold;
    color: var(--text-color2);
    margin: 0;
}

.gallery-description {
    color: var(--text-color3);
    font-size: 0.5985rem;
    line-height: 1.5;
    flex: 1;
}

.gallery-card-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color2);
}

.image-count {
    font-size: 0.567rem;
    color: var(--text-color3);
    font-weight: 500;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-section {
    margin-bottom: 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--background-color4) 0%, white 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--primary-color);
}

.testimonial-header {
    border-bottom: 1px solid var(--border-color2);
    padding-bottom: 0.5rem;
}

.testimonial-name {
    font-family: var(--main-font-family2);
    font-size: 1.638rem;
    font-weight: bold;
    color: var(--text-color2);
    margin: 0 0 0.5rem 0;
}

.testimonial-company {
    color: var(--text-color3);
    font-size: 1.26rem;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating .star {
    font-size: 1.512rem;
    color: var(--text-color3);
}

.testimonial-rating .star.filled {
    color: #ffc107;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    color: var(--text-color2);
    font-size: 1.26rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.testimonial-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -0.75rem -0.75rem 0.5rem -0.75rem;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-product-link {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color2);
}

.testimonial-product-link .product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.134rem;
    transition: color 0.3s ease;
}

.testimonial-product-link .product-link:hover {
    color: var(--primary-color-dark, #0056b3);
    text-decoration: underline;
}

/* ============================================================
   CALL TO ACTION SECTION
   ============================================================ */

.cta-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--main-font-family2);
    font-size: 3.15rem;
    font-weight: bold;
    color: var(--text-color4);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
    -webkit-text-stroke: 0.3px var(--text-outline-color3);
}

.cta-description {
    font-size: 1.512rem;
    color: var(--text-color4);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-get-quote {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--highlight-color2);
    color: var(--text-color4);
    text-decoration: none;
    border: 2px solid var(--text-color4);
    border-radius: 8px;
    font-family: var(--main-font-family2);
    font-size: 1.638rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px var(--shadow-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn-get-quote:hover {
    background: var(--text-color4);
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pdf-section.service-repair-pdf {
        width: 100%;
        max-width: 100%;
    }

    .quote-form-section {
        position: static;
        max-height: none;
    }

    /* Stack contact fields on tablet and mobile */
    .quote-form-section .contact-info-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Stack radio buttons on smaller screens */
    .quote-form-section .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quote-form-section .radio-option {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Stack bulk bag PDFs vertically on tablet and mobile */
    .bulk-bag-pdfs-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .brochure-detail-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .brochure-title {
        font-size: 1.6884rem;
    }
    
    .brochure-description {
        font-size: 1.01304rem;
    }
    
    .section-title {
        font-size: 2.52rem;
    }
    
    .galleries-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pdf-tabs {
        flex-direction: column;
    }
    
    .pdf-tab-btn {
        border-radius: 8px;
        border-bottom: 2px solid var(--border-color);
    }
    
    .pdf-tab-btn.active {
        border-radius: 8px;
    }
    
    /* Service & Repair Layout - Mobile Responsive */
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pdf-section.service-repair-pdf {
        width: 100%;
        max-width: 100%;
    }
    
    .pdf-section.service-repair-pdf .pdf-pages-grid {
        max-width: 100%;
    }
    
    .quote-form-section {
        position: static;
        max-height: none;
    }
    
    .quote-form-title {
        font-size: 2.205rem;
    }
}

