* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 24px;
}

.header {
    margin-bottom: 24px;
    text-align: center;
}

.company-logo {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
}

.product-info {
    flex: 1;
}

.product-preview {
    flex: 0 0 300px;
}

h1 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 8px;
}

.subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 20px;
}

.product-features {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.easy-steps-header {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
}

.easy-steps-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-number-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a202c;
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

.features-list li strong {
    color: #1a202c;
}

/* Main Two-Column Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    margin-top: 24px;
}

.left-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.right-side {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.sidebar-instruction {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.price-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-item h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
}

.price-suffix {
    font-size: 18px;
    font-weight: normal;
    opacity: 0.9;
}

.pricing-tiers-compact {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tier-label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.tiers-compact-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-compact {
    padding: 6px 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.tier-compact.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: bold;
}

.tier-compact-range {
    margin-right: 4px;
}

.tier-compact-price {
    font-weight: bold;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 12px;
}

.instruction {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Color Selector - Vertical Stack */
.color-selector-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.color-chip:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.color-chip.selected {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.color-chip-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.color-chip-info {
    flex: 1;
}

.color-chip-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}

.color-chip-code {
    font-size: 11px;
    color: #64748b;
}

/* Color Quantity Tables - Left Side Version */
#color-tables-container-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    min-height: 10px;
}

.color-table-with-preview {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 140px;
}

.color-table-left-main {
    display: flex;
    flex-direction: column;
}

#color-tables-container-left .color-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#color-tables-container-left .color-table-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

#color-tables-container-left .color-table-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.3);
}

#color-tables-container-left .color-table-name {
    font-size: 15px;
    font-weight: bold;
}

#color-tables-container-left .color-table-remove {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

#color-tables-container-left .color-table-remove:hover {
    background: rgba(255,255,255,0.3);
}

#color-tables-container-left .color-table-body {
    padding: 12px;
    background: white;
}

#color-tables-container-left .size-quantity-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#color-tables-container-left .color-table-footer {
    padding: 10px 14px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e2e8f0;
}

#color-tables-container-left .color-subtotal-label {
    font-size: 13px;
    color: #64748b;
}

#color-tables-container-left .color-subtotal-value {
    font-size: 16px;
    font-weight: bold;
    color: #1a202c;
}

.color-table-preview-side {
    background: #f8fafc;
    border-left: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.color-table-preview-side img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Shared styles for size quantity controls - COMPACT */
.size-quantity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.size-quantity-label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.size-quantity-controls {
    display: flex;
    align-items: center;
    gap: 3px;
}

.qty-btn-small {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-small:hover {
    border-color: #667eea;
    background: #eef2ff;
    color: #667eea;
}

.qty-input-small {
    width: 100%;
    height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    padding: 0 2px;
}

.qty-input-small:focus {
    border-color: #667eea;
}

.color-table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-table-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-table-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.3);
}

.color-table-name {
    font-size: 18px;
    font-weight: bold;
}

.color-table-remove {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.color-table-remove:hover {
    background: rgba(255,255,255,0.3);
}

.color-table-body {
    padding: 20px;
    background: white;
}

.color-table-footer {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e2e8f0;
}

.color-subtotal-label {
    font-size: 14px;
    color: #64748b;
}

.color-subtotal-value {
    font-size: 20px;
    font-weight: bold;
    color: #1a202c;
}

/* Logo Upload */
.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 32px;
    margin-top: 24px;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.upload-zone.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #94a3b8;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 14px;
    color: #64748b;
}

.upload-success {
    color: #10b981;
}

/* Placement Options */
.placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.placement-option {
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.placement-option:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.placement-option.selected {
    border-color: #667eea;
    background: #eef2ff;
}

.placement-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

/* Customer Info */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #667eea;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 16px;
}

#summary-colors-list {
    margin-bottom: 16px;
}

.summary-color-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-color-name {
    font-weight: 600;
    color: #1a202c;
}

.summary-color-qty {
    color: #64748b;
    font-size: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #1a202c;
}

.summary-total {
    border-top: 2px solid #c7d2fe;
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 20px;
    font-weight: bold;
    color: #1a202c;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .card {
        padding: 24px;
    }

    .company-logo {
        max-width: 280px;
    }

    .product-header {
        flex-direction: column;
    }

    .product-preview {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
    }

    .product-features {
        margin-top: 16px;
    }

    .features-list li {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 20px;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .right-side {
        order: 2;
    }

    h1 {
        font-size: 24px;
    }

    .price-amount {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .placement-grid {
        grid-template-columns: 1fr;
    }

    .color-table-with-preview {
        grid-template-columns: 1fr;
    }

    .color-table-preview-side {
        border-left: none;
        border-top: 2px solid #e2e8f0;
        padding: 16px;
    }

    #color-tables-container-left .size-quantity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}