:root {
    --pcb-primary: #0056A6;
    /* Primary Blue */
    --pcb-primary-hover: #00407c;
    --pcb-primary-light: #e6f0f9;
    --pcb-secondary: #0056A6;
    --pcb-bg: #f5f7fa;
    --pcb-border: #d1d9e0;
    --pcb-text: #333;
    --pcb-muted: #666;
    --pcb-success: #28a745;
    --pcb-selection-bg: #f0f7ff;
}

.wpo-pcb-form-container {
    display: flex;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pcb-text);
    max-width: 1500px;
    margin: 20px auto;
    width: 95%;
}

.wpo-main-form {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wpo-sidebar {
    flex: 1;
}

/* Upload Section */
.wpo-upload-section {
    background: var(--pcb-primary-light);
    border: 2px dashed #b8d2eb;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.wpo-btn-upload {
    background: var(--pcb-success);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wpo-btn-upload:hover {
    background: #218838;
    transform: translateY(-2px);
}

.wpo-upload-tip {
    margin-top: 10px;
    font-size: 14px;
    color: var(--pcb-muted);
}

/* Form Fields */
.wpo-field-row {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.wpo-field-row>label {
    width: 200px;
    font-weight: 600;
    font-size: 15px;
}

.wpo-field-row .info {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #eee;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #999;
    cursor: help;
    margin-left: 5px;
}

/* Tabs UI */
.wpo-tabs,
.wpo-tabs-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpo-tab {
    background: var(--pcb-selection-bg);
    border: 1px solid var(--pcb-border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pcb-text);
    white-space: nowrap;
}

.wpo-colors-row {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow-x: auto;
}

.wpo-tab:hover {
    border-color: var(--pcb-primary);
    background: #fff;
}

.wpo-tab.active {
    background: var(--pcb-primary);
    color: #fff;
    border-color: var(--pcb-primary);
    font-weight: 600;
}

.wpo-tab.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
    opacity: 0.6;
}

.wpo-tab.disabled:hover {
    border-color: #eee;
    background: #f8f9fa;
}

.wpo-tab.invalid-field {
    border-color: #d93025 !important;
    background: #fff1f0 !important;
    color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.1);
}

.color-box {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Inputs */
.wpo-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpo-input-group input,
.wpo-input-group select {
    padding: 8px 12px;
    border: 1px solid var(--pcb-border);
    border-radius: 4px;
    font-size: 14px;
}

.wpo-input-group input[type="number"] {
    width: 80px;
}

.wpo-max-size-tip {
    font-size: 12px;
    color: var(--pcb-muted);
    margin-left: 20px;
}

#wpo-notes {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--pcb-border);
    border-radius: 4px;
    margin-top: 10px;
}

.wpo-field-content {
    flex: 1;
}

.wpo-field-tip {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    padding: 8px 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    display: inline-block;
}

/* Sidebar */
.wpo-summary.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.wpo-price-row.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wpo-price-row.total .label {
    font-size: 18px;
    font-weight: 600;
}

.wpo-price-row.total .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pcb-primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 14px;
}

.detail-row .label {
    color: var(--pcb-muted);
}

.detail-row .value {
    font-weight: 600;
}

.wpo-delivery-section .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.wpo-delivery-section .detail-row .value,
.wpo-delivery-section .detail-row select {
    width: 100%;
}

.wpo-delivery-section .detail-row select {
    padding: 6px;
    border: 1px solid var(--pcb-border);
    border-radius: 4px;
}

.wpo-btn-submit {
    width: 100%;
    background: var(--pcb-primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.wpo-btn-submit:hover {
    background: var(--pcb-primary-hover);
}

.wpo-login-notice {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 20px;
}

.wpo-btn-login {
    color: var(--pcb-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .wpo-pcb-form-container {
        flex-direction: column;
    }
}