/**
 * Pyrotect Suit Builder Styles
 */

/* Main Container */
.pyrotect-suit-builder-container {
    margin: 20px 0 30px;
    font-family: inherit;
    color: #333;
}

/* Accordion Sections */
.pyrotect-suit-builder-section {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pyrotect-suit-builder-header {
    background-color: #cc0000;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.pyrotect-suit-builder-header:hover {
    background-color: #a00000;
}

.pyrotect-suit-builder-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.pyrotect-suit-builder-content {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: none; /* Initially hidden, JS will show the first one */
}

.red-text {
    color: rgb(225,0,0);
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: inline;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-field select,
.form-field input[type="text"],
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-field select:focus,
.form-field input[type="text"]:focus,
.form-field textarea:focus {
    border-color: #cc0000;
    outline: none;
    box-shadow: 0 0 3px rgba(204,0,0,0.2);
}

/* Radio and Checkbox Options */
.radio-options,
.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    /*margin-top: 8px;*/
}

.radio-options.vertical-options,
.checkbox-options.vertical-options {
    flex-direction: column;
    gap: 10px;
}

.radio-options.vertical-options label,
.checkbox-options.vertical-options label {
    display: inline;
}

.radio-options label,
.checkbox-options label {
    font-weight: normal;
    margin-left: 5px;
    margin-right: 15px;
    cursor: pointer;
    margin-top: 5px;
}

.option-description {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    margin-left: 24px;
    margin-bottom: 0;
    font-style: italic;
}

/* Stitching Options with Images */
.stitching-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.radio-option-with-image {
    text-align: center;
    width: calc(25% - 15px);
    min-width: 120px;
}

.radio-option-with-image input {
    display: none;
}

/* Required fields */
.required {
    color: #f00;
}

/* Hide asterisk when Color 6 is not required */
.form-field:not(:visible) .color6-required {
    display: none;
}

.radio-option-with-image label {
    display: block;
    cursor: pointer;
}

.radio-option-with-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.radio-option-with-image input:checked + label img {
    border-color: #cc0000;
}

.radio-option-with-image span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Stitching "None" option styling */
.stitching-section .form-field label {
    display: inline-block;
    cursor: pointer;
    margin-bottom: 15px;
}

.stitching-section .form-field label span {
    font-weight: 500;
    margin-left: 5px;
}

#decorative-stitching-options {
    margin-top: 10px;
    overflow: hidden;
}

/* Info Boxes */
.color-info,
.logo-info,
.measurements-note {
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border-left: 4px solid #cc0000;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Icon */
.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Required Field Marker */
.required {
    color: #cc0000;
    margin-left: 2px;
}

/* Notes Section */
.notes-section textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

/* Sizing Chart Link */
.sizing-chart-link {
    display: inline-block;
    color: #cc0000;
    text-decoration: underline;
    font-weight: 500;
    padding: 5px 0;
}

.sizing-chart-link:hover {
    color: #a00000;
}

/* File Upload Styling */
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 5px;
}

.file-size-note {
    color: #cc0000;
    font-weight: 500;
}

.red-text {
    color: #cc0000;
    font-weight: 500;
}

/* File upload field link */
#custom-design-upload a, #logo-upload a {
    color: #cc0000;
    text-decoration: underline;
    font-weight: 500;
}

#custom-design-upload a:hover, #logo-upload a:hover {
    color: #a00000;
}

/* Logo Placement */
.logo-placement-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-placement-section {
    flex: 1;
    min-width: 250px;
}

.logo-placement-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 60px;
    height: 30px;
    text-align: center;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    /*cursor: pointer;*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
}

/* Price Summary */
.pyrotect-suit-price-summary {
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.price-summary-title {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-total {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-weight: 600;
}

/* Design Preview */
.design-preview {
    margin-top: 15px;
    text-align: center;
}

/* Admin Debug Message */
.pyrotect-suit-builder-debug {
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #f7f7f7;
    border-left: 4px solid #0073aa;
    font-size: 12px;
    color: #23282d;
}

/* Form Validation */
.validation-error {
    border-color: #cc0000 !important;
    background-color: #fff5f5 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .radio-option-with-image {
        width: calc(50% - 15px);
    }
    
    .logo-placement-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .radio-option-with-image {
        width: 100%;
    }
    
    .radio-options,
    .checkbox-options {
        flex-direction: column;
        gap: 10px;
    }
}
