/**
 * Enhanced Design Form V2 Styles
 * Size breakdown, regional sizing, product-specific fields
 */

/* Size Breakdown Section */
.size-breakdown-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.size-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.size-breakdown-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.size-breakdown-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-breakdown-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
}

.size-breakdown-table tbody tr:hover {
    background: #f8f9fa;
}

.size-breakdown-table td {
    padding: 12px 15px;
}

.size-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.size-quantity-input {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.size-quantity-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.size-notes-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.total-quantity-display {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
}

.total-quantity-display strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    opacity: 0.9;
}

#total-quantity-value {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

/* Size Chart Info */
.size-chart-info {
    margin: 20px 0;
}

.info-box {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
}

.info-box.warning {
    border-left-color: #f0ad4e;
    background: #fff3cd;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.button-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 0;
    margin-top: 10px;
}

.button-link:hover {
    color: #764ba2;
}

/* Measurement Fields */
.measurement-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Custom Measurements Container */
#custom-measurements-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Radio Group for Measurement Type */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Field Hints */
.field-hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Section Descriptions */
.section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Enhanced Form Sections */
.form-section h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .size-breakdown-table {
        font-size: 14px;
    }
    
    .size-breakdown-table th,
    .size-breakdown-table td {
        padding: 10px 8px;
    }
    
    .size-quantity-input {
        width: 80px;
    }
    
    .size-notes-input {
        font-size: 13px;
    }
    
    .measurement-fields-grid {
        grid-template-columns: 1fr;
    }
    
    #total-quantity-value {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .size-breakdown-table {
        box-shadow: none;
    }
    
    .button-link,
    #submit-design-btn {
        display: none;
    }
}
