/* Size Guide Page Styles */

.size-guide-page {
    padding: 5rem 0;
    min-height: 80vh;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Size Chart Section */
.size-chart-section {
    margin-bottom: 4rem;
}

.size-chart-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chart-note {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.size-chart-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.size-chart,
.body-chart {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.size-chart th,
.body-chart th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.size-chart td,
.body-chart td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.size-chart tr:hover td,
.body-chart tr:hover td {
    background: var(--bg-light);
}

.size-chart td:first-child,
.body-chart td:first-child {
    font-weight: 600;
}

/* Body Measurement */
.body-measurement {
    margin-top: 3rem;
}

.body-measurement h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* How to Measure */
.how-to-measure {
    background: var(--bg-light);
    padding: 3rem 0;
    margin: 4rem -2rem;
}

.how-to-measure .container {
    padding: 0 2rem;
}

.how-to-measure h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.measure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.measure-item {
    text-align: center;
}

.measure-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.measure-image svg {
    stroke-width: 1.5;
}

.measure-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.measure-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Fit Guide */
.fit-guide {
    margin: 4rem 0;
}

.fit-guide h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.fit-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.fit-type {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.fit-type h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.fit-type p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.fit-type ul {
    list-style: none;
}

.fit-type ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.fit-type ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Size Calculator */
.size-calculator {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    margin: 4rem 0;
}

.size-calculator h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.calculator-form {
    max-width: 500px;
    margin: 0 auto;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    position: relative;
}

.calculator-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

/* Remove spinner buttons on desktop */
.calculator-form input[type="number"]::-webkit-inner-spin-button,
.calculator-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calculator-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.calculator-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.size-result {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.size-result h3 {
    margin-bottom: 1rem;
}

.recommended-size {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.size-note {
    color: var(--text-secondary);
}

/* FAQ Section */
.size-faq {
    margin: 4rem 0;
}

.size-faq h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.faq-item p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Contact Section */
.size-contact {
    margin-top: 4rem;
}

.contact-box {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 0.5rem;
}

.contact-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-options .btn {
    min-width: 150px;
}

.contact-options .btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.contact-options .btn-secondary:hover {
    background: transparent;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    .size-guide-page {
        overflow-x: hidden;
        width: 100%;
    }
    .page-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Calculator form mobile optimization */
    .calculator-form {
        padding: 0 1rem;
    }
    
    .calculator-form input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        height: 50px;
        border-radius: 8px;
    }
    
    .calculator-form label {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .calculator-form .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    /* Show hint inline on mobile */
    .calculator-form label .hint {
        display: inline;
        font-size: 0.75rem;
        color: #999;
    }
    
    /* Force left alignment for size chart content */
    .size-chart-section h2,
    .chart-note,
    .body-measurement h3,
    .how-to-measure h2,
    .fit-guide h2,
    .size-calculator h2,
    .size-faq h2 {
        text-align: left;
    }
    
    /* Ensure tables don't cause horizontal scroll */
    .size-chart,
    .body-chart {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }
    
    .size-chart-wrapper {
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .size-chart,
    .body-chart {
        font-size: 0.85rem;
    }
    
    .size-chart th,
    .body-chart th,
    .size-chart td,
    .body-chart td {
        padding: 0.5rem;
    }
    
    .measure-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .fit-types {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-options .btn {
        width: 100%;
        max-width: 300px;
    }
}