/* Baseman Designs Bulk Order Form Styles */
:root {
    --baseman-blue: #0070ff;
    --baseman-red: #ff0f0f;
    --baseman-white: #ffffff;
    --baseman-black: #222222;
    --baseman-light: #f8f9fa;
    --baseman-border: #e0e0e0;
    --baseman-shadow: 0 4px 12px rgba(0, 112, 255, 0.1);
    --baseman-radius: 8px;
}

.baseman-bulk-form-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--baseman-blue) 0%, #0055cc 100%);
    color: white;
    border-radius: var(--baseman-radius);
    box-shadow: var(--baseman-shadow);
}

.form-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--baseman-white);
    border-radius: var(--baseman-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--baseman-border);
    transition: transform 0.2s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--baseman-shadow);
}

.section-title {
    color: var(--baseman-blue);
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--baseman-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--baseman-black);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--baseman-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--baseman-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--baseman-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.product-selector {
    padding: 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 500;
}

.price-indicator {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 112, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--baseman-blue);
    font-weight: 600;
    color: var(--baseman-blue);
}

.color-selection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--baseman-light);
    border-radius: var(--baseman-radius);
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 6px;
    border: 2px solid var(--baseman-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    border-color: var(--baseman-blue);
    transform: translateY(-2px);
}

.color-option input[type="checkbox"]:checked + .color-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--baseman-blue);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
}

.matrix-section {
    margin-top: 2rem;
}

.matrix-section h3 {
    color: var(--baseman-black);
    margin-bottom: 1rem;
}

.matrix-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--baseman-radius);
    border: 1px solid var(--baseman-border);
}

.quantity-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.quantity-matrix th {
    background: var(--baseman-blue);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
}

.quantity-matrix td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--baseman-border);
}

.quantity-matrix .size-label {
    font-weight: 600;
    background: var(--baseman-light);
    text-align: left;
    padding-left: 1.5rem;
}

.quantity-matrix .qty-input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid var(--baseman-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.quantity-matrix .qty-input:focus {
    border-color: var(--baseman-blue);
    box-shadow: 0 0 0 2px rgba(0, 112, 255, 0.1);
    outline: none;
}

.quantity-matrix .row-total,
.quantity-matrix .col-total {
    font-weight: 600;
    background: var(--baseman-light);
}

.quantity-matrix .grand-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--baseman-red);
    background: rgba(255, 15, 15, 0.05);
}

.matrix-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--baseman-light);
    border-radius: var(--baseman-radius);
    border: 2px solid var(--baseman-blue);
}

.total-display {
    text-align: center;
}

.total-label {
    display: block;
    font-size: 0.9rem;
    color: var(--baseman-black);
    margin-bottom: 0.5rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--baseman-red);
}

.file-upload-area {
    margin-top: 2rem;
}

.upload-zone {
    border: 3px dashed var(--baseman-blue);
    border-radius: var(--baseman-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0, 112, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.upload-zone:hover {
    background: rgba(0, 112, 255, 0.05);
    border-color: #0055cc;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-hint {
    color: var(--baseman-blue);
    font-weight: 500;
    margin: 0.5rem 0;
}

.upload-zone-wrapper {
    margin-top: 1rem;
}

.styled-file-input {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: rgba(0, 112, 255, 0.05);
    border: 2px solid var(--baseman-blue);
    border-radius: var(--baseman-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.styled-file-input:hover {
    background: rgba(0, 112, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 255, 0.15);
}

.upload-icon {
    font-size: 1.5rem;
}

.file-input-text {
    font-weight: 500;
    color: var(--baseman-blue);
}

.visible-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-hint {
    margin: 0.75rem 0 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.file-types {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.file-types {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.file-preview {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-preview-item {
    background: var(--baseman-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-steps-box {
    background: linear-gradient(135deg, rgba(0, 112, 255, 0.05) 0%, rgba(255, 15, 15, 0.02) 100%);
    border-radius: var(--baseman-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--baseman-blue);
}

.process-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.process-steps li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.process-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--baseman-blue);
    font-weight: bold;
}

.final-summary {
    background: var(--baseman-white);
    padding: 1.5rem;
    border-radius: var(--baseman-radius);
    border: 2px solid var(--baseman-blue);
    margin-bottom: 2rem;
}

.final-summary p {
    margin: 0.5rem 0;
}

.estimated-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--baseman-red);
    margin: 1rem 0 !important;
}

.disclaimer {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--baseman-blue) 0%, #0055cc 100%);
    color: white;
    border: none;
    border-radius: var(--baseman-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.form-notice {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.form-message {
    padding: 1.5rem;
    border-radius: var(--baseman-radius);
    margin-top: 2rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 2px solid #27ae60;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 2px solid #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .color-options {
        gap: 1rem;
    }
    
    .color-option {
        padding: 0.5rem 0.75rem;
    }
    
    .matrix-totals {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .quantity-matrix th,
    .quantity-matrix td {
        padding: 0.5rem;
    }
    
    .quantity-matrix .qty-input {
        width: 60px;
        padding: 0.375rem;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 1.5rem 1rem;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .submit-button {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Add to existing form-styles.css */

/* Make entire upload zone clickable */
.upload-zone {
    border: 3px dashed var(--baseman-blue);
    border-radius: var(--baseman-radius);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0, 112, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

/* Visual feedback when hovering */
.upload-zone:hover {
    background: rgba(0, 112, 255, 0.05);
    border-color: #0055cc;
    transform: translateY(-2px);
}

/* Visual feedback when dragging over */
.upload-zone.dragover {
    background: rgba(0, 112, 255, 0.1);
    border-color: var(--baseman-blue);
    border-style: solid;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { border-color: var(--baseman-blue); }
    50% { border-color: #0055cc; }
    100% { border-color: var(--baseman-blue); }
}

/* Style the hidden file input to cover entire zone */
#artwork_files {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Remove file button */
.file-preview-item {
    background: var(--baseman-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.remove-file {
    background: var(--baseman-red);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.remove-file:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Make upload content clearly indicate it's clickable */
.upload-content {
    pointer-events: none; /* Let clicks pass through to file input */
    position: relative;
    z-index: 1;
}

.upload-hint {
    color: var(--baseman-blue);
    font-weight: 500;
    margin: 0.5rem 0;
    text-decoration: underline;
}

/* Make it obvious this is clickable on mobile */
@media (max-width: 768px) {
    .upload-zone {
        padding: 2rem 1rem;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .upload-content {
        padding: 1rem;
    }
}