/* =============================================
   Size Guide Page CSS (servicesSize.css)
   ============================================= */

/* Page Variables */
.services-size-page {
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
}

/* Global Typography Adjustments for this page */
.services-size-page .section-title {
    max-width: 1200px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    text-transform: none;
    margin: 0 auto 30px;
}

.services-size-page .size-intro p,
.services-size-page .measurement-guide p,
.services-size-page .size-chart-section p,
.services-size-page .sample-section p {
    font-family: var(--font-light);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

/* Common Backgrounds */
.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn-cyan {
    background-color: #000;
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 10px 20px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.btn-pill {
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- Banner Section --- */
.size-banner {
    width: 100%;
    margin-top: 0;
}

.size-banner .banner-img-container {
    width: 100%;
}

.size-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Intro Section --- */
.size-intro {
    padding: 60px 0;
}

.size-intro-container {
    /* max-width: 1200px; */
}

.intro-action {
    margin-top: 40px;
}

/* --- Measurement Guide Section --- */
.measurement-guide {
    padding: 60px 0;
}

.measurement-guide .section-title {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-col {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.guide-left, .guide-right {
    padding: 20px 0;
}

.guide-item {
    margin-bottom: 20px;
}

.guide-subtitle {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0px;
    /* text-transform: uppercase; */
}

.guide-item p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.guide-item strong {
    color: var(--color-primary);
    font-weight: normal; /* Using color for emphasis based on design */
    font-family: var(--font-heading);
}

.guide-center {
    display: flex;
    justify-content: center;
}

.guide-center img {
    max-width: 100%;
    height: auto;
    width: 400px; /* Adjust based on actual image dimensions */
}

/* --- Tab Content --- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Size Chart Section --- */
.size-chart-section {
    padding: 60px 0;
}

.size-chart-container {
    max-width: 1000px;
}

.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background-color: #e0e0e0;
    color: var(--text-dark);
    border: none;
    padding: 8px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    /* text-transform: uppercase; */
}

.table-responsive {
    overflow-x: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: center;
}

.size-table th, .size-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}

.size-table th {
    background-color: #f5f5f5;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: normal;
}

.size-table td {
    font-family: var(--font-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Sample Section --- */
.sample-section {
    padding: 60px 0;
}

.sample-container {
    max-width: 1100px;
}

.sample-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    /* text-transform: uppercase; */
}

.sample-content p {
    margin-bottom: 15px;
}

.sample-content strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 1.2rem;
}

.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* --- Inquiry Modal --- */
.inquiry-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9000;
    overflow-y: auto;
    padding: 40px 20px;
}

.inquiry-modal-overlay.open {
    display: block;
}

.inquiry-modal-box {
    background: var(--color-white);
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.inquiry-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.inquiry-modal-close:hover {
    color: var(--color-black);
}

@media (max-width: 576px) {
    .inquiry-modal-box {
        padding: 40px 20px;
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .guide-center {
        order: -1; /* Move image to top on mobile */
    }
}

@media (max-width: 768px) {
    .services-size-page .section-title {
        font-size: 1.75rem;
    }
    
    .chart-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 250px;
    }
}
